Skip to content

Commit

Permalink
apps/shell: Add CONFIG_TASH_TASK_PRIORITY configure
Browse files Browse the repository at this point in the history
We need to change TASH task priority sometime.
Therefore, Add CONFIG_TASH_TASK_PRIORITY

Signed-off-by: eunwoo.nam <[email protected]>
  • Loading branch information
ewoodev authored and sunghan-chang committed Feb 25, 2025
1 parent a016361 commit df4ad58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/shell/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
#

menu "Shell"
config TASH_TASK_PRIORITY
int "TASH task priority"
default 125
---help---
The number of TASH task priority.

config TASH
bool "Enable shell"
default y
Expand Down
4 changes: 4 additions & 0 deletions apps/shell/tash_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ enum tash_input_state_e {
#define SELECT_TIMEOUT_USECS (0)
#endif
#define TASH_TASK_STACKSIZE (4096)
#ifdef CONFIG_TASH_TASK_PRIORITY
#define TASH_TASK_PRIORITY (CONFIG_TASH_TASK_PRIORITY)
#else
#define TASH_TASK_PRIORITY (125)
#endif

#define TASH_PROMPT "TASH>>"
#endif /* CONFIG_TASH */
Expand Down

0 comments on commit df4ad58

Please sign in to comment.