From a672a9e52ae754783d6b9cad0aebe4a046654dfe Mon Sep 17 00:00:00 2001 From: liu2guang <1004383796@qq.com> Date: Tue, 16 Jan 2018 21:45:20 +0800 Subject: [PATCH] =?UTF-8?q?[Finsh]=20=E4=BF=AE=E5=A4=8Dmenuconfig=E4=B8=AD?= =?UTF-8?q?finsh=E5=8E=86=E5=8F=B2=E5=91=BD=E4=BB=A4=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=94=99=E8=AF=AF,=20=E5=B9=B6=E5=B0=86finsh?= =?UTF-8?q?=E6=9C=AA=E5=AF=BC=E5=87=BA=E9=85=8D=E7=BD=AE=E5=AF=BC=E5=87=BA?= =?UTF-8?q?menuconfig.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/Kconfig | 14 ++++++++++++++ components/finsh/shell.h | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig index 7d05d21af7..f36c73e1fb 100644 --- a/components/finsh/Kconfig +++ b/components/finsh/Kconfig @@ -6,9 +6,17 @@ config RT_USING_FINSH if RT_USING_FINSH +config FINSH_THREAD_NAME + string "The finsh thread name" + default "tshell" config FINSH_USING_HISTORY bool "Enable command history feature" default y +if FINSH_USING_HISTORY +config FINSH_HISTORY_LINES + int "The command history line number" + default 5 +endif config FINSH_USING_SYMTAB bool "Using symbol table for commands" @@ -38,6 +46,12 @@ if FINSH_USING_AUTH config FINSH_DEFAULT_PASSWORD string "The default password for shell authentication" 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 config FINSH_USING_MSH diff --git a/components/finsh/shell.h b/components/finsh/shell.h index 7d5dd47076..06b81de518 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -33,10 +33,6 @@ #include #include "finsh.h" -#ifndef FINSH_USING_HISTORY -#define FINSH_USING_HISTORY -#endif - #ifndef FINSH_THREAD_PRIORITY #define FINSH_THREAD_PRIORITY 20 #endif