[update] remove extra code. (#5663)
This commit is contained in:
parent
3df75f9e32
commit
46d09e045e
|
@ -40,14 +40,6 @@
|
||||||
|
|
||||||
#define LIST_FIND_OBJ_NR 8
|
#define LIST_FIND_OBJ_NR 8
|
||||||
|
|
||||||
long hello(void)
|
|
||||||
{
|
|
||||||
rt_kprintf("Hello RT-Thread!\n");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
MSH_CMD_EXPORT(hello, say hello world);
|
|
||||||
|
|
||||||
static long clear(void)
|
static long clear(void)
|
||||||
{
|
{
|
||||||
rt_kprintf("\x1b[2J\x1b[H");
|
rt_kprintf("\x1b[2J\x1b[H");
|
||||||
|
@ -886,28 +878,4 @@ long list_device(void)
|
||||||
MSH_CMD_EXPORT(list_device, list device in system);
|
MSH_CMD_EXPORT(list_device, list device in system);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long list(void)
|
|
||||||
{
|
|
||||||
rt_kprintf("--Commands List:\n");
|
|
||||||
{
|
|
||||||
struct finsh_syscall *index;
|
|
||||||
for (index = _syscall_table_begin;
|
|
||||||
index < _syscall_table_end;
|
|
||||||
FINSH_NEXT_SYSCALL(index))
|
|
||||||
{
|
|
||||||
/* skip the internal command */
|
|
||||||
if (strncmp((char *)index->name, "__", 2) == 0) continue;
|
|
||||||
|
|
||||||
#if defined(FINSH_USING_DESCRIPTION) && defined(FINSH_USING_SYMTAB)
|
|
||||||
rt_kprintf("%-16s -- %s\n", index->name, index->desc);
|
|
||||||
#else
|
|
||||||
rt_kprintf("%s\n", index->name);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
MSH_CMD_EXPORT(list, list all commands in system)
|
|
||||||
|
|
||||||
#endif /* RT_USING_FINSH */
|
#endif /* RT_USING_FINSH */
|
||||||
|
|
Loading…
Reference in New Issue