diff options
| author | hathach <[email protected]> | 2018-07-23 22:36:29 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-23 22:36:29 +0700 |
| commit | 51903a60c51bd1006bec9266dbe1bfb35e282675 (patch) | |
| tree | b25038fe0b5294f76a4eba71edb397ebbcb3430b /src/host | |
| parent | 361928f42983bed4d10443668d8eb3db69ade80f (diff) | |
rename timeout_ API to tu_timeout API
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/ehci/ehci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c index 9e326ec53..ba23319ca 100644 --- a/src/host/ehci/ehci.c +++ b/src/host/ehci/ehci.c @@ -268,14 +268,14 @@ static tusb_error_t hcd_controller_init(uint8_t hostid) static tusb_error_t hcd_controller_stop(uint8_t hostid)
{
ehci_registers_t* const regs = get_operational_register(hostid);
- timeout_timer_t timeout;
+ tu_timeout_t timeout;
regs->usb_cmd_bit.run_stop = 0;
- timeout_set(&timeout, 2); // USB Spec: controller has to stop within 16 uframe = 2 frames
- while( regs->usb_sts_bit.hc_halted == 0 && !timeout_expired(&timeout)) {}
+ tu_timeout_set(&timeout, 2); // USB Spec: controller has to stop within 16 uframe = 2 frames
+ while( regs->usb_sts_bit.hc_halted == 0 && !tu_timeout_expired(&timeout)) {}
- return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE;
+ return tu_timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE;
}
//--------------------------------------------------------------------+
|
