rtconfig.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 8
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 8
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_HOOK
  11. #define RT_HOOK_USING_FUNC_PTR
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. /* klibc optimization */
  21. /* end of klibc optimization */
  22. #define RT_USING_DEBUG
  23. #define RT_DEBUGING_ASSERT
  24. #define RT_DEBUGING_COLOR
  25. #define RT_DEBUGING_CONTEXT
  26. #define RT_USING_OVERFLOW_CHECK
  27. /* Inter-Thread communication */
  28. #define RT_USING_SEMAPHORE
  29. #define RT_USING_MUTEX
  30. #define RT_USING_EVENT
  31. #define RT_USING_MAILBOX
  32. #define RT_USING_MESSAGEQUEUE
  33. /* end of Inter-Thread communication */
  34. /* Memory Management */
  35. #define RT_USING_MEMPOOL
  36. #define RT_USING_SMALL_MEM
  37. #define RT_USING_SMALL_MEM_AS_HEAP
  38. #define RT_USING_HEAP
  39. /* end of Memory Management */
  40. #define RT_USING_DEVICE
  41. #define RT_USING_CONSOLE
  42. #define RT_CONSOLEBUF_SIZE 128
  43. #define RT_CONSOLE_DEVICE_NAME "uart"
  44. #define RT_VER_NUM 0x50200
  45. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  46. /* end of RT-Thread Kernel */
  47. #define ARCH_ARM
  48. /* RT-Thread Components */
  49. #define RT_USING_MSH
  50. #define RT_USING_FINSH
  51. #define FINSH_USING_MSH
  52. #define FINSH_THREAD_NAME "tshell"
  53. #define FINSH_THREAD_PRIORITY 20
  54. #define FINSH_THREAD_STACK_SIZE 4096
  55. #define FINSH_USING_HISTORY
  56. #define FINSH_HISTORY_LINES 5
  57. #define FINSH_USING_SYMTAB
  58. #define FINSH_CMD_SIZE 80
  59. #define MSH_USING_BUILT_IN_COMMANDS
  60. #define FINSH_USING_DESCRIPTION
  61. #define FINSH_ARG_MAX 10
  62. #define FINSH_USING_OPTION_COMPLETION
  63. /* DFS: device virtual file system */
  64. /* end of DFS: device virtual file system */
  65. /* Device Drivers */
  66. #define RT_USING_DEVICE_IPC
  67. #define RT_UNAMED_PIPE_NUMBER 64
  68. #define RT_USING_SERIAL
  69. #define RT_USING_SERIAL_V1
  70. #define RT_SERIAL_USING_DMA
  71. #define RT_SERIAL_RB_BUFSZ 64
  72. #define RT_USING_PIN
  73. /* end of Device Drivers */
  74. /* C/C++ and POSIX layer */
  75. /* ISO-ANSI C layer */
  76. /* Timezone and Daylight Saving Time */
  77. #define RT_LIBC_USING_LIGHT_TZ_DST
  78. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  79. #define RT_LIBC_TZ_DEFAULT_MIN 0
  80. #define RT_LIBC_TZ_DEFAULT_SEC 0
  81. /* end of Timezone and Daylight Saving Time */
  82. /* end of ISO-ANSI C layer */
  83. /* POSIX (Portable Operating System Interface) layer */
  84. /* Interprocess Communication (IPC) */
  85. /* Socket is in the 'Network' category */
  86. /* end of Interprocess Communication (IPC) */
  87. /* end of POSIX (Portable Operating System Interface) layer */
  88. /* end of C/C++ and POSIX layer */
  89. /* Network */
  90. /* end of Network */
  91. /* Memory protection */
  92. /* end of Memory protection */
  93. /* Utilities */
  94. /* end of Utilities */
  95. /* Using USB legacy version */
  96. /* end of Using USB legacy version */
  97. /* end of RT-Thread Components */
  98. /* RT-Thread Utestcases */
  99. /* end of RT-Thread Utestcases */
  100. /* RT-Thread online packages */
  101. /* IoT - internet of things */
  102. /* Wi-Fi */
  103. /* Marvell WiFi */
  104. /* end of Marvell WiFi */
  105. /* Wiced WiFi */
  106. /* end of Wiced WiFi */
  107. /* CYW43012 WiFi */
  108. /* end of CYW43012 WiFi */
  109. /* BL808 WiFi */
  110. /* end of BL808 WiFi */
  111. /* CYW43439 WiFi */
  112. /* end of CYW43439 WiFi */
  113. /* end of Wi-Fi */
  114. /* IoT Cloud */
  115. /* end of IoT Cloud */
  116. /* end of IoT - internet of things */
  117. /* security packages */
  118. /* end of security packages */
  119. /* language packages */
  120. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  121. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  122. /* XML: Extensible Markup Language */
  123. /* end of XML: Extensible Markup Language */
  124. /* end of language packages */
  125. /* multimedia packages */
  126. /* LVGL: powerful and easy-to-use embedded GUI library */
  127. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  128. /* u8g2: a monochrome graphic library */
  129. /* end of u8g2: a monochrome graphic library */
  130. /* end of multimedia packages */
  131. /* tools packages */
  132. /* end of tools packages */
  133. /* system packages */
  134. /* enhanced kernel services */
  135. /* end of enhanced kernel services */
  136. /* acceleration: Assembly language or algorithmic acceleration packages */
  137. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  138. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  139. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  140. /* Micrium: Micrium software products porting for RT-Thread */
  141. /* end of Micrium: Micrium software products porting for RT-Thread */
  142. /* end of system packages */
  143. /* peripheral libraries and drivers */
  144. /* HAL & SDK Drivers */
  145. /* STM32 HAL & SDK Drivers */
  146. /* end of STM32 HAL & SDK Drivers */
  147. /* Infineon HAL Packages */
  148. /* end of Infineon HAL Packages */
  149. /* Kendryte SDK */
  150. /* end of Kendryte SDK */
  151. /* end of HAL & SDK Drivers */
  152. /* sensors drivers */
  153. /* end of sensors drivers */
  154. /* touch drivers */
  155. /* end of touch drivers */
  156. /* end of peripheral libraries and drivers */
  157. /* AI packages */
  158. /* end of AI packages */
  159. /* Signal Processing and Control Algorithm Packages */
  160. /* end of Signal Processing and Control Algorithm Packages */
  161. /* miscellaneous packages */
  162. /* project laboratory */
  163. /* end of project laboratory */
  164. /* samples: kernel and components samples */
  165. /* end of samples: kernel and components samples */
  166. /* entertainment: terminal games and other interesting software packages */
  167. /* end of entertainment: terminal games and other interesting software packages */
  168. /* end of miscellaneous packages */
  169. /* Arduino libraries */
  170. /* Projects and Demos */
  171. /* end of Projects and Demos */
  172. /* Sensors */
  173. /* end of Sensors */
  174. /* Display */
  175. /* end of Display */
  176. /* Timing */
  177. /* end of Timing */
  178. /* Data Processing */
  179. /* end of Data Processing */
  180. /* Data Storage */
  181. /* Communication */
  182. /* end of Communication */
  183. /* Device Control */
  184. /* end of Device Control */
  185. /* Other */
  186. /* end of Other */
  187. /* Signal IO */
  188. /* end of Signal IO */
  189. /* Uncategorized */
  190. /* end of Arduino libraries */
  191. /* end of RT-Thread online packages */
  192. #define SOC_LPC2148
  193. #endif