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: USBHost/USBHost.h
- Revision:
- 24:5396b6a93262
- Parent:
- 18:61554f238584
- Child:
- 25:7d6d9fc471bf
--- a/USBHost/USBHost.h Sun May 01 03:18:11 2016 +0000 +++ b/USBHost/USBHost.h Mon Jun 13 17:21:07 2016 +0000 @@ -32,7 +32,7 @@ /** * Static method to create or retrieve the single USBHost instance */ - static USBHost* getHostInst(); + static USBHost* getHostInst(int IF_Number); /** * Control read: setup stage, data stage and status stage @@ -172,7 +172,7 @@ static void poll(); private: - USBHost(); + USBHost(int InterfaceNumber); static USBHost* inst; virtual bool addDevice(USBDeviceConnected* parent, int port, bool lowSpeed); void root_enumeration(USBDeviceConnected* dev);