提交 48ecbd39 编写于 作者: M moebius.ever

[finsh] add FINSH_ECHO_MODE_DEFAULT, to config the default echo mode of finsh

上级 3e750111
...@@ -26,9 +26,9 @@ config FINSH_USING_DESCRIPTION ...@@ -26,9 +26,9 @@ config FINSH_USING_DESCRIPTION
bool "Keeping description in symbol table" bool "Keeping description in symbol table"
default y default y
config FINSH_ENABLE_ECHO config FINSH_ECHO_MODE_DEFAULT
int "Enble the command echo mode" bool "Enble the command echo mode or not in default"
default 1 default y
config FINSH_THREAD_PRIORITY config FINSH_THREAD_PRIORITY
int "The priority level value of finsh thread" int "The priority level value of finsh thread"
......
...@@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter) ...@@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter)
char ch; char ch;
/* normal is echo mode */ /* normal is echo mode */
shell->echo_mode = FINSH_ENABLE_ECHO; #ifdef FINSH_ECHO_MODE_DEFAULT
shell->echo_mode = 1;
#else
shell->echo_mode = 0;
#endif
#ifndef FINSH_USING_MSH_ONLY #ifndef FINSH_USING_MSH_ONLY
finsh_init(&shell->parser); finsh_init(&shell->parser);
......
...@@ -57,10 +57,6 @@ const char* finsh_get_prompt(void); ...@@ -57,10 +57,6 @@ const char* finsh_get_prompt(void);
#endif #endif
#endif #endif
#ifndef FINSH_ENABLE_ECHO
#define FINSH_ENABLE_ECHO 1
#endif
#ifdef FINSH_USING_AUTH #ifdef FINSH_USING_AUTH
#ifndef FINSH_PASSWORD_MAX #ifndef FINSH_PASSWORD_MAX
#define FINSH_PASSWORD_MAX RT_NAME_MAX #define FINSH_PASSWORD_MAX RT_NAME_MAX
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册