rtconfig.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. /* end of rt_vsnprintf options */
  7. /* rt_vsscanf options */
  8. /* end of rt_vsscanf options */
  9. /* rt_memset options */
  10. /* end of rt_memset options */
  11. /* rt_memcpy options */
  12. /* end of rt_memcpy options */
  13. /* rt_memmove options */
  14. /* end of rt_memmove options */
  15. /* rt_memcmp options */
  16. /* end of rt_memcmp options */
  17. /* rt_strstr options */
  18. /* end of rt_strstr options */
  19. /* rt_strcasecmp options */
  20. /* end of rt_strcasecmp options */
  21. /* rt_strncpy options */
  22. /* end of rt_strncpy options */
  23. /* rt_strcpy options */
  24. /* end of rt_strcpy options */
  25. /* rt_strncmp options */
  26. /* end of rt_strncmp options */
  27. /* rt_strcmp options */
  28. /* end of rt_strcmp options */
  29. /* rt_strlen options */
  30. /* end of rt_strlen options */
  31. /* rt_strnlen options */
  32. /* end of rt_strnlen options */
  33. /* end of klibc options */
  34. #define RT_NAME_MAX 8
  35. #define RT_CPUS_NR 1
  36. #define RT_ALIGN_SIZE 8
  37. #define RT_THREAD_PRIORITY_32
  38. #define RT_THREAD_PRIORITY_MAX 32
  39. #define RT_TICK_PER_SECOND 100
  40. #define RT_USING_OVERFLOW_CHECK
  41. #define RT_USING_HOOK
  42. #define RT_HOOK_USING_FUNC_PTR
  43. #define RT_USING_IDLE_HOOK
  44. #define RT_IDLE_HOOK_LIST_SIZE 4
  45. #define IDLE_THREAD_STACK_SIZE 256
  46. #define RT_USING_TIMER_SOFT
  47. #define RT_TIMER_THREAD_PRIO 4
  48. #define RT_TIMER_THREAD_STACK_SIZE 512
  49. /* kservice options */
  50. /* end of kservice options */
  51. #define RT_USING_DEBUG
  52. #define RT_DEBUGING_ASSERT
  53. #define RT_DEBUGING_COLOR
  54. #define RT_DEBUGING_CONTEXT
  55. /* Inter-Thread communication */
  56. #define RT_USING_SEMAPHORE
  57. #define RT_USING_MUTEX
  58. #define RT_USING_EVENT
  59. #define RT_USING_MAILBOX
  60. #define RT_USING_MESSAGEQUEUE
  61. /* end of Inter-Thread communication */
  62. /* Memory Management */
  63. #define RT_USING_MEMPOOL
  64. #define RT_USING_SMALL_MEM
  65. #define RT_USING_SMALL_MEM_AS_HEAP
  66. #define RT_USING_HEAP
  67. /* end of Memory Management */
  68. #define RT_USING_DEVICE
  69. #define RT_USING_CONSOLE
  70. #define RT_CONSOLEBUF_SIZE 128
  71. #define RT_CONSOLE_DEVICE_NAME "uart1"
  72. #define RT_VER_NUM 0x50201
  73. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  74. /* end of RT-Thread Kernel */
  75. #define RT_USING_CACHE
  76. #define RT_USING_HW_ATOMIC
  77. #define RT_USING_CPU_FFS
  78. #define ARCH_ARM
  79. #define ARCH_ARM_CORTEX_M
  80. #define ARCH_ARM_CORTEX_FPU
  81. #define ARCH_ARM_CORTEX_M7
  82. /* RT-Thread Components */
  83. #define RT_USING_COMPONENTS_INIT
  84. #define RT_USING_USER_MAIN
  85. #define RT_MAIN_THREAD_STACK_SIZE 8192
  86. #define RT_MAIN_THREAD_PRIORITY 10
  87. #define RT_USING_MSH
  88. #define RT_USING_FINSH
  89. #define FINSH_USING_MSH
  90. #define FINSH_THREAD_NAME "tshell"
  91. #define FINSH_THREAD_PRIORITY 20
  92. #define FINSH_THREAD_STACK_SIZE 8192
  93. #define FINSH_USING_HISTORY
  94. #define FINSH_HISTORY_LINES 5
  95. #define FINSH_USING_SYMTAB
  96. #define FINSH_CMD_SIZE 80
  97. #define MSH_USING_BUILT_IN_COMMANDS
  98. #define FINSH_USING_DESCRIPTION
  99. #define FINSH_ARG_MAX 10
  100. #define FINSH_USING_OPTION_COMPLETION
  101. /* DFS: device virtual file system */
  102. #define RT_USING_DFS
  103. #define DFS_USING_POSIX
  104. #define DFS_USING_WORKDIR
  105. #define DFS_FD_MAX 16
  106. #define RT_USING_DFS_V1
  107. #define DFS_FILESYSTEMS_MAX 2
  108. #define DFS_FILESYSTEM_TYPES_MAX 2
  109. #define RT_USING_DFS_ELMFAT
  110. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  111. #define RT_DFS_ELM_CODE_PAGE 437
  112. #define RT_DFS_ELM_WORD_ACCESS
  113. #define RT_DFS_ELM_USE_LFN_3
  114. #define RT_DFS_ELM_USE_LFN 3
  115. #define RT_DFS_ELM_LFN_UNICODE_0
  116. #define RT_DFS_ELM_LFN_UNICODE 0
  117. #define RT_DFS_ELM_MAX_LFN 255
  118. #define RT_DFS_ELM_DRIVES 2
  119. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  120. #define RT_DFS_ELM_REENTRANT
  121. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  122. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  123. #define RT_USING_DFS_DEVFS
  124. /* end of DFS: device virtual file system */
  125. /* Device Drivers */
  126. #define RT_USING_DEVICE_IPC
  127. #define RT_UNAMED_PIPE_NUMBER 64
  128. #define RT_USING_SERIAL
  129. #define RT_USING_SERIAL_V1
  130. #define RT_SERIAL_RB_BUFSZ 64
  131. #define RT_USING_I2C
  132. #define RT_USING_I2C_BITOPS
  133. #define RT_USING_ADC
  134. #define RT_USING_PWM
  135. #define RT_USING_RTC
  136. #define RT_USING_SDIO
  137. #define RT_SDIO_STACK_SIZE 512
  138. #define RT_SDIO_THREAD_PRIORITY 15
  139. #define RT_MMCSD_STACK_SIZE 1024
  140. #define RT_MMCSD_THREAD_PRIORITY 22
  141. #define RT_MMCSD_MAX_PARTITION 16
  142. #define RT_USING_SPI
  143. #define RT_USING_QSPI
  144. #define RT_USING_BLK
  145. /* Partition Types */
  146. #define RT_BLK_PARTITION_DFS
  147. #define RT_BLK_PARTITION_EFI
  148. /* end of Partition Types */
  149. #define RT_USING_PIN
  150. /* end of Device Drivers */
  151. /* C/C++ and POSIX layer */
  152. /* ISO-ANSI C layer */
  153. /* Timezone and Daylight Saving Time */
  154. #define RT_LIBC_USING_LIGHT_TZ_DST
  155. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  156. #define RT_LIBC_TZ_DEFAULT_MIN 0
  157. #define RT_LIBC_TZ_DEFAULT_SEC 0
  158. /* end of Timezone and Daylight Saving Time */
  159. /* end of ISO-ANSI C layer */
  160. /* POSIX (Portable Operating System Interface) layer */
  161. /* Interprocess Communication (IPC) */
  162. /* Socket is in the 'Network' category */
  163. /* end of Interprocess Communication (IPC) */
  164. /* end of POSIX (Portable Operating System Interface) layer */
  165. /* end of C/C++ and POSIX layer */
  166. /* Network */
  167. /* end of Network */
  168. /* Memory protection */
  169. /* end of Memory protection */
  170. /* Utilities */
  171. /* end of Utilities */
  172. /* Using USB legacy version */
  173. #define RT_USING_USB
  174. #define RT_USING_USB_DEVICE
  175. #define RT_USBD_THREAD_STACK_SZ 4096
  176. #define USB_VENDOR_ID 0x0FFE
  177. #define USB_PRODUCT_ID 0x0001
  178. #define RT_USB_DEVICE_COMPOSITE
  179. #define RT_USB_DEVICE_CDC
  180. #define RT_USB_DEVICE_NONE
  181. #define RT_USB_DEVICE_MSTORAGE
  182. #define RT_VCOM_TASK_STK_SIZE 512
  183. #define RT_CDC_RX_BUFSIZE 128
  184. #define RT_VCOM_SERNO "32021919830108"
  185. #define RT_VCOM_SER_LEN 14
  186. #define RT_VCOM_TX_TIMEOUT 1000
  187. #define RT_USB_MSTORAGE_DISK_NAME "sd0"
  188. /* end of Using USB legacy version */
  189. /* end of RT-Thread Components */
  190. /* RT-Thread Utestcases */
  191. /* end of RT-Thread Utestcases */
  192. /* RT-Thread online packages */
  193. /* IoT - internet of things */
  194. /* Wi-Fi */
  195. /* Marvell WiFi */
  196. /* end of Marvell WiFi */
  197. /* Wiced WiFi */
  198. /* end of Wiced WiFi */
  199. /* CYW43012 WiFi */
  200. /* end of CYW43012 WiFi */
  201. /* BL808 WiFi */
  202. /* end of BL808 WiFi */
  203. /* CYW43439 WiFi */
  204. /* end of CYW43439 WiFi */
  205. /* end of Wi-Fi */
  206. /* IoT Cloud */
  207. /* end of IoT Cloud */
  208. /* end of IoT - internet of things */
  209. /* security packages */
  210. /* end of security packages */
  211. /* language packages */
  212. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  213. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  214. /* XML: Extensible Markup Language */
  215. /* end of XML: Extensible Markup Language */
  216. /* end of language packages */
  217. /* multimedia packages */
  218. /* LVGL: powerful and easy-to-use embedded GUI library */
  219. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  220. /* u8g2: a monochrome graphic library */
  221. /* end of u8g2: a monochrome graphic library */
  222. /* end of multimedia packages */
  223. /* tools packages */
  224. /* end of tools packages */
  225. /* system packages */
  226. /* enhanced kernel services */
  227. /* end of enhanced kernel services */
  228. /* acceleration: Assembly language or algorithmic acceleration packages */
  229. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  230. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  231. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  232. /* Micrium: Micrium software products porting for RT-Thread */
  233. /* end of Micrium: Micrium software products porting for RT-Thread */
  234. /* end of system packages */
  235. /* peripheral libraries and drivers */
  236. /* HAL & SDK Drivers */
  237. /* STM32 HAL & SDK Drivers */
  238. /* end of STM32 HAL & SDK Drivers */
  239. /* Infineon HAL Packages */
  240. /* end of Infineon HAL Packages */
  241. /* Kendryte SDK */
  242. /* end of Kendryte SDK */
  243. /* WCH HAL & SDK Drivers */
  244. /* end of WCH HAL & SDK Drivers */
  245. /* AT32 HAL & SDK Drivers */
  246. /* end of AT32 HAL & SDK Drivers */
  247. /* HC32 DDL Drivers */
  248. /* end of HC32 DDL Drivers */
  249. /* NXP HAL & SDK Drivers */
  250. #define PKG_USING_NXP_IMXRT_DRIVER
  251. #define PKG_USING_NXP_IMXRT_DRIVER_LATEST_VERSION
  252. /* end of NXP HAL & SDK Drivers */
  253. /* end of HAL & SDK Drivers */
  254. /* sensors drivers */
  255. /* end of sensors drivers */
  256. /* touch drivers */
  257. /* end of touch drivers */
  258. /* end of peripheral libraries and drivers */
  259. /* AI packages */
  260. /* end of AI packages */
  261. /* Signal Processing and Control Algorithm Packages */
  262. /* end of Signal Processing and Control Algorithm Packages */
  263. /* miscellaneous packages */
  264. /* project laboratory */
  265. /* end of project laboratory */
  266. /* samples: kernel and components samples */
  267. /* end of samples: kernel and components samples */
  268. /* entertainment: terminal games and other interesting software packages */
  269. /* end of entertainment: terminal games and other interesting software packages */
  270. /* end of miscellaneous packages */
  271. /* Arduino libraries */
  272. /* Projects and Demos */
  273. /* end of Projects and Demos */
  274. /* Sensors */
  275. /* end of Sensors */
  276. /* Display */
  277. /* end of Display */
  278. /* Timing */
  279. /* end of Timing */
  280. /* Data Processing */
  281. /* end of Data Processing */
  282. /* Data Storage */
  283. /* Communication */
  284. /* end of Communication */
  285. /* Device Control */
  286. /* end of Device Control */
  287. /* Other */
  288. /* end of Other */
  289. /* Signal IO */
  290. /* end of Signal IO */
  291. /* Uncategorized */
  292. /* end of Arduino libraries */
  293. /* end of RT-Thread online packages */
  294. #define SOC_IMXRT1020_SERIES
  295. /* Hardware Drivers */
  296. #define BSP_USING_QSPIFLASH
  297. #define SOC_IMXRT1021DAG5A
  298. /* On-chip Peripheral Drivers */
  299. #define BSP_USING_GPIO
  300. #define BSP_USING_LPUART
  301. #define BSP_USING_LPUART1
  302. /* end of On-chip Peripheral Drivers */
  303. /* Onboard Peripheral Drivers */
  304. /* end of Onboard Peripheral Drivers */
  305. /* Board extended module Drivers */
  306. /* end of Hardware Drivers */
  307. #endif