rtconfig.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  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 16
  35. #define RT_CPUS_NR 1
  36. #define RT_ALIGN_SIZE 8
  37. #define RT_THREAD_PRIORITY_256
  38. #define RT_THREAD_PRIORITY_MAX 256
  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 4096
  46. #define RT_USING_TIMER_SOFT
  47. #define RT_TIMER_THREAD_PRIO 4
  48. #define RT_TIMER_THREAD_STACK_SIZE 4096
  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. #define RT_USING_MESSAGEQUEUE_PRIORITY
  62. /* end of Inter-Thread communication */
  63. /* Memory Management */
  64. #define RT_USING_MEMPOOL
  65. #define RT_USING_SMALL_MEM
  66. #define RT_USING_MEMHEAP
  67. #define RT_MEMHEAP_FAST_MODE
  68. #define RT_USING_SMALL_MEM_AS_HEAP
  69. #define RT_USING_MEMTRACE
  70. #define RT_USING_HEAP
  71. /* end of Memory Management */
  72. #define RT_USING_DEVICE
  73. #define RT_USING_DEVICE_OPS
  74. #define RT_USING_INTERRUPT_INFO
  75. #define RT_USING_CONSOLE
  76. #define RT_CONSOLEBUF_SIZE 256
  77. #define RT_CONSOLE_DEVICE_NAME "uart0"
  78. #define RT_VER_NUM 0x50201
  79. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  80. /* end of RT-Thread Kernel */
  81. #define RT_USING_CACHE
  82. #define RT_USING_HW_ATOMIC
  83. #define RT_USING_CPU_FFS
  84. #define ARCH_MM_MMU
  85. #define ARCH_ARM
  86. #define ARCH_ARM_MMU
  87. #define ARCH_ARM_CORTEX_A
  88. #define RT_USING_GIC_V2
  89. #define ARCH_ARM_CORTEX_A9
  90. /* RT-Thread Components */
  91. #define RT_USING_COMPONENTS_INIT
  92. #define RT_USING_USER_MAIN
  93. #define RT_MAIN_THREAD_STACK_SIZE 8196
  94. #define RT_MAIN_THREAD_PRIORITY 10
  95. #define RT_USING_LEGACY
  96. #define RT_USING_MSH
  97. #define RT_USING_FINSH
  98. #define FINSH_USING_MSH
  99. #define FINSH_THREAD_NAME "tshell"
  100. #define FINSH_THREAD_PRIORITY 20
  101. #define FINSH_THREAD_STACK_SIZE 4096
  102. #define FINSH_USING_HISTORY
  103. #define FINSH_HISTORY_LINES 10
  104. #define FINSH_USING_SYMTAB
  105. #define FINSH_CMD_SIZE 256
  106. #define MSH_USING_BUILT_IN_COMMANDS
  107. #define FINSH_USING_DESCRIPTION
  108. #define FINSH_ARG_MAX 10
  109. #define FINSH_USING_OPTION_COMPLETION
  110. /* DFS: device virtual file system */
  111. #define RT_USING_DFS
  112. #define DFS_USING_POSIX
  113. #define DFS_USING_WORKDIR
  114. #define DFS_FD_MAX 32
  115. #define RT_USING_DFS_V2
  116. #define RT_USING_DFS_ELMFAT
  117. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  118. #define RT_DFS_ELM_CODE_PAGE 437
  119. #define RT_DFS_ELM_WORD_ACCESS
  120. #define RT_DFS_ELM_USE_LFN_3
  121. #define RT_DFS_ELM_USE_LFN 3
  122. #define RT_DFS_ELM_LFN_UNICODE_0
  123. #define RT_DFS_ELM_LFN_UNICODE 0
  124. #define RT_DFS_ELM_MAX_LFN 255
  125. #define RT_DFS_ELM_DRIVES 2
  126. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  127. #define RT_DFS_ELM_REENTRANT
  128. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  129. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  130. #define RT_USING_DFS_DEVFS
  131. #define RT_USING_DFS_ROMFS
  132. #define RT_USING_DFS_TMPFS
  133. #define RT_USING_DFS_MQUEUE
  134. /* end of DFS: device virtual file system */
  135. /* Device Drivers */
  136. #define RT_USING_DEV_BUS
  137. #define RT_USING_DEVICE_IPC
  138. #define RT_UNAMED_PIPE_NUMBER 64
  139. #define RT_USING_SYSTEM_WORKQUEUE
  140. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 8196
  141. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  142. #define RT_USING_SERIAL
  143. #define RT_USING_SERIAL_V1
  144. #define RT_SERIAL_USING_DMA
  145. #define RT_SERIAL_RB_BUFSZ 256
  146. #define RT_USING_I2C
  147. #define RT_USING_I2C_BITOPS
  148. #define RT_USING_NULL
  149. #define RT_USING_ZERO
  150. #define RT_USING_RANDOM
  151. #define RT_USING_MTD_NOR
  152. #define RT_USING_MTD_NAND
  153. #define RT_MTD_NAND_DEBUG
  154. #define RT_USING_RTC
  155. #define RT_USING_SOFT_RTC
  156. #define RT_USING_SDIO
  157. #define RT_SDIO_STACK_SIZE 4096
  158. #define RT_SDIO_THREAD_PRIORITY 15
  159. #define RT_MMCSD_STACK_SIZE 16384
  160. #define RT_MMCSD_THREAD_PRIORITY 22
  161. #define RT_MMCSD_MAX_PARTITION 16
  162. #define RT_USING_SPI
  163. #define RT_USING_SPI_MSD
  164. #define RT_USING_SFUD
  165. #define RT_SFUD_USING_SFDP
  166. #define RT_SFUD_USING_FLASH_INFO_TABLE
  167. #define RT_SFUD_SPI_MAX_HZ 50000000
  168. #define RT_USING_WDT
  169. #define RT_USING_BLK
  170. /* Partition Types */
  171. #define RT_BLK_PARTITION_DFS
  172. #define RT_BLK_PARTITION_EFI
  173. /* end of Partition Types */
  174. #define RT_USING_PIN
  175. #define RT_USING_KTIME
  176. /* end of Device Drivers */
  177. /* C/C++ and POSIX layer */
  178. /* ISO-ANSI C layer */
  179. /* Timezone and Daylight Saving Time */
  180. #define RT_LIBC_USING_LIGHT_TZ_DST
  181. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  182. #define RT_LIBC_TZ_DEFAULT_MIN 0
  183. #define RT_LIBC_TZ_DEFAULT_SEC 0
  184. /* end of Timezone and Daylight Saving Time */
  185. /* end of ISO-ANSI C layer */
  186. /* POSIX (Portable Operating System Interface) layer */
  187. #define RT_USING_POSIX_FS
  188. #define RT_USING_POSIX_DEVIO
  189. #define RT_USING_POSIX_STDIO
  190. #define RT_USING_POSIX_POLL
  191. #define RT_USING_POSIX_SELECT
  192. #define RT_USING_POSIX_TERMIOS
  193. #define RT_USING_POSIX_AIO
  194. #define RT_USING_POSIX_DELAY
  195. #define RT_USING_POSIX_CLOCK
  196. #define RT_USING_POSIX_TIMER
  197. /* Interprocess Communication (IPC) */
  198. #define RT_USING_POSIX_PIPE
  199. #define RT_USING_POSIX_PIPE_SIZE 512
  200. #define RT_USING_POSIX_MESSAGE_QUEUE
  201. #define RT_USING_POSIX_MESSAGE_SEMAPHORE
  202. /* Socket is in the 'Network' category */
  203. /* end of Interprocess Communication (IPC) */
  204. /* end of POSIX (Portable Operating System Interface) layer */
  205. /* end of C/C++ and POSIX layer */
  206. /* Network */
  207. /* end of Network */
  208. /* Memory protection */
  209. /* end of Memory protection */
  210. /* Utilities */
  211. #define RT_USING_RESOURCE_ID
  212. #define RT_USING_ADT
  213. #define RT_USING_ADT_AVL
  214. #define RT_USING_ADT_BITMAP
  215. #define RT_USING_ADT_HASHMAP
  216. #define RT_USING_ADT_REF
  217. /* end of Utilities */
  218. /* Memory management */
  219. #define RT_PAGE_AFFINITY_BLOCK_SIZE 0x1000
  220. #define RT_PAGE_MAX_ORDER 11
  221. /* Debugging */
  222. /* end of Debugging */
  223. /* end of Memory management */
  224. /* Using USB legacy version */
  225. /* end of Using USB legacy version */
  226. /* end of RT-Thread Components */
  227. /* RT-Thread Utestcases */
  228. /* end of RT-Thread Utestcases */
  229. /* RT-Thread online packages */
  230. /* IoT - internet of things */
  231. /* Wi-Fi */
  232. /* Marvell WiFi */
  233. /* end of Marvell WiFi */
  234. /* Wiced WiFi */
  235. /* end of Wiced WiFi */
  236. /* CYW43012 WiFi */
  237. /* end of CYW43012 WiFi */
  238. /* BL808 WiFi */
  239. /* end of BL808 WiFi */
  240. /* CYW43439 WiFi */
  241. /* end of CYW43439 WiFi */
  242. /* end of Wi-Fi */
  243. /* IoT Cloud */
  244. /* end of IoT Cloud */
  245. /* end of IoT - internet of things */
  246. /* security packages */
  247. /* end of security packages */
  248. /* language packages */
  249. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  250. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  251. /* XML: Extensible Markup Language */
  252. /* end of XML: Extensible Markup Language */
  253. /* end of language packages */
  254. /* multimedia packages */
  255. /* LVGL: powerful and easy-to-use embedded GUI library */
  256. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  257. /* u8g2: a monochrome graphic library */
  258. /* end of u8g2: a monochrome graphic library */
  259. /* end of multimedia packages */
  260. /* tools packages */
  261. /* end of tools packages */
  262. /* system packages */
  263. /* enhanced kernel services */
  264. /* end of enhanced kernel services */
  265. /* acceleration: Assembly language or algorithmic acceleration packages */
  266. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  267. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  268. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  269. /* Micrium: Micrium software products porting for RT-Thread */
  270. /* end of Micrium: Micrium software products porting for RT-Thread */
  271. /* end of system packages */
  272. /* peripheral libraries and drivers */
  273. /* HAL & SDK Drivers */
  274. /* STM32 HAL & SDK Drivers */
  275. /* end of STM32 HAL & SDK Drivers */
  276. /* Infineon HAL Packages */
  277. /* end of Infineon HAL Packages */
  278. /* Kendryte SDK */
  279. /* end of Kendryte SDK */
  280. /* WCH HAL & SDK Drivers */
  281. /* end of WCH HAL & SDK Drivers */
  282. /* AT32 HAL & SDK Drivers */
  283. /* end of AT32 HAL & SDK Drivers */
  284. /* HC32 DDL Drivers */
  285. /* end of HC32 DDL Drivers */
  286. /* NXP HAL & SDK Drivers */
  287. /* end of NXP HAL & SDK Drivers */
  288. /* NUVOTON Drivers */
  289. /* end of NUVOTON Drivers */
  290. /* GD32 Drivers */
  291. /* end of GD32 Drivers */
  292. /* end of HAL & SDK Drivers */
  293. /* sensors drivers */
  294. /* end of sensors drivers */
  295. /* touch drivers */
  296. /* end of touch drivers */
  297. /* end of peripheral libraries and drivers */
  298. /* AI packages */
  299. /* end of AI packages */
  300. /* Signal Processing and Control Algorithm Packages */
  301. /* end of Signal Processing and Control Algorithm Packages */
  302. /* miscellaneous packages */
  303. /* project laboratory */
  304. /* end of project laboratory */
  305. /* samples: kernel and components samples */
  306. /* end of samples: kernel and components samples */
  307. /* entertainment: terminal games and other interesting software packages */
  308. /* end of entertainment: terminal games and other interesting software packages */
  309. /* end of miscellaneous packages */
  310. /* Arduino libraries */
  311. /* Projects and Demos */
  312. /* end of Projects and Demos */
  313. /* Sensors */
  314. /* end of Sensors */
  315. /* Display */
  316. /* end of Display */
  317. /* Timing */
  318. /* end of Timing */
  319. /* Data Processing */
  320. /* end of Data Processing */
  321. /* Data Storage */
  322. /* Communication */
  323. /* end of Communication */
  324. /* Device Control */
  325. /* end of Device Control */
  326. /* Other */
  327. /* end of Other */
  328. /* Signal IO */
  329. /* end of Signal IO */
  330. /* Uncategorized */
  331. /* end of Arduino libraries */
  332. /* end of RT-Thread online packages */
  333. /* Hardware Drivers Config */
  334. #define SOC_VEXPRESS_A9
  335. /* Onboard Peripheral Drivers */
  336. #define BSP_USING_UART
  337. #define BSP_USING_UART0
  338. /* end of Onboard Peripheral Drivers */
  339. /* end of Hardware Drivers Config */
  340. #endif