Maxim Integrated / Mbed OS FTHR_USBMSD_Demo

Dependencies:   USBDevice USBMSD_SD max32630fthr

Fork of FTHR_USBMSD_Demo by Greg Steiert

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.

Files at this revision

API Documentation at this revision

Comitter:
switches
Date:
Mon Feb 06 23:58:28 2017 +0000
Parent:
5:2d0d32abe537
Child:
7:6e8c5f7d6d0e
Commit message:
Publishing to Maxim Integrated Team

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
max32630fthr.lib Show annotated file Show diff for this revision Revisions of this file
--- 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
--- a/max32630fthr.lib	Fri Feb 03 23:15:29 2017 +0000
+++ b/max32630fthr.lib	Mon Feb 06 23:58:28 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/switches/code/max32630fthr/#09e3dbb49561
+https://developer.mbed.org/teams/MaximIntegrated/code/max32630fthr/#60997adf01a2