This Automatic mode is the most simple lib for MCU Gear with LPC1114FN28. You don't need to think about Bank.

Dependents:   MCUGearALPC1114FN28

Fork of MCUGearA by mille feuille

Revision:
1:95255bae41c8
Parent:
0:12d93184b350
diff -r 12d93184b350 -r 95255bae41c8 MCUGearBaseA.h
--- a/MCUGearBaseA.h	Sun Mar 09 09:33:14 2014 +0000
+++ b/MCUGearBaseA.h	Sat May 03 16:56:16 2014 +0000
@@ -40,53 +40,48 @@
 // FGPGA CPU I/O
 typedef enum {
 
-#if defined TARGET_LPC1768
-  IO_MBED_P15 = 0x80,
-  IO_MBED_P13,
-  IO_MBED_P16,
-  IO_MBED_P12,
-  IO_MBED_P5,
-  IO_MBED_P11,
-  IO_MBED_P23,
-  IO_MBED_P22,
-  IO_MBED_P26,
-  IO_MBED_P10,
-  IO_MBED_P21,
-  IO_MBED_P9,
-  IO_MBED_P6,
-  IO_MBED_P7,
-  IO_MBED_P8,
-  IO_MBED_P14,
-  IO_MBED_P24,
-  IO_MBED_P25,
-  IO_MBED_P28,
-  IO_MBED_P27
-#endif
-
- #if defined TARGET_KL25Z
-
-  IO_MBED_PTA5 = 0x80,
-  IO_MBED_PTC8,
-  IO_MBED_PTC9,
-  IO_MBED_PTD5,
-  IO_MBED_PTA13,
-  IO_MBED_PTD2,
-  IO_MBED_PTB1,
-  IO_MBED_PTB2,
-  IO_MBED_PTA2,
-  IO_MBED_PTD4,
-  IO_MBED_PTB3,
-  IO_MBED_PTA12,
-  IO_MBED_PTD0,
-  IO_MBED_PTD3,
-  IO_MBED_PTD1,
-  IO_MBED_PTA4,
-  IO_MBED_PTB0,
-  IO_MBED_PTA1,
-  IO_MBED_PTE0, //SDA
-  IO_MBED_PTE1  //SCL
-#endif
-  
+    IOMOSI = 0x80,//P0_9
+    IOSCK,//P0_6
+    IOMISO,//P0_8
+    IOout4,//P1_0
+    NC1,//NC1
+    IOout5,//P1_1
+    IOout2,//P0_7
+    IORX,//P1_6
+    NC2,//NC2
+    IOin2,//P1_9
+    IOTX,//P1_7
+    IOin1,//P1_8
+    IOout7,//P1_5
+    IOout8,//P1_4
+    IOout6,//P1_2
+    IOout3,//P0_11
+    IOout1,//P0_3
+    IOCS,//P0_2
+    IOSDA,//P0_5
+    IOSCL//0_4
+            
+/*  IOP0_9 = 0x80,//P0_9
+    IOP0_6,//P0_6
+    IOP0_8,//P0_8
+    IOP1_0,//P1_0
+    NC1,//NC1
+    IOP1_1,//P1_1
+    IOP0_7,//P0_7
+    IOP1_6,//P1_6
+    NC2,//NC2
+    IOP1_9,//P1_9
+    IOP1_7,//P1_7
+    IOP1_8,//P1_8
+    IOP1_5,//P1_5
+    IOP1_4,//P1_4
+    IOP1_2,//P1_2
+    IOP0_11,//P0_11
+    IOP0_3,//P0_3
+    IOP0_2,//P0_2
+    IOP0_5,//P0_5
+    IO0_4//0_4
+*/
 } en_cpu_io;
 
 // FPGA EXT I/O