Takanobu Muraguchi / Mbed 2 deprecated picossd_step1_2cs

Dependencies:   mbed EEPROM USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 #include "USBMSD_STEP1.h"
00004 
00005 // PicoSSD pin assignment
00006 #define ND_CEB0 P0_13
00007 #define ND_CEB1 P0_14
00008 #define ND_CLE  P0_8
00009 #define ND_ALE  P1_29
00010 #define ND_WEB  P0_12
00011 #define ND_REB  P0_9
00012 #define ND_WPB  P0_11
00013 #define ND_RBB  P1_21
00014 #define ND_IO1  P1_25
00015 #define ND_IO2  P0_20
00016 #define ND_IO3  P0_2
00017 #define ND_IO4  P1_26
00018 #define ND_IO5  P1_27
00019 #define ND_IO6  P1_23
00020 #define ND_IO7  P1_28
00021 #define ND_IO8  P1_31
00022 
00023 #define LED_RD  P0_7
00024 #define LED_WR  P1_13
00025 #define SW_INIT P1_20
00026 
00027 
00028 int main() {
00029     USBMSD_STEP1 *myusb;
00030 
00031     myusb = new USBMSD_STEP1(ND_CEB0,ND_CEB1,ND_CLE,ND_ALE,ND_WEB,ND_REB,ND_WPB,ND_RBB,
00032                   ND_IO1,ND_IO2,ND_IO3,ND_IO4,ND_IO5,ND_IO6,ND_IO7,ND_IO8,
00033                   LED_RD,LED_WR,SW_INIT);
00034     myusb->connect();
00035     while(1) {
00036         __NOP();
00037     }
00038 }