Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHost_DISCO-F746NG by
Diff: USBHost/USBHostHub.cpp
- 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