USB Mass Storage Device demo with SD card
Dependencies: USBDevice USBMSD_SD max32630fthr
Fork of FTHR_USBMSD_Demo by
This example implements a micro SD card reader allowing access to a card inserted into the micro SD connector through the micro USB connector using the standard USB-MSD interface so that it appears just like a USB drive to your system.
Diff: main.cpp
- Revision:
- 3:7264c8044625
- Parent:
- 1:464c8b3634dc
- Child:
- 4:b5764a3c5530
--- a/main.cpp Wed Nov 16 18:28:00 2016 +0000 +++ b/main.cpp Sun Nov 20 23:58:11 2016 +0000 @@ -2,6 +2,8 @@ #include "max32630fthr.h" #include "USBMSD_SD.h" +MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); + DigitalOut rLED(LED1); DigitalOut gLED(LED2); @@ -11,13 +13,8 @@ { gLED = LED_OFF; rLED = LED_ON; - max32630fthrInit(); - Thread::wait(100); + pegasus.init(); - vddioh(P0_4, TRUE); - vddioh(P0_5, TRUE); - vddioh(P0_6, TRUE); - vddioh(P0_7, TRUE); gLED = LED_ON; Thread::wait(100);