summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-08-28 16:48:08 -0400
committerMeco Man <[email protected]>2021-08-28 16:48:08 -0400
commit1997113fbca8894dcaad75a6fa4e7b42396a4031 (patch)
tree99f5f837836408f61e9c92e9a9840dbb8c5c2801 /components/finsh
parent3d5582380d2c8612c43e1c2e3e5aa633f7f4647c (diff)
FINSH_USING_BUILT_IN_COMMANDS改MSH_USING_BUILT_IN_COMMANDS
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/Kconfig2
-rw-r--r--components/finsh/SConscript2
-rw-r--r--components/finsh/msh.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig
index 1a980b06aa..cf4e673c75 100644
--- a/components/finsh/Kconfig
+++ b/components/finsh/Kconfig
@@ -41,7 +41,7 @@ if RT_USING_MSH
int "The command line size for shell"
default 80
- config FINSH_USING_BUILT_IN_COMMANDS
+ config MSH_USING_BUILT_IN_COMMANDS
bool "Enable built-in commands, such as list_thread"
default y
diff --git a/components/finsh/SConscript b/components/finsh/SConscript
index 65395f346b..28fe02bac5 100644
--- a/components/finsh/SConscript
+++ b/components/finsh/SConscript
@@ -6,7 +6,7 @@ shell.c
msh.c
''')
-if GetDepend('FINSH_USING_BUILT_IN_COMMANDS'):
+if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
src += ['cmd.c']
if GetDepend('RT_USING_DFS'):
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index a0680e2ce9..86985c561c 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -54,7 +54,7 @@ int msh_help(int argc, char **argv)
}
MSH_CMD_EXPORT_ALIAS(msh_help, help, RT - Thread shell help.);
-#ifdef FINSH_USING_BUILT_IN_COMMANDS
+#ifdef MSH_USING_BUILT_IN_COMMANDS
int cmd_ps(int argc, char **argv)
{
extern long list_thread(void);
@@ -85,7 +85,7 @@ int cmd_free(int argc, char **argv)
}
MSH_CMD_EXPORT_ALIAS(cmd_free, free, Show the memory usage in the system.);
#endif /* RT_USING_HEAP */
-#endif /* FINSH_USING_BUILT_IN_COMMANDS */
+#endif /* MSH_USING_BUILT_IN_COMMANDS */
static int msh_split(char *cmd, rt_size_t length, char *argv[FINSH_ARG_MAX])
{