mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
run tud_task() in board_delay()
This commit is contained in:
parent
a0307bafda
commit
a619511631
@ -98,7 +98,11 @@ static inline void board_led_off(void)
|
||||
static inline void board_delay(uint32_t ms)
|
||||
{
|
||||
uint32_t start_ms = board_millis();
|
||||
while( board_millis() - start_ms < ms) {}
|
||||
while (board_millis() - start_ms < ms)
|
||||
{
|
||||
// take chance to run usb background
|
||||
tud_task();
|
||||
}
|
||||
}
|
||||
|
||||
static inline int8_t board_uart_getchar(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user