USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHost/USBHostHub.cpp
- Revision:
- 10:40c7f6788902
- Parent:
- 9:7f9f64cf5ded
diff -r 7f9f64cf5ded -r 40c7f6788902 USBHost/USBHostHub.cpp --- a/USBHost/USBHostHub.cpp Mon Feb 03 13:00:16 2014 +0000 +++ b/USBHost/USBHostHub.cpp Wed Feb 05 13:34:37 2014 +0000 @@ -15,6 +15,7 @@ #define C_PORT_RESET 20 bool USBHost::Hub(USBDeviceConnected* dev) { + USB_INFO("New HUB: VID:%04x PID:%04x [dev: %p]", dev->getVid(), dev->getPid(), dev); HubDescriptor hubdesc; // get HUB descriptor int rc = controlRead(dev, @@ -51,7 +52,7 @@ lowSpeed = 1; } PortReset(dev, i); - if (!addDevice(1, i, lowSpeed)) { + if (!addDevice(dev, i, lowSpeed)) { ClearPortPower(dev, i); // power off } } else {