diff options
| author | HiFiPhile <[email protected]> | 2025-09-17 22:45:25 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-09-17 22:48:59 +0200 |
| commit | 73f3900b2da5d00e707078a591067f0329118dcb (patch) | |
| tree | 1cfcfed3b7b33cf90dc8c942a47af970fa94d4c0 /src/portable/microchip | |
| parent | 369a1ff5153a472327d2847c7bc7386309486b34 (diff) | |
Replace old delay functions by tusb_time_delay_ms_api
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/portable/microchip')
| -rw-r--r-- | src/portable/microchip/pic32mz/dcd_pic32mz.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/portable/microchip/pic32mz/dcd_pic32mz.c b/src/portable/microchip/pic32mz/dcd_pic32mz.c index 8709baf67..cbd157d6b 100644 --- a/src/portable/microchip/pic32mz/dcd_pic32mz.c +++ b/src/portable/microchip/pic32mz/dcd_pic32mz.c @@ -162,13 +162,7 @@ void dcd_remote_wakeup(uint8_t rhport) (void) rhport; USB_REGS->POWERbits.RESUME = 1; -#if CFG_TUSB_OS != OPT_OS_NONE - osal_task_delay(10); -#else - // TODO: Wait in non blocking mode - unsigned cnt = 2000; - while (cnt--) __asm__("nop"); -#endif + tusb_time_delay_ms_api(10); USB_REGS->POWERbits.RESUME = 0; } |
