symbol.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2010-03-22 Bernard first version
  9. */
  10. #include <rtthread.h>
  11. #if defined(RT_USING_FINSH) && !defined(FINSH_USING_SYMTAB)
  12. #include "finsh.h"
  13. long hello(void);
  14. long version(void);
  15. long list(void);
  16. long list_thread(void);
  17. long list_sem(void);
  18. long list_mutex(void);
  19. long list_fevent(void);
  20. long list_event(void);
  21. long list_mailbox(void);
  22. long list_msgqueue(void);
  23. long list_mempool(void);
  24. long list_timer(void);
  25. struct finsh_syscall _syscall_table[] =
  26. {
  27. {"hello", hello},
  28. {"version", version},
  29. {"list", list},
  30. {"list_thread", list_thread},
  31. #ifdef RT_USING_SEMAPHORE
  32. {"list_sem", list_sem},
  33. #endif
  34. #ifdef RT_USING_MUTEX
  35. {"list_mutex", list_mutex},
  36. #endif
  37. #ifdef RT_USING_FEVENT
  38. {"list_fevent", list_fevent},
  39. #endif
  40. #ifdef RT_USING_EVENT
  41. {"list_event", list_event},
  42. #endif
  43. #ifdef RT_USING_MAILBOX
  44. {"list_mb", list_mailbox},
  45. #endif
  46. #ifdef RT_USING_MESSAGEQUEUE
  47. {"list_mq", list_msgqueue},
  48. #endif
  49. #ifdef RT_USING_MEMPOOL
  50. {"list_memp", list_mempool},
  51. #endif
  52. {"list_timer", list_timer},
  53. };
  54. struct finsh_syscall *_syscall_table_begin = &_syscall_table[0];
  55. struct finsh_syscall *_syscall_table_end = &_syscall_table[sizeof(_syscall_table) / sizeof(struct finsh_syscall)];
  56. struct finsh_sysvar *_sysvar_table_begin = NULL;
  57. struct finsh_sysvar *_sysvar_table_end = NULL;
  58. #endif /* RT_USING_FINSH && !FINSH_USING_SYMTAB */