mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'fix_background_overflow' of https://github.com/c1728p9/mbed-os into dev_rollup
commit
57be9d2492
|
|
@ -39,10 +39,16 @@
|
||||||
#define OS_TIMER_THREAD_STACK_SIZE MBED_CONF_RTOS_TIMER_THREAD_STACK_SIZE
|
#define OS_TIMER_THREAD_STACK_SIZE MBED_CONF_RTOS_TIMER_THREAD_STACK_SIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
|
// Increase the idle thread stack size when tickless is enabled
|
||||||
#define OS_IDLE_THREAD_STACK_SIZE MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
|
#if defined(MBED_TICKLESS) && defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0)
|
||||||
|
#define EXTRA_IDLE_STACK MBED_CONF_RTOS_IDLE_THREAD_STACK_SIZE_TICKLESS_EXTRA
|
||||||
#else
|
#else
|
||||||
#define OS_IDLE_THREAD_STACK_SIZE MBED_CONF_RTOS_IDLE_THREAD_STACK_SIZE
|
#define EXTRA_IDLE_STACK 0
|
||||||
|
#endif
|
||||||
|
#ifdef MBED_CONF_APP_IDLE_THREAD_STACK_SIZE
|
||||||
|
#define OS_IDLE_THREAD_STACK_SIZE (MBED_CONF_APP_IDLE_THREAD_STACK_SIZE + EXTRA_IDLE_STACK)
|
||||||
|
#else
|
||||||
|
#define OS_IDLE_THREAD_STACK_SIZE (MBED_CONF_RTOS_IDLE_THREAD_STACK_SIZE + EXTRA_IDLE_STACK)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define OS_DYNAMIC_MEM_SIZE 0
|
#define OS_DYNAMIC_MEM_SIZE 0
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,10 @@
|
||||||
"thread-stack-size": {
|
"thread-stack-size": {
|
||||||
"help": "The default stack size of new threads",
|
"help": "The default stack size of new threads",
|
||||||
"value": 4096
|
"value": 4096
|
||||||
|
},
|
||||||
|
"idle-thread-stack-size-tickless-extra": {
|
||||||
|
"help": "Additional size to add to the idle thread when tickless is enabled and LPTICKER_DELAY_TICKS is used",
|
||||||
|
"value": 256
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"macros": ["_RTE_"],
|
"macros": ["_RTE_"],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue