USB Mass Storage Device demo with SD card

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.

Revision:
10:404433ce329d
Parent:
9:6ada4f89915c
--- a/main.cpp	Sat Feb 24 18:05:12 2018 +0000
+++ b/main.cpp	Sat Feb 24 18:20:03 2018 +0000
@@ -1,6 +1,7 @@
 #include "mbed.h"
 #include "max32630fthr.h"
 #include "USBMSD_BD.h"
+#include "SDBlockDevice.h"
 #include "HeapBlockDevice.h"
 #include "FATFileSystem.h"
 
@@ -13,7 +14,8 @@
 DigitalOut bLED(LED3);
 
 // Physical block device, can be any device that supports the BlockDevice API
-HeapBlockDevice bd(512*BLOCK_SIZE, BLOCK_SIZE);
+// HeapBlockDevice bd(512*BLOCK_SIZE, BLOCK_SIZE);
+SDBlockDevice bd(P0_5, P0_6, P0_4, P0_7);
 
 // File system declaration
 FATFileSystem fs("fs");