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 Norimasa Okamoto

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 {