rtconfig.h 9.0 KB

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