File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 4040
4141#define LIST_FIND_OBJ_NR 8
4242
43- long hello (void )
44- {
45- rt_kprintf ("Hello RT-Thread!\n" );
46-
47- return 0 ;
48- }
49- MSH_CMD_EXPORT (hello , say hello world );
50-
5143static long clear (void )
5244{
5345 rt_kprintf ("\x1b[2J\x1b[H" );
@@ -886,28 +878,4 @@ long list_device(void)
886878MSH_CMD_EXPORT (list_device , list device in system );
887879#endif
888880
889- long list (void )
890- {
891- rt_kprintf ("--Commands List:\n" );
892- {
893- struct finsh_syscall * index ;
894- for (index = _syscall_table_begin ;
895- index < _syscall_table_end ;
896- FINSH_NEXT_SYSCALL (index ))
897- {
898- /* skip the internal command */
899- if (strncmp ((char * )index -> name , "__" , 2 ) == 0 ) continue ;
900-
901- #if defined(FINSH_USING_DESCRIPTION ) && defined(FINSH_USING_SYMTAB )
902- rt_kprintf ("%-16s -- %s\n" , index -> name , index -> desc );
903- #else
904- rt_kprintf ("%s\n" , index -> name );
905- #endif
906- }
907- }
908-
909- return 0 ;
910- }
911- MSH_CMD_EXPORT (list , list all commands in system )
912-
913881#endif /* RT_USING_FINSH */
You can’t perform that action at this time.
0 commit comments