Adds class implementation for use STM32F4xx OTG_HS in FS mode

Dependents:   IGLOO_board

Fork of USBDevice by mbed official

Revision:
51:deafa44182d9
Parent:
47:a0cd9646ecd1
Child:
77:83b79e0aa05a
--- a/USBMSD/USBMSD.cpp	Mon Apr 20 10:45:54 2015 +0100
+++ b/USBMSD/USBMSD.cpp	Thu Apr 23 08:45:28 2015 +0100
@@ -135,10 +135,10 @@
 }
 
 void USBMSD::disconnect() {
+    USBDevice::disconnect();
     //De-allocate MSD page size:
     free(page);
     page = NULL;
-    USBDevice::disconnect();
 }
 
 void USBMSD::reset() {