Skip to content

Commit 9e88719

Browse files
committed
Allow target or application level definition of extra TICKLESS stack size
Adding a check to let application or target force increase idle thread stack size.
1 parent a8444bd commit 9e88719

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rtos/TARGET_CORTEX/mbed_rtx_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#endif
4141

4242
// Increase the idle thread stack size when tickless is enabled
43-
#if defined(MBED_TICKLESS) && defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0)
43+
#if defined(EXTRA_IDLE_STACK_REQUIRED) || (defined(MBED_TICKLESS) && defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0))
4444
#define EXTRA_IDLE_STACK MBED_CONF_RTOS_IDLE_THREAD_STACK_SIZE_TICKLESS_EXTRA
4545
#else
4646
#define EXTRA_IDLE_STACK 0

rtos/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"value": 4096
2020
},
2121
"idle-thread-stack-size-tickless-extra": {
22-
"help": "Additional size to add to the idle thread when tickless is enabled and LPTICKER_DELAY_TICKS is used",
22+
"help": "Additional size to add to the idle thread when a specific target or application implementation requires it or in case tickless is enabled and LPTICKER_DELAY_TICKS is used",
2323
"value": 256
2424
},
2525
"idle-thread-stack-size-debug-extra": {

0 commit comments

Comments
 (0)