diff --git a/components/freertos/Kconfig b/components/freertos/Kconfig index 04bdd680..6ff02827 100644 --- a/components/freertos/Kconfig +++ b/components/freertos/Kconfig @@ -22,5 +22,12 @@ config FREERTOS_MAX_HOOK default 2 help configurate the max number of FreeRTOS hook function. + +config FREERTOS_ISR_STACKSIZE + int "ISR stack size" + range 512 8192 + default 512 + help + The interrupt handlers have their own stack. The size of the stack can be defined here. endmenu diff --git a/components/freertos/port/esp8266/xtensa_vectors.S b/components/freertos/port/esp8266/xtensa_vectors.S index 4641049b..2d74d6fe 100644 --- a/components/freertos/port/esp8266/xtensa_vectors.S +++ b/components/freertos/port/esp8266/xtensa_vectors.S @@ -124,9 +124,6 @@ STRUCT_END(HighPriFrame) #define PANIC_STK_FRMSZ 0x60 - -#define CHIP_INTERRUPT_STK_MAX 1024 - .global panicHandler // Allocate save area and stack: @@ -166,7 +163,7 @@ LABEL(_Pri_,_NMICount): .space 4 .global _chip_interrupt_stk, _chip_interrupt_tmp .align 16 _chip_interrupt_stk: - .space CHIP_INTERRUPT_STK_MAX + .space CONFIG_FREERTOS_ISR_STACKSIZE _chip_interrupt_tmp: .word 0