diff options
| author | hathach <[email protected]> | 2020-04-01 21:43:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-01 21:43:23 +0700 |
| commit | 1c0d7a3577d6555aafbbc00fd83b858f839a5426 (patch) | |
| tree | 5a0bb41bc46289ed7c3b59c28c03ea1ad9191f46 /examples | |
| parent | ff9ceb65d2c5033e80aaa795b508cdff6356b14b (diff) | |
reduce freertos task stack size to fit small mcu
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c index eb439a90d..f673a7932 100644 --- a/examples/device/cdc_msc_freertos/src/main.c +++ b/examples/device/cdc_msc_freertos/src/main.c @@ -56,12 +56,12 @@ StaticTimer_t static_blink; TimerHandle_t blink_tm; // static task for usbd -#define USBD_STACK_SIZE (2*configMINIMAL_STACK_SIZE) +#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) StackType_t stack_usbd[USBD_STACK_SIZE]; StaticTask_t static_task_usbd; // static task for cdc -#define CDC_STACK_SZIE (2*configMINIMAL_STACK_SIZE) +#define CDC_STACK_SZIE configMINIMAL_STACK_SIZE StackType_t stack_cdc[CDC_STACK_SZIE]; StaticTask_t static_task_cdc; @@ -90,7 +90,7 @@ int main(void) // Create task #if CFG_TUD_CDC - (void) xTaskCreateStatic( cdc_task, "cdc", CDC_STACK_SZIE, NULL, configMAX_PRIORITIES-1, stack_cdc, &static_task_cdc); + (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 |
