This is a block device implementation of the USB MSD driver. It will allow you to easily change between different storage devices that implement the block device API.
Dependencies: USBDevice USBMSD_BD max32630fthr
Fork of FTHR_USBMSD_Demo by
Diff: main.cpp
- Revision:
- 6:1f64f4cf7cc7
- Parent:
- 4:b5764a3c5530
- Child:
- 8:8c31b3ba5371
--- a/main.cpp Fri Feb 03 23:15:29 2017 +0000 +++ b/main.cpp Mon Feb 06 23:58:28 2017 +0000 @@ -2,7 +2,7 @@ #include "max32630fthr.h" #include "USBMSD_SD.h" -MAX32630FTHR pegasus; +MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); DigitalOut rLED(LED1); DigitalOut gLED(LED2); @@ -11,11 +11,9 @@ // (note the calls to Thread::wait below for delays) int main() { - gLED = LED_OFF; + gLED = LED_ON; rLED = LED_ON; - pegasus.init(MAX32630FTHR::VIO_3V3); - gLED = LED_ON; Thread::wait(100); USBMSD_SD sd(P0_5, P0_6, P0_4, P0_7); // mosi, miso, sclk, cs