mirror of https://github.com/ARMmbed/mbed-os.git
Add MBED_CONF_APP_TIMER/IDLE_THREAD_STACK_SIZE to configure timer/idle thread stack size by application
parent
285bb87fe9
commit
7b94d4dc32
|
@ -34,14 +34,20 @@
|
|||
|
||||
#define OS_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE
|
||||
|
||||
#ifndef OS_TIMER_THREAD_STACK_SIZE
|
||||
#define OS_TIMER_THREAD_STACK_SIZE 768
|
||||
/** The timer thread's stack size can be configured by the application, if not explicitly specified, it'll default to 768 */
|
||||
#ifndef MBED_CONF_APP_TIMER_THREAD_STACK_SIZE
|
||||
#define MBED_CONF_APP_TIMER_THREAD_STACK_SIZE 768
|
||||
#endif
|
||||
|
||||
#ifndef OS_IDLE_THREAD_STACK_SIZE
|
||||
#define OS_IDLE_THREAD_STACK_SIZE 512
|
||||
#define OS_TIMER_THREAD_STACK_SIZE MBED_CONF_APP_TIMER_THREAD_STACK_SIZE
|
||||
|
||||
/** 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
|
||||
|
||||
#define OS_IDLE_THREAD_STACK_SIZE MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
|
||||
|
||||
#define OS_DYNAMIC_MEM_SIZE 0
|
||||
|
||||
#if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000)
|
||||
|
|
Loading…
Reference in New Issue