diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index 837c88ef..114b9bcc 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -39,5 +39,11 @@ config FREERTOS_GLOBAL_DATA_LINK_IRAM depends on !SOC_FULL_ICACHE help Link FreeRTOS global data(.bss .data COMMON) from DRAM to IRAM. + +config FREERTOS_TIMER_STACKSIZE + int "Timer stack size" + default 2048 + help + The size of the stack used by the timer in FreeRTOS. endmenu diff --git a/components/freertos/port/esp8266/include/freertos/FreeRTOSConfig.h b/components/freertos/port/esp8266/include/freertos/FreeRTOSConfig.h index c06563fc..5fda0652 100644 --- a/components/freertos/port/esp8266/include/freertos/FreeRTOSConfig.h +++ b/components/freertos/port/esp8266/include/freertos/FreeRTOSConfig.h @@ -76,7 +76,7 @@ #if configUSE_TIMERS #define configTIMER_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 ) #define configTIMER_QUEUE_LENGTH (10) -#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 2048 ) +#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) CONFIG_FREERTOS_TIMER_STACKSIZE ) #endif /* Co-routine definitions. */