1MB version

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 #define ND_CEB P0_9
00006 #define ND_CLE P0_8
00007 #define ND_ALE P1_29
00008 #define ND_WEB P0_12
00009 #define ND_REB P1_21
00010 #define ND_WPB P0_11
00011 #define ND_RBB P1_31
00012 #define ND_IO1 P0_18
00013 #define ND_IO2 P0_19
00014 #define ND_IO3 P1_25
00015 #define ND_IO4 P0_20
00016 #define ND_IO5 P0_2
00017 #define ND_IO6 P1_26
00018 #define ND_IO7 P1_27
00019 #define ND_IO8 P1_23
00020 
00021 #define LED_RD  P0_7
00022 #define LED_WR  P1_13
00023 #define SW_INIT P1_20
00024 
00025 
00026 int main() {
00027     USBMSD_STEP1 *myusb;
00028 
00029     myusb = new USBMSD_STEP1(ND_CEB,ND_CLE,ND_ALE,ND_WEB,ND_REB,ND_WPB,ND_RBB,
00030                   ND_IO1,ND_IO2,ND_IO3,ND_IO4,ND_IO5,ND_IO6,ND_IO7,ND_IO8,
00031                   LED_RD,LED_WR,SW_INIT);
00032     myusb->connect();
00033     while(1) {
00034         __NOP();
00035     }
00036 }