add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout and in_isr

also allow exit tud_task,tuh_task after processing all events for
running other background task for user
This commit is contained in:
hathach
2022-04-20 18:29:41 +07:00
parent ccafb42c82
commit b034c18077
6 changed files with 50 additions and 15 deletions

View File

@@ -198,6 +198,9 @@ void cdc_task(void* params)
tud_cdc_write(buf, count);
}
}
// For ESP32-Sx this delay is essential to allow idle how to run and reset watchdog
vTaskDelay(1);
}
}