Simple USBHost library for STM32F746NG Discovery board. Only either the Fastspeed or the Highspeed port can be used( not both together)
Dependents: DISCO-F746NG_USB_Host
Fork of KL46Z-USBHost by
Diff: USBHostMSD/USBHostMSD.cpp
- Revision:
- 24:5396b6a93262
- Parent:
- 20:9827f135ccb6
- Child:
- 25:7d6d9fc471bf
--- a/USBHostMSD/USBHostMSD.cpp Sun May 01 03:18:11 2016 +0000 +++ b/USBHostMSD/USBHostMSD.cpp Mon Jun 13 17:21:07 2016 +0000 @@ -29,9 +29,9 @@ #define GET_MAX_LUN (0xFE) #define BO_MASS_STORAGE_RESET (0xFF) -USBHostMSD::USBHostMSD(const char * rootdir) : FATFileSystem(rootdir) +USBHostMSD::USBHostMSD(int Interface,const char * rootdir) : FATFileSystem(rootdir) { - host = USBHost::getHostInst(); + host = USBHost::getHostInst(Interface); init(); }