Merge pull request #1283 from kasjer/kasjer/olimex-pic32-board-fixes

olimex pic32 board fixes
This commit is contained in:
Ha Thach
2022-01-19 09:55:18 +07:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@@ -163,6 +163,10 @@ void dcd_remote_wakeup(uint8_t 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
USB_REGS->POWERbits.RESUME = 0;
}