1
0
Эх сурвалжийг харах

Merge pull request #1172 from liu2guang/master

[Finsh] 修复menuconfig中finsh历史命令无法关闭错误, 并将finsh未导出配置导出menuconfig.
Bernard Xiong 7 жил өмнө
parent
commit
b51eb5ad71

+ 14 - 0
components/finsh/Kconfig

@@ -6,9 +6,17 @@ config RT_USING_FINSH
 
 
 if RT_USING_FINSH
 if RT_USING_FINSH
 
 
+config FINSH_THREAD_NAME
+    string "The finsh thread name"
+    default "tshell"
 config FINSH_USING_HISTORY
 config FINSH_USING_HISTORY
     bool "Enable command history feature"
     bool "Enable command history feature"
     default y
     default y
+if FINSH_USING_HISTORY
+config FINSH_HISTORY_LINES
+    int "The command history line number"
+    default 5
+endif
 
 
 config FINSH_USING_SYMTAB
 config FINSH_USING_SYMTAB
     bool "Using symbol table for commands"
     bool "Using symbol table for commands"
@@ -38,6 +46,12 @@ if FINSH_USING_AUTH
 config FINSH_DEFAULT_PASSWORD
 config FINSH_DEFAULT_PASSWORD
     string "The default password for shell authentication"
     string "The default password for shell authentication"
     default "rtthread"
     default "rtthread"
+config FINSH_PASSWORD_MIN
+    int "The password min length"
+    default 6
+config FINSH_PASSWORD_MAX
+    int "The password max length"
+    default RT_NAME_MAX
 endif
 endif
 
 
 config FINSH_USING_MSH
 config FINSH_USING_MSH

+ 0 - 4
components/finsh/shell.h

@@ -33,10 +33,6 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include "finsh.h"
 #include "finsh.h"
 
 
-#ifndef FINSH_USING_HISTORY
-#define FINSH_USING_HISTORY
-#endif
-
 #ifndef FINSH_THREAD_PRIORITY
 #ifndef FINSH_THREAD_PRIORITY
 #define FINSH_THREAD_PRIORITY 20
 #define FINSH_THREAD_PRIORITY 20
 #endif
 #endif