Adaptation of the official mbed USBHost repository to work with the LPC4088 Display Module
Dependents: DMSupport DMSupport DMSupport DMSupport
Fork of DM_USBHost by
Diff: USBHostHub/USBHostHub.cpp
- Revision:
- 32:f2d129436056
- Parent:
- 31:9a462d032742
- Child:
- 33:819bbf04163b
diff -r 9a462d032742 -r f2d129436056 USBHostHub/USBHostHub.cpp --- a/USBHostHub/USBHostHub.cpp Tue Feb 17 10:36:26 2015 +0100 +++ b/USBHostHub/USBHostHub.cpp Wed Oct 23 06:58:55 2019 +0000 @@ -129,7 +129,7 @@ for (uint8_t j = 1; j <= nb_port; j++) { setPortFeature(PORT_POWER_FEATURE, j); } - Thread::wait(buf[5]*2); + ThisThread::sleep_for(buf[5]*2); host->interruptRead(dev, int_in, buf, 1, false); dev_connected = true; @@ -242,7 +242,7 @@ host->deviceDisconnected(dev->getHub() + 1, port, this, 0); break; } - Thread::wait(10); + ThisThread::sleep_for(10); } }