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:
Sun Nov 20 23:58:11 2016 +0000
Parent:
2:8b0920fd81bc
Child:
4:b5764a3c5530
Commit message:
Updated to new MAX32630FTHR Class Library

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	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);
 
--- a/max32630fthr.lib	Wed Nov 16 18:28:00 2016 +0000
+++ b/max32630fthr.lib	Sun Nov 20 23:58:11 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/switches/code/max32630fthr/#8926602da648
+https://developer.mbed.org/users/switches/code/max32630fthr/#7a1d7d6d520e