rtm.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. * File : module.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-04-12 yi.qiu first version
  13. */
  14. #include <rtthread.h>
  15. #include <rtm.h>
  16. /* some buildin kernel symbol */
  17. /*
  18. * thread interface symbol
  19. */
  20. RTM_EXPORT(rt_thread_init)
  21. RTM_EXPORT(rt_thread_detach)
  22. RTM_EXPORT(rt_thread_create)
  23. RTM_EXPORT(rt_thread_self)
  24. RTM_EXPORT(rt_thread_find)
  25. RTM_EXPORT(rt_thread_startup)
  26. RTM_EXPORT(rt_thread_delete)
  27. RTM_EXPORT(rt_thread_yield)
  28. RTM_EXPORT(rt_thread_delay)
  29. RTM_EXPORT(rt_thread_control)
  30. RTM_EXPORT(rt_thread_suspend)
  31. RTM_EXPORT(rt_thread_resume)
  32. RTM_EXPORT(rt_thread_timeout)
  33. #ifdef RT_USING_SEMAPHORE
  34. /*
  35. * semaphore interface symbol
  36. */
  37. RTM_EXPORT(rt_sem_init)
  38. RTM_EXPORT(rt_sem_detach)
  39. RTM_EXPORT(rt_sem_create)
  40. RTM_EXPORT(rt_sem_delete)
  41. RTM_EXPORT(rt_sem_take)
  42. RTM_EXPORT(rt_sem_trytake)
  43. RTM_EXPORT(rt_sem_release)
  44. RTM_EXPORT(rt_sem_control)
  45. #endif
  46. #ifdef RT_USING_MUTEX
  47. /*
  48. * mutex interface symbol
  49. */
  50. RTM_EXPORT(rt_mutex_init)
  51. RTM_EXPORT(rt_mutex_detach)
  52. RTM_EXPORT(rt_mutex_create)
  53. RTM_EXPORT(rt_mutex_delete)
  54. RTM_EXPORT(rt_mutex_take)
  55. RTM_EXPORT(rt_mutex_release)
  56. RTM_EXPORT(rt_mutex_control)
  57. #endif
  58. #ifdef RT_USING_EVENT
  59. /*
  60. * event interface symbol
  61. */
  62. RTM_EXPORT(rt_event_init)
  63. RTM_EXPORT(rt_event_detach)
  64. RTM_EXPORT(rt_event_create)
  65. RTM_EXPORT(rt_event_delete)
  66. RTM_EXPORT(rt_event_send)
  67. RTM_EXPORT(rt_event_recv)
  68. RTM_EXPORT(rt_event_control)
  69. #endif
  70. #ifdef RT_USING_MAILBOX
  71. /*
  72. * mailbox interface symbol
  73. */
  74. RTM_EXPORT(rt_mb_init)
  75. RTM_EXPORT(rt_mb_detach)
  76. RTM_EXPORT(rt_mb_create)
  77. RTM_EXPORT(rt_mb_delete)
  78. RTM_EXPORT(rt_mb_send)
  79. RTM_EXPORT(rt_mb_recv)
  80. RTM_EXPORT(rt_mb_control)
  81. #endif
  82. #ifdef RT_USING_MESSAGEQUEUE
  83. /*
  84. * message queue interface symbol
  85. */
  86. RTM_EXPORT(rt_mq_init)
  87. RTM_EXPORT(rt_mq_detach)
  88. RTM_EXPORT(rt_mq_create)
  89. RTM_EXPORT(rt_mq_delete)
  90. RTM_EXPORT(rt_mq_send)
  91. RTM_EXPORT(rt_mq_urgent)
  92. RTM_EXPORT(rt_mq_recv)
  93. RTM_EXPORT(rt_mq_control)
  94. #endif
  95. #ifdef RT_USING_MEMPOOL
  96. /*
  97. * memory pool interface symbol
  98. */
  99. RTM_EXPORT(rt_mp_init)
  100. RTM_EXPORT(rt_mp_detach)
  101. RTM_EXPORT(rt_mp_create)
  102. RTM_EXPORT(rt_mp_delete)
  103. RTM_EXPORT(rt_mp_alloc)
  104. RTM_EXPORT(rt_mp_free)
  105. #endif
  106. #ifdef RT_USING_HEAP
  107. /*
  108. * heap memory interface symbol
  109. */
  110. RTM_EXPORT(rt_malloc)
  111. RTM_EXPORT(rt_free)
  112. RTM_EXPORT(rt_realloc)
  113. RTM_EXPORT(rt_calloc)
  114. #endif
  115. /*
  116. * clock & timer interface symbol
  117. */
  118. RTM_EXPORT(rt_tick_get)
  119. RTM_EXPORT(rt_tick_from_millisecond)
  120. RTM_EXPORT(rt_system_timer_init)
  121. RTM_EXPORT(rt_system_timer_thread_init)
  122. RTM_EXPORT(rt_timer_init)
  123. RTM_EXPORT(rt_timer_detach)
  124. RTM_EXPORT(rt_timer_create)
  125. RTM_EXPORT(rt_timer_delete)
  126. RTM_EXPORT(rt_timer_start)
  127. RTM_EXPORT(rt_timer_stop)
  128. RTM_EXPORT(rt_timer_control)
  129. /*
  130. * kservice interface symbol
  131. */
  132. RTM_EXPORT(rt_kprintf)