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/portable | |
| parent | 361928f42983bed4d10443668d8eb3db69ade80f (diff) | |
rename timeout_ API to tu_timeout API
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c b/src/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c index 92f9f1cf0..18745d03e 100644 --- a/src/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c +++ b/src/portable/nxp/lpc43xx_lpc18xx/hal_lpc43xx.c @@ -72,11 +72,11 @@ static void hal_controller_reset(uint8_t rhport) // NXP chip powered with non-host mode --> sts bit is not correctly reflected
(*p_reg_usbcmd) |= BIT_(1);
-// timeout_timer_t timeout;
-// timeout_set(&timeout, 2); // should not take longer the time to stop controller
- while( ((*p_reg_usbcmd) & BIT_(1)) /*&& !timeout_expired(&timeout)*/) {}
+// tu_timeout_t timeout;
+// tu_timeout_set(&timeout, 2); // should not take longer the time to stop controller
+ while( ((*p_reg_usbcmd) & BIT_(1)) /*&& !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;
}
bool tusb_hal_init(void)
|
