summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2014-10-14 16:07:49 +0800
committerGrissiom <[email protected]>2014-10-14 16:07:49 +0800
commit4c39f8765ac20bd43488484dd3e526de792e5d5e (patch)
tree1219c01f199189b3508148ef75f83a383ed670b8 /components
parent23cc390474f35bf6a331eff8c498b47e44835574 (diff)
msh: free is only available when HEAP is enabled
Diffstat (limited to 'components')
-rw-r--r--components/finsh/msh_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c
index 0ec0b07621..ca92ef7a6d 100644
--- a/components/finsh/msh_cmd.c
+++ b/components/finsh/msh_cmd.c
@@ -276,6 +276,7 @@ int cmd_time(int argc, char** argv)
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_time, __cmd_time, Execute command with time.);
+#ifdef RT_USING_HEAP
int cmd_free(int argc, char** argv)
{
extern void list_mem(void);
@@ -284,6 +285,7 @@ int cmd_free(int argc, char** argv)
return 0;
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_free, __cmd_free, Show the memory usage in the system.);
+#endif
#endif