shell: optionally configure priority of the shell thread
Currently, in Zephyr the shell thread is the lowest priority i.e. K_LOWEST_APPLICATION_THREAD_PRIO. Due to this all the other threads can preempt the shell thread. Proposed solution is to add Kconfig which gives the flexibility to change the priority of the shell thread. This is now implemented using a new Kconfig variable SHELL_THREAD_PRIORITY_OVERRIDE. By setting this option SHELL_THREAD_PRIORITY can be set. Signed-off-by: Uday Ammu <udaykiran@google.com>
This commit is contained in:
parent
6976800cf0
commit
17d2e9d084
2 changed files with 26 additions and 4 deletions
|
@ -25,6 +25,19 @@ config SHELL_MINIMAL
|
|||
defaults which favor reduced flash or memory requirements over extra
|
||||
features.
|
||||
|
||||
config SHELL_THREAD_PRIORITY_OVERRIDE
|
||||
bool "Override default shell thread priority"
|
||||
help
|
||||
Option to change the default value of shell thread priority.
|
||||
|
||||
if SHELL_THREAD_PRIORITY_OVERRIDE
|
||||
config SHELL_THREAD_PRIORITY
|
||||
int "Shell thread priority"
|
||||
default 0
|
||||
help
|
||||
Set thread priority of the shell
|
||||
endif
|
||||
|
||||
config SHELL_STACK_SIZE
|
||||
int "Shell thread stack size"
|
||||
default 3168 if OPENTHREAD_SHELL && OPENTHREAD_JOINER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue