Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: rpc.h
- Revision:
- 28:667d61c9177b
- Parent:
- 27:7110ebee3484
- Child:
- 43:e2ed12d17f06
--- 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
