symbol.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #include "finsh.h"
  2. long hello(void);
  3. long version(void);
  4. long list(void);
  5. long list_thread(void);
  6. long list_sem(void);
  7. long list_mutex(void);
  8. long list_fevent(void);
  9. long list_event(void);
  10. long list_mailbox(void);
  11. long list_msgqueue(void);
  12. long list_mempool(void);
  13. long list_timer(void);
  14. #ifdef FINSH_USING_SYMTAB
  15. struct finsh_syscall *_syscall_table_begin = NULL;
  16. struct finsh_syscall *_syscall_table_end = NULL;
  17. struct finsh_sysvar *_sysvar_table_begin = NULL;
  18. struct finsh_sysvar *_sysvar_table_end = NULL;
  19. #else
  20. struct finsh_syscall _syscall_table[] =
  21. {
  22. {"hello", hello},
  23. {"version", version},
  24. {"list", list},
  25. {"list_thread", list_thread},
  26. #ifdef RT_USING_SEMAPHORE
  27. {"list_sem", list_sem},
  28. #endif
  29. #ifdef RT_USING_MUTEX
  30. {"list_mutex", list_mutex},
  31. #endif
  32. #ifdef RT_USING_FEVENT
  33. {"list_fevent", list_fevent},
  34. #endif
  35. #ifdef RT_USING_EVENT
  36. {"list_event", list_event},
  37. #endif
  38. #ifdef RT_USING_MAILBOX
  39. {"list_mb", list_mailbox},
  40. #endif
  41. #ifdef RT_USING_MESSAGEQUEUE
  42. {"list_mq", list_msgqueue},
  43. #endif
  44. #ifdef RT_USING_MEMPOOL
  45. {"list_memp", list_mempool},
  46. #endif
  47. {"list_timer", list_timer},
  48. };
  49. struct finsh_syscall *_syscall_table_begin = &_syscall_table[0];
  50. struct finsh_syscall *_syscall_table_end = &_syscall_table[sizeof(_syscall_table) / sizeof(struct finsh_syscall)];
  51. struct finsh_sysvar *_sysvar_table_begin = NULL;
  52. struct finsh_sysvar *_sysvar_table_end = NULL;
  53. #endif