AirioBase + 2 chip PicoSSD board.
Dependencies: mbed EEPROM USBDevice
Diff: main.cpp
- Revision:
- 4:2e8b78a74493
- Parent:
- 0:1472308ded03
--- a/main.cpp Wed Feb 10 03:45:12 2021 +0000 +++ b/main.cpp Wed Sep 15 16:32:12 2021 +0000 @@ -2,21 +2,23 @@ #include "USBMSD_STEP1.h" -#define ND_CEB P0_9 -#define ND_CLE P0_8 -#define ND_ALE P1_29 -#define ND_WEB P0_12 -#define ND_REB P1_21 -#define ND_WPB P0_11 -#define ND_RBB P1_31 -#define ND_IO1 P0_18 -#define ND_IO2 P0_19 -#define ND_IO3 P1_25 -#define ND_IO4 P0_20 -#define ND_IO5 P0_2 -#define ND_IO6 P1_26 -#define ND_IO7 P1_27 -#define ND_IO8 P1_23 +// PicoSSD pin assignment +#define ND_CEB0 P0_13 +#define ND_CEB1 P0_14 +#define ND_CLE P0_8 +#define ND_ALE P1_29 +#define ND_WEB P0_12 +#define ND_REB P0_9 +#define ND_WPB P0_11 +#define ND_RBB P1_21 +#define ND_IO1 P1_25 +#define ND_IO2 P0_20 +#define ND_IO3 P0_2 +#define ND_IO4 P1_26 +#define ND_IO5 P1_27 +#define ND_IO6 P1_23 +#define ND_IO7 P1_28 +#define ND_IO8 P1_31 #define LED_RD P0_7 #define LED_WR P1_13 @@ -26,7 +28,7 @@ int main() { USBMSD_STEP1 *myusb; - myusb = new USBMSD_STEP1(ND_CEB,ND_CLE,ND_ALE,ND_WEB,ND_REB,ND_WPB,ND_RBB, + myusb = new USBMSD_STEP1(ND_CEB0,ND_CEB1,ND_CLE,ND_ALE,ND_WEB,ND_REB,ND_WPB,ND_RBB, ND_IO1,ND_IO2,ND_IO3,ND_IO4,ND_IO5,ND_IO6,ND_IO7,ND_IO8, LED_RD,LED_WR,SW_INIT); myusb->connect();