feat(freertos): Add configuration for interrupt stack size

This commit is contained in:
Dong Heng
2018-09-12 13:40:03 +08:00
parent 038eafdcf5
commit b919197c07
2 changed files with 8 additions and 4 deletions

View File

@ -23,4 +23,11 @@ config FREERTOS_MAX_HOOK
help help
configurate the max number of FreeRTOS hook function. 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 endmenu

View File

@ -124,9 +124,6 @@ STRUCT_END(HighPriFrame)
#define PANIC_STK_FRMSZ 0x60 #define PANIC_STK_FRMSZ 0x60
#define CHIP_INTERRUPT_STK_MAX 1024
.global panicHandler .global panicHandler
// Allocate save area and stack: // Allocate save area and stack:
@ -166,7 +163,7 @@ LABEL(_Pri_,_NMICount): .space 4
.global _chip_interrupt_stk, _chip_interrupt_tmp .global _chip_interrupt_stk, _chip_interrupt_tmp
.align 16 .align 16
_chip_interrupt_stk: _chip_interrupt_stk:
.space CHIP_INTERRUPT_STK_MAX .space CONFIG_FREERTOS_ISR_STACKSIZE
_chip_interrupt_tmp: _chip_interrupt_tmp:
.word 0 .word 0