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.
Fork of mbed by
Diff: PortNames.h
- Revision:
- 27:7110ebee3484
- Parent:
- 18:b3c9f16cbb96
diff -r 63bcd7ba4912 -r 7110ebee3484 PortNames.h
--- a/PortNames.h Fri Feb 11 10:33:02 2011 +0000
+++ b/PortNames.h Tue Nov 29 14:59:27 2011 +0000
@@ -1,6 +1,5 @@
/* mbed Microcontroller Library - PortName
- * Copyright (c) 2010 ARM Limited. All rights reserved.
- * jward
+ * Copyright (c) 2010-2011 ARM Limited. All rights reserved.
*/
#ifndef MBED_PORTNAMES_H
@@ -10,7 +9,8 @@
extern "C" {
#endif
-typedef enum PortName PortName;
+#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
+
enum PortName {
Port0 = 0
, Port1 = 1
@@ -18,6 +18,18 @@
, Port3 = 3
, Port4 = 4
};
+typedef enum PortName PortName;
+
+#elif defined(TARGET_LPC11U24)
+
+enum PortName {
+ Port0 = 0
+ , Port1 = 1
+};
+typedef enum PortName PortName;
+
+
+#endif
#ifdef __cplusplus
}
