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:
24:5396b6a93262
Parent:
12:b91fdea8c0a7
diff -r 4ab8bc835303 -r 5396b6a93262 USBHost/USBHostHub.cpp
--- a/USBHost/USBHostHub.cpp	Sun May 01 03:18:11 2016 +0000
+++ b/USBHost/USBHostHub.cpp	Mon Jun 13 17:21:07 2016 +0000
@@ -18,10 +18,10 @@
     USB_INFO("New HUB: VID:%04x PID:%04x [dev: %p]", dev->getVid(), dev->getPid(), dev);
     HubDescriptor hubdesc;
     // get HUB descriptor
-    int rc = controlRead(dev, 
+    int rc = controlRead(dev,
                         USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS,
                         GET_DESCRIPTOR,
-                        0x29 << 8, 0, reinterpret_cast<uint8_t*>(&hubdesc), 
+                        0x29 << 8, 0, reinterpret_cast<uint8_t*>(&hubdesc),
                         sizeof(HubDescriptor));
     USB_TEST_ASSERT(rc == USB_TYPE_OK);
     if (rc != USB_TYPE_OK) {
@@ -100,7 +100,7 @@
     SetPortReset(dev, port);
     // wait reset
     for(int i = 0; i < 100; i++) {
-        uint32_t status;    
+        uint32_t status;
         GetPortStatus(dev, port, &status);
         USB_DBG("RESET port: %d status: %08X\n", port, status);
         if (status & 0x100000) { // Reset change , Reset complete