Enlarge timer thread stack size for Cortex-M23/M33

pull/6773/head
ccli8 2018-04-30 09:39:04 +08:00
parent d08c819830
commit eecdd3834e
1 changed files with 9 additions and 1 deletions

View File

@ -34,7 +34,15 @@
#define OS_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE
#define OS_TIMER_THREAD_STACK_SIZE 768
#ifndef OS_TIMER_THREAD_STACK_SIZE
#if (defined(__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)) ||\
(defined(__DOMAIN_NS) && (__DOMAIN_NS == 1U))
#define OS_TIMER_THREAD_STACK_SIZE 1280
#else
#define OS_TIMER_THREAD_STACK_SIZE 768
#endif
#endif
#ifndef OS_IDLE_THREAD_STACK_SIZE
#define OS_IDLE_THREAD_STACK_SIZE 512
#endif