diff options
| author | Ha Thach <[email protected]> | 2021-03-02 13:03:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-02 13:03:52 +0700 |
| commit | 559ff806432cfb9d6af9ddcd585b898f24e8668a (patch) | |
| tree | fa8b7164157d51a8281cfa7094292029e893d36c /src/host | |
| parent | a3a9a5efb91b56429ac75c0a81101dedd524eba0 (diff) | |
| parent | fa8c7bc334a6ccbca4aacce02e853df020c07815 (diff) | |
Merge pull request #684 from hathach/rp2040-host-example
add rp2040 to host example build
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 0bc6378b2..a4ee4cb5c 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -157,6 +157,7 @@ tusb_speed_t tuh_device_get_speed (uint8_t const dev_addr) return (tusb_speed_t) _usbh_devices[dev_addr].speed; } +#if CFG_TUSB_OS == OPT_OS_NONE void osal_task_delay(uint32_t msec) { (void) msec; @@ -164,6 +165,7 @@ void osal_task_delay(uint32_t msec) const uint32_t start = hcd_frame_number(TUH_OPT_RHPORT); while ( ( hcd_frame_number(TUH_OPT_RHPORT) - start ) < msec ) {} } +#endif //--------------------------------------------------------------------+ // CLASS-USBD API (don't require to verify parameters) |
