diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-28 12:48:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-28 12:48:23 +0000 |
commit | 587a5b65f3f48805150f8a0d8db9ce34f9cabfda (patch) | |
tree | 84b00e127433c4255f77ad59a840ac4536c545c9 /nuttx/examples/nsh/nsh_main.c | |
parent | 75c03c950d2211049c93c1469e014d03f0ee4bc3 (diff) | |
download | px4-nuttx-587a5b65f3f48805150f8a0d8db9ce34f9cabfda.tar.gz px4-nuttx-587a5b65f3f48805150f8a0d8db9ce34f9cabfda.tar.bz2 px4-nuttx-587a5b65f3f48805150f8a0d8db9ce34f9cabfda.zip |
Rename NSH mem command to free
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3325 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_main.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index 2483c4919..aea823be8 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -173,6 +173,10 @@ static const struct cmdmap_s g_cmdmap[] = { "exit", cmd_exit, 1, 1, NULL }, #endif +#ifndef CONFIG_EXAMPLES_NSH_DISABLE_FREE + { "free", cmd_free, 1, 1, NULL }, +#endif + #if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0 # ifndef CONFIG_EXAMPLES_NSH_DISABLE_GET { "get", cmd_get, 4, 7, "[-b|-n] [-f <local-path>] -h <ip-address> <remote-path>" }, @@ -210,9 +214,6 @@ static const struct cmdmap_s g_cmdmap[] = #ifndef CONFIG_EXAMPLES_NSH_DISABLE_MB { "mb", cmd_mb, 2, 3, "<hex-address>[=<hex-value>][ <hex-byte-count>]" }, #endif -#ifndef CONFIG_EXAMPLES_NSH_DISABLE_MEM - { "mem", cmd_mem, 1, 1, NULL }, -#endif #if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_WRITABLE) # ifndef CONFIG_EXAMPLES_NSH_DISABLE_MKDIR |