[finsh] add FINSH_ENABLE_ECHO macro to config the finsh needs echo or not
This commit is contained in:
parent
93f5e3e466
commit
5444c90ecf
|
@ -26,6 +26,10 @@ config FINSH_USING_DESCRIPTION
|
||||||
bool "Keeping description in symbol table"
|
bool "Keeping description in symbol table"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config FINSH_ENABLE_ECHO
|
||||||
|
int "Enble the command echo mode"
|
||||||
|
default 1
|
||||||
|
|
||||||
config FINSH_THREAD_PRIORITY
|
config FINSH_THREAD_PRIORITY
|
||||||
int "The priority level value of finsh thread"
|
int "The priority level value of finsh thread"
|
||||||
default 20
|
default 20
|
||||||
|
|
|
@ -414,7 +414,7 @@ void finsh_thread_entry(void *parameter)
|
||||||
char ch;
|
char ch;
|
||||||
|
|
||||||
/* normal is echo mode */
|
/* normal is echo mode */
|
||||||
shell->echo_mode = 1;
|
shell->echo_mode = FINSH_ENABLE_ECHO;
|
||||||
|
|
||||||
#ifndef FINSH_USING_MSH_ONLY
|
#ifndef FINSH_USING_MSH_ONLY
|
||||||
finsh_init(&shell->parser);
|
finsh_init(&shell->parser);
|
||||||
|
|
Loading…
Reference in New Issue