diff options
| author | hathach <[email protected]> | 2020-04-07 13:45:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-07 13:45:26 +0700 |
| commit | 3c724251f01300601e197f7b6646a5968b1d98df (patch) | |
| tree | b12c346a6b614c8080e6c3a5387a404d9a44ad03 /examples | |
| parent | 6a9f9718821138ca0f667246406444bc957c2424 (diff) | |
clean up
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c index f673a7932..350358a68 100644 --- a/examples/device/cdc_msc_freertos/src/main.c +++ b/examples/device/cdc_msc_freertos/src/main.c @@ -88,10 +88,8 @@ int main(void) // Create a task for tinyusb device stack (void) xTaskCreateStatic( usb_device_task, "usbd", USBD_STACK_SIZE, NULL, configMAX_PRIORITIES-1, stack_usbd, &static_task_usbd); - // Create task -#if CFG_TUD_CDC + // Create CDC task (void) xTaskCreateStatic( cdc_task, "cdc", CDC_STACK_SZIE, NULL, configMAX_PRIORITIES-2, stack_cdc, &static_task_cdc); -#endif // skip starting scheduler (and return) for ESP32-S2 #if CFG_TUSB_MCU != OPT_MCU_ESP32S2 @@ -151,7 +149,6 @@ void tud_resume_cb(void) //--------------------------------------------------------------------+ // USB CDC //--------------------------------------------------------------------+ -#if CFG_TUD_CDC void cdc_task(void* params) { (void) params; @@ -204,8 +201,6 @@ void tud_cdc_rx_cb(uint8_t itf) (void) itf; } -#endif // CFG_TUD_CDC - //--------------------------------------------------------------------+ // BLINKING TASK //--------------------------------------------------------------------+ |
