rtconfig.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. /* kservice optimization */
  16. /* end of kservice optimization */
  17. /* klibc optimization */
  18. /* end of klibc optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_ASSERT
  21. #define RT_DEBUGING_COLOR
  22. #define RT_DEBUGING_CONTEXT
  23. #define RT_USING_OVERFLOW_CHECK
  24. /* Inter-Thread communication */
  25. #define RT_USING_SEMAPHORE
  26. #define RT_USING_MUTEX
  27. #define RT_USING_EVENT
  28. #define RT_USING_MAILBOX
  29. #define RT_USING_MESSAGEQUEUE
  30. /* end of Inter-Thread communication */
  31. /* Memory Management */
  32. #define RT_USING_MEMPOOL
  33. #define RT_USING_MEMHEAP
  34. #define RT_MEMHEAP_FAST_MODE
  35. #define RT_USING_MEMHEAP_AS_HEAP
  36. #define RT_USING_MEMHEAP_AUTO_BINDING
  37. #define RT_USING_HEAP
  38. /* end of Memory Management */
  39. #define RT_USING_DEVICE
  40. #define RT_USING_CONSOLE
  41. #define RT_CONSOLEBUF_SIZE 128
  42. #define RT_CONSOLE_DEVICE_NAME "uart1"
  43. #define RT_VER_NUM 0x50200
  44. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  45. /* end of RT-Thread Kernel */
  46. #define RT_USING_CACHE
  47. #define RT_USING_CPU_FFS
  48. #define ARCH_ARM
  49. #define ARCH_ARM_CORTEX_M
  50. #define ARCH_ARM_CORTEX_FPU
  51. #define ARCH_ARM_CORTEX_M7
  52. /* RT-Thread Components */
  53. #define RT_USING_COMPONENTS_INIT
  54. #define RT_USING_USER_MAIN
  55. #define RT_MAIN_THREAD_STACK_SIZE 2048
  56. #define RT_MAIN_THREAD_PRIORITY 10
  57. #define RT_USING_MSH
  58. #define RT_USING_FINSH
  59. #define FINSH_USING_MSH
  60. #define FINSH_THREAD_NAME "tshell"
  61. #define FINSH_THREAD_PRIORITY 20
  62. #define FINSH_THREAD_STACK_SIZE 4096
  63. #define FINSH_USING_HISTORY
  64. #define FINSH_HISTORY_LINES 5
  65. #define FINSH_USING_SYMTAB
  66. #define FINSH_CMD_SIZE 80
  67. #define MSH_USING_BUILT_IN_COMMANDS
  68. #define FINSH_USING_DESCRIPTION
  69. #define FINSH_ARG_MAX 10
  70. #define FINSH_USING_OPTION_COMPLETION
  71. /* DFS: device virtual file system */
  72. /* end of DFS: device virtual file system */
  73. /* Device Drivers */
  74. #define RT_USING_DEVICE_IPC
  75. #define RT_UNAMED_PIPE_NUMBER 64
  76. #define RT_USING_SERIAL
  77. #define RT_USING_SERIAL_V1
  78. #define RT_SERIAL_RB_BUFSZ 64
  79. #define RT_USING_PHY
  80. #define RT_USING_PIN
  81. /* end of Device Drivers */
  82. /* C/C++ and POSIX layer */
  83. /* ISO-ANSI C layer */
  84. /* Timezone and Daylight Saving Time */
  85. #define RT_LIBC_USING_LIGHT_TZ_DST
  86. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  87. #define RT_LIBC_TZ_DEFAULT_MIN 0
  88. #define RT_LIBC_TZ_DEFAULT_SEC 0
  89. /* end of Timezone and Daylight Saving Time */
  90. /* end of ISO-ANSI C layer */
  91. /* POSIX (Portable Operating System Interface) layer */
  92. /* Interprocess Communication (IPC) */
  93. /* Socket is in the 'Network' category */
  94. /* end of Interprocess Communication (IPC) */
  95. /* end of POSIX (Portable Operating System Interface) layer */
  96. /* end of C/C++ and POSIX layer */
  97. /* Network */
  98. #define RT_USING_NETDEV
  99. #define NETDEV_USING_IFCONFIG
  100. #define NETDEV_USING_PING
  101. #define NETDEV_USING_NETSTAT
  102. #define NETDEV_USING_AUTO_DEFAULT
  103. #define NETDEV_IPV4 1
  104. #define NETDEV_IPV6 0
  105. /* end of Network */
  106. /* Memory protection */
  107. /* end of Memory protection */
  108. /* Utilities */
  109. /* end of Utilities */
  110. /* Using USB legacy version */
  111. #define RT_USING_USB
  112. #define RT_USING_USB_HOST
  113. #define RT_USBD_THREAD_STACK_SZ 4096
  114. /* end of Using USB legacy version */
  115. /* end of RT-Thread Components */
  116. /* RT-Thread Utestcases */
  117. /* end of RT-Thread Utestcases */
  118. /* RT-Thread online packages */
  119. /* IoT - internet of things */
  120. /* Wi-Fi */
  121. /* Marvell WiFi */
  122. /* end of Marvell WiFi */
  123. /* Wiced WiFi */
  124. /* end of Wiced WiFi */
  125. /* CYW43012 WiFi */
  126. /* end of CYW43012 WiFi */
  127. /* BL808 WiFi */
  128. /* end of BL808 WiFi */
  129. /* CYW43439 WiFi */
  130. /* end of CYW43439 WiFi */
  131. /* end of Wi-Fi */
  132. /* IoT Cloud */
  133. /* end of IoT Cloud */
  134. /* end of IoT - internet of things */
  135. /* security packages */
  136. /* end of security packages */
  137. /* language packages */
  138. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  139. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  140. /* XML: Extensible Markup Language */
  141. /* end of XML: Extensible Markup Language */
  142. /* end of language packages */
  143. /* multimedia packages */
  144. /* LVGL: powerful and easy-to-use embedded GUI library */
  145. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  146. /* u8g2: a monochrome graphic library */
  147. /* end of u8g2: a monochrome graphic library */
  148. /* end of multimedia packages */
  149. /* tools packages */
  150. /* end of tools packages */
  151. /* system packages */
  152. /* enhanced kernel services */
  153. /* end of enhanced kernel services */
  154. /* acceleration: Assembly language or algorithmic acceleration packages */
  155. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  156. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  157. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  158. /* Micrium: Micrium software products porting for RT-Thread */
  159. /* end of Micrium: Micrium software products porting for RT-Thread */
  160. /* end of system packages */
  161. /* peripheral libraries and drivers */
  162. /* HAL & SDK Drivers */
  163. /* STM32 HAL & SDK Drivers */
  164. /* end of STM32 HAL & SDK Drivers */
  165. /* Infineon HAL Packages */
  166. /* end of Infineon HAL Packages */
  167. /* Kendryte SDK */
  168. /* end of Kendryte SDK */
  169. /* end of HAL & SDK Drivers */
  170. /* sensors drivers */
  171. /* end of sensors drivers */
  172. /* touch drivers */
  173. /* end of touch drivers */
  174. /* end of peripheral libraries and drivers */
  175. /* AI packages */
  176. /* end of AI packages */
  177. /* Signal Processing and Control Algorithm Packages */
  178. /* end of Signal Processing and Control Algorithm Packages */
  179. /* miscellaneous packages */
  180. /* project laboratory */
  181. /* end of project laboratory */
  182. /* samples: kernel and components samples */
  183. /* end of samples: kernel and components samples */
  184. /* entertainment: terminal games and other interesting software packages */
  185. /* end of entertainment: terminal games and other interesting software packages */
  186. /* end of miscellaneous packages */
  187. /* Arduino libraries */
  188. /* Projects and Demos */
  189. /* end of Projects and Demos */
  190. /* Sensors */
  191. /* end of Sensors */
  192. /* Display */
  193. /* end of Display */
  194. /* Timing */
  195. /* end of Timing */
  196. /* Data Processing */
  197. /* end of Data Processing */
  198. /* Data Storage */
  199. /* Communication */
  200. /* end of Communication */
  201. /* Device Control */
  202. /* end of Device Control */
  203. /* Other */
  204. /* end of Other */
  205. /* Signal IO */
  206. /* end of Signal IO */
  207. /* Uncategorized */
  208. /* end of Arduino libraries */
  209. /* end of RT-Thread online packages */
  210. #define SOC_IMXRT1170_SERIES
  211. /* Hardware Drivers Config */
  212. #define BSP_USING_QSPIFLASH
  213. #define SOC_MIMXRT1176DVMAA
  214. /* On-chip Peripheral Drivers */
  215. #define BSP_USING_GPIO
  216. #define BSP_USING_LPUART
  217. #define BSP_USING_LPUART1
  218. /* end of On-chip Peripheral Drivers */
  219. /* Onboard Peripheral Drivers */
  220. /* end of Onboard Peripheral Drivers */
  221. /* Board extended module Drivers */
  222. /* end of Hardware Drivers Config */
  223. #endif