Lab 1 Program C
Fork of mbed by
Diff: rpc.h
- Revision:
- 28:667d61c9177b
- Parent:
- 27:7110ebee3484
- Child:
- 43:aff670d0d510
--- a/rpc.h Tue Nov 29 14:59:27 2011 +0000 +++ b/rpc.h Thu Dec 08 12:04:01 2011 +0000 @@ -210,7 +210,11 @@ if(pin2 <= 9) { pin = pin * 10 + pin2; } +#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) return (PinName)(LPC_GPIO0_BASE + port * 32 + pin); +#elif defined(TARGET_LPC11U24) + return (PinName)(port * 32 + pin); +#endif } else if(str[0] == 'p') { // pn uint32_t pin = str[1] - '0'; // pn uint32_t pin2 = str[2] - '0'; // pnn