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: LPC2300_MAP.h
- Revision:
- 5:62573be585e9
- Parent:
- 4:5d1359a283bc
diff -r 5d1359a283bc -r 62573be585e9 LPC2300_MAP.h
--- a/LPC2300_MAP.h Thu Nov 27 16:23:24 2008 +0000
+++ b/LPC2300_MAP.h Thu Jan 22 18:32:40 2009 +0000
@@ -35,7 +35,8 @@
#elif TARGET_PHAT40
-enum {
+enum {
+ NC = 0, // Not Connected
LED1 = 32,
LED2 = 33,
LED3 = 34,
@@ -65,8 +66,10 @@
unsigned char function; // Pin function
};
+/* returns NOT_AVAILABLE if no port matches the pin */
int pin_to_port(int pin);
+/* returns NULL if no map matches the pin */
const PortMap* get_port_map(const PortMap* map, int pin);
extern const PortMap ADC_PORTMAP[];
