diff options
| author | hathach <[email protected]> | 2022-04-20 18:29:41 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-04-20 18:29:41 +0700 |
| commit | b034c18077ef1350f2678f245ed1b885e9be79fc (patch) | |
| tree | 34685236202999d467a090fc051d965049373d3f /examples | |
| parent | ccafb42c8261d8304fce0af46c0ddc3adf6da56f (diff) | |
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
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c index c0fc722f4..0d40782ef 100644 --- a/examples/device/cdc_msc_freertos/src/main.c +++ b/examples/device/cdc_msc_freertos/src/main.c @@ -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); } } |
