diff options
| author | hathach <[email protected]> | 2025-09-29 15:32:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-09-29 15:32:08 +0700 |
| commit | bdd557caf14b8987729fd73f11ccef7a29e7045d (patch) | |
| tree | 881b6aa1361903e6d75a465e55b109468bfd86ab /src/portable/microchip | |
| parent | 4f3a5f92fa21307b1f1c9700cd041e945a627f63 (diff) | |
| parent | 5130850337c1e8e0eedfa2d7165413de27ff6d2f (diff) | |
Merge branch 'master' into fork/ennebi/mtp
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; } |
