mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 03:40:52 +00:00
add osal_task_delay() for control blocking
This commit is contained in:
parent
d34508a316
commit
8a0b17598c
@ -568,6 +568,8 @@ bool tuh_control_xfer (tuh_xfer_t* xfer)
|
||||
// only need to call task if not preempted RTOS
|
||||
#if CFG_TUSB_OS == OPT_OS_NONE || CFG_TUSB_OS == OPT_OS_PICO
|
||||
tuh_task();
|
||||
#else
|
||||
osal_task_delay(1); // TODO maybe yield()
|
||||
#endif
|
||||
|
||||
// TODO probably some timeout to prevent hanged
|
||||
|
Loading…
x
Reference in New Issue
Block a user