From ec77c9711b0b6da1cc2f43c6d55b24cd5f6d6f75 Mon Sep 17 00:00:00 2001 From: Supreet Deshpande Date: Mon, 22 Oct 2018 14:34:18 +0530 Subject: [PATCH] bugfix/freertos_timer_stack_config: Added config option for Timer stack. Added configuration option for Timer Stack size in FreeRTOS. --- components/freertos/Kconfig | 6 ++++++ .../freertos/port/esp8266/include/freertos/FreeRTOSConfig.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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. */