Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ set(srcs "commands.c"
"split_argv.c"
"linenoise/linenoise.c")

if(CONFIG_CONSOLE_SHELL_ENABLE)
list(APPEND srcs "shell.c")
endif()

set(requires vfs)

if(${target} STREQUAL "linux")
Expand Down
29 changes: 29 additions & 0 deletions components/console/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,33 @@ menu "Console Library"
Instead of listing the commands in the order of registration, the help command lists
the available commands in sorted order, if this option is enabled.

config CONSOLE_COMMAND_ON_TASK
bool "Enable command on task"
default n
help
In addition to run the command on current task, the console can also run commands on a dedicated
task. This allows for longer running commands without blocking the console input, pipelines, and
keeping the original task stack smaller.

config CONSOLE_COMMAND_DEFAULT_TASK_STACK_SIZE
int "Console default task stack size"
default 4096
depends on CONSOLE_COMMAND_ON_TASK
help
Default stack size for the console command task, unless overridden.

config CONSOLE_COMMAND_DEFAULT_TASK_PRIORITY
int "Console default task priority"
default 5
depends on CONSOLE_COMMAND_ON_TASK
help
Default priority for the console command task, unless overridden.

config CONSOLE_SHELL_ENABLE
bool "Enable console shell"
default n
depends on CONSOLE_COMMAND_ON_TASK
help
Enable the console shell component, which provides a command line shell interface
for interacting with the console library.
endmenu
Loading