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 Maxim Integrated

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");