rtconfig.h 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_MCX
  4. /* RT-Thread Kernel */
  5. /* klibc options */
  6. /* rt_vsnprintf options */
  7. #define RT_KLIBC_USING_VSNPRINTF_LONGLONG
  8. #define RT_KLIBC_USING_VSNPRINTF_STANDARD
  9. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS
  10. #define RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS
  11. #define RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER
  12. #define RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER
  13. #define RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE 32
  14. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
  15. #define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
  16. #define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
  17. #define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
  18. /* end of rt_vsnprintf options */
  19. /* rt_vsscanf options */
  20. /* end of rt_vsscanf options */
  21. /* rt_memset options */
  22. /* end of rt_memset options */
  23. /* rt_memcpy options */
  24. /* end of rt_memcpy options */
  25. /* rt_memmove options */
  26. /* end of rt_memmove options */
  27. /* rt_memcmp options */
  28. /* end of rt_memcmp options */
  29. /* rt_strstr options */
  30. /* end of rt_strstr options */
  31. /* rt_strcasecmp options */
  32. /* end of rt_strcasecmp options */
  33. /* rt_strncpy options */
  34. /* end of rt_strncpy options */
  35. /* rt_strcpy options */
  36. /* end of rt_strcpy options */
  37. /* rt_strncmp options */
  38. /* end of rt_strncmp options */
  39. /* rt_strcmp options */
  40. /* end of rt_strcmp options */
  41. /* rt_strlen options */
  42. /* end of rt_strlen options */
  43. /* rt_strnlen options */
  44. /* end of rt_strnlen options */
  45. /* end of klibc options */
  46. #define RT_NAME_MAX 8
  47. #define RT_CPUS_NR 1
  48. #define RT_ALIGN_SIZE 8
  49. #define RT_THREAD_PRIORITY_32
  50. #define RT_THREAD_PRIORITY_MAX 32
  51. #define RT_TICK_PER_SECOND 1000
  52. #define RT_USING_OVERFLOW_CHECK
  53. #define RT_USING_HOOK
  54. #define RT_HOOK_USING_FUNC_PTR
  55. #define RT_USING_IDLE_HOOK
  56. #define RT_IDLE_HOOK_LIST_SIZE 4
  57. #define IDLE_THREAD_STACK_SIZE 512
  58. #define RT_USING_TIMER_SOFT
  59. #define RT_TIMER_THREAD_PRIO 4
  60. #define RT_TIMER_THREAD_STACK_SIZE 512
  61. /* kservice options */
  62. /* end of kservice options */
  63. #define RT_USING_DEBUG
  64. #define RT_DEBUGING_ASSERT
  65. #define RT_DEBUGING_COLOR
  66. #define RT_DEBUGING_CONTEXT
  67. /* Inter-Thread communication */
  68. #define RT_USING_SEMAPHORE
  69. #define RT_USING_MUTEX
  70. #define RT_USING_EVENT
  71. #define RT_USING_MAILBOX
  72. #define RT_USING_MESSAGEQUEUE
  73. /* end of Inter-Thread communication */
  74. /* Memory Management */
  75. #define RT_USING_MEMPOOL
  76. #define RT_USING_SMALL_MEM
  77. #define RT_USING_SMALL_MEM_AS_HEAP
  78. #define RT_USING_HEAP
  79. /* end of Memory Management */
  80. #define RT_USING_DEVICE
  81. #define RT_USING_CONSOLE
  82. #define RT_CONSOLEBUF_SIZE 128
  83. #define RT_CONSOLE_DEVICE_NAME "uart4"
  84. #define RT_VER_NUM 0x50201
  85. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  86. /* end of RT-Thread Kernel */
  87. #define RT_USING_HW_ATOMIC
  88. #define RT_USING_CPU_FFS
  89. #define ARCH_ARM
  90. #define ARCH_ARM_CORTEX_M
  91. #define ARCH_ARM_CORTEX_FPU
  92. #define ARCH_ARM_CORTEX_SECURE
  93. #define ARCH_ARM_CORTEX_M33
  94. /* RT-Thread Components */
  95. #define RT_USING_COMPONENTS_INIT
  96. #define RT_USING_USER_MAIN
  97. #define RT_MAIN_THREAD_STACK_SIZE 2048
  98. #define RT_MAIN_THREAD_PRIORITY 10
  99. #define RT_USING_MSH
  100. #define RT_USING_FINSH
  101. #define FINSH_USING_MSH
  102. #define FINSH_THREAD_NAME "tshell"
  103. #define FINSH_THREAD_PRIORITY 20
  104. #define FINSH_THREAD_STACK_SIZE 4096
  105. #define FINSH_USING_HISTORY
  106. #define FINSH_HISTORY_LINES 5
  107. #define FINSH_USING_SYMTAB
  108. #define FINSH_CMD_SIZE 80
  109. #define MSH_USING_BUILT_IN_COMMANDS
  110. #define FINSH_USING_DESCRIPTION
  111. #define FINSH_ARG_MAX 10
  112. #define FINSH_USING_OPTION_COMPLETION
  113. /* DFS: device virtual file system */
  114. /* end of DFS: device virtual file system */
  115. /* Device Drivers */
  116. #define RT_USING_DEVICE_IPC
  117. #define RT_UNAMED_PIPE_NUMBER 64
  118. #define RT_USING_SERIAL
  119. #define RT_USING_SERIAL_V1
  120. #define RT_SERIAL_USING_DMA
  121. #define RT_SERIAL_RB_BUFSZ 64
  122. #define RT_USING_CAN
  123. #define RT_USING_WDT
  124. #define RT_USING_PIN
  125. #define RT_USING_HWTIMER
  126. /* end of Device Drivers */
  127. /* C/C++ and POSIX layer */
  128. /* ISO-ANSI C layer */
  129. /* Timezone and Daylight Saving Time */
  130. #define RT_LIBC_USING_LIGHT_TZ_DST
  131. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  132. #define RT_LIBC_TZ_DEFAULT_MIN 0
  133. #define RT_LIBC_TZ_DEFAULT_SEC 0
  134. /* end of Timezone and Daylight Saving Time */
  135. /* end of ISO-ANSI C layer */
  136. /* POSIX (Portable Operating System Interface) layer */
  137. /* Interprocess Communication (IPC) */
  138. /* Socket is in the 'Network' category */
  139. /* end of Interprocess Communication (IPC) */
  140. /* end of POSIX (Portable Operating System Interface) layer */
  141. /* end of C/C++ and POSIX layer */
  142. /* Network */
  143. /* end of Network */
  144. /* Memory protection */
  145. /* end of Memory protection */
  146. /* Utilities */
  147. #define RT_USING_ULOG
  148. #define ULOG_OUTPUT_LVL_D
  149. #define ULOG_OUTPUT_LVL 7
  150. #define ULOG_ASSERT_ENABLE
  151. #define ULOG_LINE_BUF_SIZE 128
  152. /* log format */
  153. #define ULOG_OUTPUT_FLOAT
  154. #define ULOG_OUTPUT_LEVEL
  155. #define ULOG_OUTPUT_TAG
  156. /* end of log format */
  157. #define ULOG_BACKEND_USING_CONSOLE
  158. /* end of Utilities */
  159. /* Using USB legacy version */
  160. /* end of Using USB legacy version */
  161. /* end of RT-Thread Components */
  162. /* RT-Thread Utestcases */
  163. /* end of RT-Thread Utestcases */
  164. /* RT-Thread online packages */
  165. /* IoT - internet of things */
  166. /* Wi-Fi */
  167. /* Marvell WiFi */
  168. /* end of Marvell WiFi */
  169. /* Wiced WiFi */
  170. /* end of Wiced WiFi */
  171. /* CYW43012 WiFi */
  172. /* end of CYW43012 WiFi */
  173. /* BL808 WiFi */
  174. /* end of BL808 WiFi */
  175. /* CYW43439 WiFi */
  176. /* end of CYW43439 WiFi */
  177. /* end of Wi-Fi */
  178. /* IoT Cloud */
  179. /* end of IoT Cloud */
  180. /* end of IoT - internet of things */
  181. /* security packages */
  182. /* end of security packages */
  183. /* language packages */
  184. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  185. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  186. /* XML: Extensible Markup Language */
  187. /* end of XML: Extensible Markup Language */
  188. /* end of language packages */
  189. /* multimedia packages */
  190. /* LVGL: powerful and easy-to-use embedded GUI library */
  191. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  192. /* u8g2: a monochrome graphic library */
  193. /* end of u8g2: a monochrome graphic library */
  194. /* end of multimedia packages */
  195. /* tools packages */
  196. /* end of tools packages */
  197. /* system packages */
  198. /* enhanced kernel services */
  199. /* end of enhanced kernel services */
  200. /* acceleration: Assembly language or algorithmic acceleration packages */
  201. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  202. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  203. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  204. /* Micrium: Micrium software products porting for RT-Thread */
  205. /* end of Micrium: Micrium software products porting for RT-Thread */
  206. /* end of system packages */
  207. /* peripheral libraries and drivers */
  208. /* HAL & SDK Drivers */
  209. /* STM32 HAL & SDK Drivers */
  210. /* end of STM32 HAL & SDK Drivers */
  211. /* Infineon HAL Packages */
  212. /* end of Infineon HAL Packages */
  213. /* Kendryte SDK */
  214. /* end of Kendryte SDK */
  215. /* WCH HAL & SDK Drivers */
  216. /* end of WCH HAL & SDK Drivers */
  217. /* AT32 HAL & SDK Drivers */
  218. /* end of AT32 HAL & SDK Drivers */
  219. /* HC32 DDL Drivers */
  220. /* end of HC32 DDL Drivers */
  221. /* NXP HAL & SDK Drivers */
  222. #define PKG_USING_NXP_MCX_CMSIS_DRIVER
  223. #define PKG_USING_NXP_MCX_CMSIS_DRIVER_LATEST_VERSION
  224. #define PKG_USING_NXP_MCX_SERIES_DRIVER
  225. #define PKG_USING_NXP_MCX_SERIES_DRIVER_LATEST_VERSION
  226. /* end of NXP HAL & SDK Drivers */
  227. /* end of HAL & SDK Drivers */
  228. /* sensors drivers */
  229. /* end of sensors drivers */
  230. /* touch drivers */
  231. /* end of touch drivers */
  232. /* end of peripheral libraries and drivers */
  233. /* AI packages */
  234. /* end of AI packages */
  235. /* Signal Processing and Control Algorithm Packages */
  236. /* end of Signal Processing and Control Algorithm Packages */
  237. /* miscellaneous packages */
  238. /* project laboratory */
  239. /* end of project laboratory */
  240. /* samples: kernel and components samples */
  241. /* end of samples: kernel and components samples */
  242. /* entertainment: terminal games and other interesting software packages */
  243. /* end of entertainment: terminal games and other interesting software packages */
  244. /* end of miscellaneous packages */
  245. /* Arduino libraries */
  246. /* Projects and Demos */
  247. /* end of Projects and Demos */
  248. /* Sensors */
  249. /* end of Sensors */
  250. /* Display */
  251. /* end of Display */
  252. /* Timing */
  253. /* end of Timing */
  254. /* Data Processing */
  255. /* end of Data Processing */
  256. /* Data Storage */
  257. /* Communication */
  258. /* end of Communication */
  259. /* Device Control */
  260. /* end of Device Control */
  261. /* Other */
  262. /* end of Other */
  263. /* Signal IO */
  264. /* end of Signal IO */
  265. /* Uncategorized */
  266. /* end of Arduino libraries */
  267. /* end of RT-Thread online packages */
  268. /* Hardware Drivers Config */
  269. #define SOC_MCXN236
  270. /* On-chip Peripheral Drivers */
  271. #define BSP_USING_PIN
  272. #define BSP_USING_CAN
  273. #define BSP_USING_CAN1
  274. #define BSP_USING_UART
  275. #define BSP_USING_UART4
  276. #define BSP_USING_UART5
  277. #define BSP_USING_UART2
  278. #define BSP_USING_WDT
  279. /* end of On-chip Peripheral Drivers */
  280. /* Board extended module Drivers */
  281. /* end of Board extended module Drivers */
  282. /* end of Hardware Drivers Config */
  283. #endif