Add config macro for ISR stack size

This commit is contained in:
Henrik Stickann 2023-01-20 00:27:12 +01:00
parent ebd7b8a60f
commit 3a02ba19f2

View File

@ -67,6 +67,16 @@
#include <sta/config.hpp>
#ifdef STA_RTOS_MALLOC_ENABLE
// Allow setting configISR_STACK_SIZE_WORDS via the STA_RTOS_ISR_STACK_SIZE_WORDS config macro
#ifdef STA_RTOS_ISR_STACK_SIZE_WORDS
# ifdef configISR_STACK_SIZE_WORDS
# warning "STA_RTOS_ISR_STACK_SIZE_WORDS value overriden by configISR_STACK_SIZE_WORDS!"
# else // configISR_STACK_SIZE_WORDS
# define configISR_STACK_SIZE_WORDS STA_RTOS_ISR_STACK_SIZE_WORDS
# endif // configISR_STACK_SIZE_WORDS
#endif // STA_RTOS_ISR_STACK_SIZE_WORDS
// ================================================================================================
// ======================================= Configuration ========================================
// These configuration symbols could be provided by from build...