1.新增msh组件(类Shell工具)。

This commit is contained in:
MacRsh
2023-12-30 03:51:50 +08:00
parent 2073e3d7fe
commit f2b55fd7b1
5 changed files with 501 additions and 59 deletions

View File

@@ -1,3 +1,46 @@
menu "No components configure"
menu "Components configure"
# Msh
config MR_USING_MSH
bool "Use msh"
default y
help
"Use this option allows for the use of the shell."
menu "Msh configure"
depends on MR_USING_MSH
config MR_CFG_MSH_BUFSZ
int "Msh buffer size"
default 32
range 16 1024
help
"This option sets the buffer size used by the shell."
config MR_CFG_MSH_NAME_MAX
int "Msh command name max length"
default 8
range 8 64
help
"This option sets the max length of the command name."
config MR_CFG_MSH_ARGS_MAX
int "Msh argument max number"
default 4
range 1 16
help
"This option sets the max number of arguments."
config MR_CFG_MSH_PROMPT
string "Msh prompt"
default "msh>"
help
"This option sets the prompt of the shell."
config MR_USING_MSH_ECHO
bool "Use msh echo"
default y
help
"Use this option allows for the use of the echo in the msh."
endmenu
endmenu