Skip to content

Commit

Permalink
Merge pull request #10781 from LMESTM/Idle_Stack_Size_For_Tickless
Browse files Browse the repository at this point in the history
Include TICKLESS stack size increase even without LPTICKER_DELAY_TICKS
  • Loading branch information
0xc0170 authored Jun 27, 2019
2 parents d4aab56 + 9e88719 commit eee8d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtos/TARGET_CORTEX/mbed_rtx_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#endif

// Increase the idle thread stack size when tickless is enabled
#if defined(MBED_TICKLESS) && defined(LPTICKER_DELAY_TICKS) && (LPTICKER_DELAY_TICKS > 0)
#if defined(EXTRA_IDLE_STACK_REQUIRED) || (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
#define EXTRA_IDLE_STACK 0
Expand Down
2 changes: 1 addition & 1 deletion rtos/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"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",
"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",
"value": 256
},
"idle-thread-stack-size-debug-extra": {
Expand Down

0 comments on commit eee8d0a

Please sign in to comment.