Add MBED_CONF_APP_TIMER/IDLE_THREAD_STACK_SIZE to configure timer/idle thread stack size by application

pull/6773/head
ccli8 2018-05-03 09:43:33 +08:00
parent 285bb87fe9
commit 7b94d4dc32
1 changed files with 10 additions and 4 deletions

View File

@ -34,14 +34,20 @@
#define OS_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE #define OS_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE
#ifndef OS_TIMER_THREAD_STACK_SIZE /** The timer thread's stack size can be configured by the application, if not explicitly specified, it'll default to 768 */
#define OS_TIMER_THREAD_STACK_SIZE 768 #ifndef MBED_CONF_APP_TIMER_THREAD_STACK_SIZE
#define MBED_CONF_APP_TIMER_THREAD_STACK_SIZE 768
#endif #endif
#ifndef OS_IDLE_THREAD_STACK_SIZE #define OS_TIMER_THREAD_STACK_SIZE MBED_CONF_APP_TIMER_THREAD_STACK_SIZE
#define OS_IDLE_THREAD_STACK_SIZE 512
/** The idle thread's stack size can be configured by the application, if not explicitly specified, it'll default to 512 */
#ifndef MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
#define MBED_CONF_APP_IDLE_THREAD_STACK_SIZE 512
#endif #endif
#define OS_IDLE_THREAD_STACK_SIZE MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
#define OS_DYNAMIC_MEM_SIZE 0 #define OS_DYNAMIC_MEM_SIZE 0
#if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000) #if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000)