rtconfig.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. #define RT_KLIBC_USING_VSNPRINTF_LONGLONG
  7. #define RT_KLIBC_USING_VSNPRINTF_STANDARD
  8. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS
  9. #define RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS
  10. #define RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER
  11. #define RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER
  12. #define RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE 32
  13. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
  14. #define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
  15. #define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
  16. #define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
  17. /* end of rt_vsnprintf options */
  18. /* rt_vsscanf options */
  19. /* end of rt_vsscanf options */
  20. /* rt_memset options */
  21. /* end of rt_memset options */
  22. /* rt_memcpy options */
  23. /* end of rt_memcpy options */
  24. /* rt_memmove options */
  25. /* end of rt_memmove options */
  26. /* rt_memcmp options */
  27. /* end of rt_memcmp options */
  28. /* rt_strstr options */
  29. /* end of rt_strstr options */
  30. /* rt_strcasecmp options */
  31. /* end of rt_strcasecmp options */
  32. /* rt_strncpy options */
  33. /* end of rt_strncpy options */
  34. /* rt_strcpy options */
  35. /* end of rt_strcpy options */
  36. /* rt_strncmp options */
  37. /* end of rt_strncmp options */
  38. /* rt_strcmp options */
  39. /* end of rt_strcmp options */
  40. /* rt_strlen options */
  41. /* end of rt_strlen options */
  42. /* rt_strnlen options */
  43. /* end of rt_strnlen options */
  44. /* end of klibc options */
  45. #define RT_NAME_MAX 16
  46. #define RT_USING_SMP
  47. #define RT_CPUS_NR 4
  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 100
  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 8192
  58. #define SYSTEM_THREAD_STACK_SIZE 8192
  59. #define RT_USING_TIMER_SOFT
  60. #define RT_TIMER_THREAD_PRIO 4
  61. #define RT_TIMER_THREAD_STACK_SIZE 8192
  62. /* kservice options */
  63. /* end of kservice options */
  64. #define RT_USING_DEBUG
  65. #define RT_DEBUGING_ASSERT
  66. #define RT_DEBUGING_COLOR
  67. #define RT_DEBUGING_CONTEXT
  68. /* Inter-Thread communication */
  69. #define RT_USING_SEMAPHORE
  70. #define RT_USING_MUTEX
  71. #define RT_USING_EVENT
  72. #define RT_USING_MAILBOX
  73. #define RT_USING_MESSAGEQUEUE
  74. /* end of Inter-Thread communication */
  75. /* Memory Management */
  76. #define RT_USING_MEMPOOL
  77. #define RT_USING_SMALL_MEM
  78. #define RT_USING_MEMHEAP
  79. #define RT_MEMHEAP_FAST_MODE
  80. #define RT_USING_MEMHEAP_AS_HEAP
  81. #define RT_USING_MEMHEAP_AUTO_BINDING
  82. #define RT_USING_MEMTRACE
  83. #define RT_USING_HEAP
  84. /* end of Memory Management */
  85. #define RT_USING_DEVICE
  86. #define RT_USING_DEVICE_OPS
  87. #define RT_USING_INTERRUPT_INFO
  88. #define RT_USING_CONSOLE
  89. #define RT_CONSOLEBUF_SIZE 256
  90. #define RT_CONSOLE_DEVICE_NAME "uart0"
  91. #define RT_VER_NUM 0x50201
  92. #define RT_USING_STDC_ATOMIC
  93. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  94. /* end of RT-Thread Kernel */
  95. /* AArch64 Architecture Configuration */
  96. #define ARCH_TEXT_OFFSET 0x80000
  97. #define ARCH_RAM_OFFSET 0x40000000
  98. #define ARCH_SECONDARY_CPU_STACK_SIZE 4096
  99. #define ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
  100. #define ARCH_USING_GENERIC_CPUID
  101. #define ARCH_HEAP_SIZE 0x4000000
  102. #define ARCH_INIT_PAGE_SIZE 0x200000
  103. /* end of AArch64 Architecture Configuration */
  104. #define ARCH_CPU_64BIT
  105. #define RT_USING_CACHE
  106. #define RT_USING_CPU_FFS
  107. #define ARCH_MM_MMU
  108. #define ARCH_ARM
  109. #define ARCH_ARM_MMU
  110. #define ARCH_ARMV8
  111. #define ARCH_USING_ASID
  112. #define ARCH_USING_HW_THREAD_SELF
  113. #define ARCH_USING_IRQ_CTX_LIST
  114. /* RT-Thread Components */
  115. #define RT_USING_COMPONENTS_INIT
  116. #define RT_USING_USER_MAIN
  117. #define RT_MAIN_THREAD_STACK_SIZE 8192
  118. #define RT_MAIN_THREAD_PRIORITY 10
  119. #define RT_USING_MSH
  120. #define RT_USING_FINSH
  121. #define FINSH_USING_MSH
  122. #define FINSH_THREAD_NAME "tshell"
  123. #define FINSH_THREAD_PRIORITY 20
  124. #define FINSH_THREAD_STACK_SIZE 4096
  125. #define FINSH_USING_HISTORY
  126. #define FINSH_HISTORY_LINES 10
  127. #define FINSH_USING_SYMTAB
  128. #define FINSH_CMD_SIZE 256
  129. #define MSH_USING_BUILT_IN_COMMANDS
  130. #define FINSH_USING_DESCRIPTION
  131. #define FINSH_ARG_MAX 10
  132. #define FINSH_USING_OPTION_COMPLETION
  133. /* DFS: device virtual file system */
  134. #define RT_USING_DFS
  135. #define DFS_USING_POSIX
  136. #define DFS_USING_WORKDIR
  137. #define DFS_FD_MAX 32
  138. #define RT_USING_DFS_V1
  139. #define DFS_FILESYSTEMS_MAX 4
  140. #define DFS_FILESYSTEM_TYPES_MAX 8
  141. #define RT_USING_DFS_ELMFAT
  142. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  143. #define RT_DFS_ELM_CODE_PAGE 437
  144. #define RT_DFS_ELM_WORD_ACCESS
  145. #define RT_DFS_ELM_USE_LFN_3
  146. #define RT_DFS_ELM_USE_LFN 3
  147. #define RT_DFS_ELM_LFN_UNICODE_0
  148. #define RT_DFS_ELM_LFN_UNICODE 0
  149. #define RT_DFS_ELM_MAX_LFN 255
  150. #define RT_DFS_ELM_DRIVES 2
  151. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  152. #define RT_DFS_ELM_REENTRANT
  153. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  154. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  155. #define RT_USING_DFS_DEVFS
  156. #define RT_USING_DFS_ROMFS
  157. /* end of DFS: device virtual file system */
  158. /* Device Drivers */
  159. #define RT_USING_DM
  160. #define RT_USING_DEV_BUS
  161. #define RT_USING_DEVICE_IPC
  162. #define RT_UNAMED_PIPE_NUMBER 64
  163. #define RT_USING_SYSTEM_WORKQUEUE
  164. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 8192
  165. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  166. #define RT_USING_SERIAL
  167. #define RT_USING_SERIAL_V1
  168. #define RT_SERIAL_USING_DMA
  169. #define RT_SERIAL_RB_BUFSZ 256
  170. #define RT_USING_NULL
  171. #define RT_USING_ZERO
  172. #define RT_USING_RANDOM
  173. #define RT_USING_PM
  174. #define PM_TICKLESS_THRESHOLD_TIME 2
  175. #define RT_USING_RTC
  176. #define RT_USING_SOFT_RTC
  177. #define RT_USING_VIRTIO
  178. #define RT_USING_VIRTIO10
  179. #define RT_USING_VIRTIO_MMIO_ALIGN
  180. #define RT_USING_VIRTIO_BLK
  181. #define RT_USING_VIRTIO_CONSOLE
  182. #define RT_USING_VIRTIO_CONSOLE_PORT_MAX_NR 4
  183. #define RT_USING_VIRTIO_GPU
  184. #define RT_USING_VIRTIO_INPUT
  185. #define RT_USING_OFW
  186. #define RT_FDT_EARLYCON_MSG_SIZE 128
  187. #define RT_USING_OFW_BUS_RANGES_NUMBER 8
  188. #define RT_USING_PIN
  189. #define RT_USING_KTIME
  190. #define RT_USING_CLK
  191. /* end of Device Drivers */
  192. /* C/C++ and POSIX layer */
  193. /* ISO-ANSI C layer */
  194. /* Timezone and Daylight Saving Time */
  195. #define RT_LIBC_USING_LIGHT_TZ_DST
  196. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  197. #define RT_LIBC_TZ_DEFAULT_MIN 0
  198. #define RT_LIBC_TZ_DEFAULT_SEC 0
  199. /* end of Timezone and Daylight Saving Time */
  200. /* end of ISO-ANSI C layer */
  201. /* POSIX (Portable Operating System Interface) layer */
  202. #define RT_USING_POSIX_FS
  203. #define RT_USING_POSIX_DEVIO
  204. #define RT_USING_POSIX_STDIO
  205. #define RT_USING_POSIX_POLL
  206. #define RT_USING_POSIX_SELECT
  207. #define RT_USING_POSIX_TERMIOS
  208. #define RT_USING_POSIX_DELAY
  209. #define RT_USING_POSIX_CLOCK
  210. /* Interprocess Communication (IPC) */
  211. #define RT_USING_POSIX_PIPE
  212. #define RT_USING_POSIX_PIPE_SIZE 512
  213. /* Socket is in the 'Network' category */
  214. /* end of Interprocess Communication (IPC) */
  215. /* end of POSIX (Portable Operating System Interface) layer */
  216. /* end of C/C++ and POSIX layer */
  217. /* Network */
  218. /* end of Network */
  219. /* Memory protection */
  220. /* end of Memory protection */
  221. /* Utilities */
  222. #define RT_USING_RESOURCE_ID
  223. #define RT_USING_ADT
  224. #define RT_USING_ADT_AVL
  225. #define RT_USING_ADT_BITMAP
  226. #define RT_USING_ADT_HASHMAP
  227. #define RT_USING_ADT_REF
  228. /* end of Utilities */
  229. /* Memory management */
  230. #define RT_PAGE_AFFINITY_BLOCK_SIZE 0x1000
  231. #define RT_PAGE_MAX_ORDER 11
  232. #define RT_USING_MEMBLOCK
  233. #define RT_INIT_MEMORY_REGIONS 128
  234. /* Debugging */
  235. /* end of Debugging */
  236. /* end of Memory management */
  237. /* Using USB legacy version */
  238. /* end of Using USB legacy version */
  239. /* end of RT-Thread Components */
  240. /* RT-Thread Utestcases */
  241. /* end of RT-Thread Utestcases */
  242. /* RT-Thread online packages */
  243. /* IoT - internet of things */
  244. /* Wi-Fi */
  245. /* Marvell WiFi */
  246. /* end of Marvell WiFi */
  247. /* Wiced WiFi */
  248. /* end of Wiced WiFi */
  249. /* CYW43012 WiFi */
  250. /* end of CYW43012 WiFi */
  251. /* BL808 WiFi */
  252. /* end of BL808 WiFi */
  253. /* CYW43439 WiFi */
  254. /* end of CYW43439 WiFi */
  255. /* end of Wi-Fi */
  256. /* IoT Cloud */
  257. /* end of IoT Cloud */
  258. /* end of IoT - internet of things */
  259. /* security packages */
  260. /* end of security packages */
  261. /* language packages */
  262. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  263. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  264. /* XML: Extensible Markup Language */
  265. /* end of XML: Extensible Markup Language */
  266. /* end of language packages */
  267. /* multimedia packages */
  268. /* LVGL: powerful and easy-to-use embedded GUI library */
  269. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  270. /* u8g2: a monochrome graphic library */
  271. /* end of u8g2: a monochrome graphic library */
  272. /* end of multimedia packages */
  273. /* tools packages */
  274. /* end of tools packages */
  275. /* system packages */
  276. /* enhanced kernel services */
  277. /* end of enhanced kernel services */
  278. /* acceleration: Assembly language or algorithmic acceleration packages */
  279. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  280. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  281. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  282. /* Micrium: Micrium software products porting for RT-Thread */
  283. /* end of Micrium: Micrium software products porting for RT-Thread */
  284. /* end of system packages */
  285. /* peripheral libraries and drivers */
  286. /* HAL & SDK Drivers */
  287. /* STM32 HAL & SDK Drivers */
  288. /* end of STM32 HAL & SDK Drivers */
  289. /* Infineon HAL Packages */
  290. /* end of Infineon HAL Packages */
  291. /* Kendryte SDK */
  292. /* end of Kendryte SDK */
  293. /* WCH HAL & SDK Drivers */
  294. /* end of WCH HAL & SDK Drivers */
  295. /* AT32 HAL & SDK Drivers */
  296. /* end of AT32 HAL & SDK Drivers */
  297. /* HC32 DDL Drivers */
  298. /* end of HC32 DDL Drivers */
  299. /* NXP HAL & SDK Drivers */
  300. /* end of NXP HAL & SDK Drivers */
  301. /* NUVOTON Drivers */
  302. /* end of NUVOTON Drivers */
  303. /* GD32 Drivers */
  304. /* end of GD32 Drivers */
  305. /* end of HAL & SDK Drivers */
  306. /* sensors drivers */
  307. /* end of sensors drivers */
  308. /* touch drivers */
  309. /* end of touch drivers */
  310. /* end of peripheral libraries and drivers */
  311. /* AI packages */
  312. /* end of AI packages */
  313. /* Signal Processing and Control Algorithm Packages */
  314. /* end of Signal Processing and Control Algorithm Packages */
  315. /* miscellaneous packages */
  316. /* project laboratory */
  317. /* end of project laboratory */
  318. /* samples: kernel and components samples */
  319. /* end of samples: kernel and components samples */
  320. /* entertainment: terminal games and other interesting software packages */
  321. /* end of entertainment: terminal games and other interesting software packages */
  322. /* end of miscellaneous packages */
  323. /* Arduino libraries */
  324. /* Projects and Demos */
  325. /* end of Projects and Demos */
  326. /* Sensors */
  327. /* end of Sensors */
  328. /* Display */
  329. /* end of Display */
  330. /* Timing */
  331. /* end of Timing */
  332. /* Data Processing */
  333. /* end of Data Processing */
  334. /* Data Storage */
  335. /* Communication */
  336. /* end of Communication */
  337. /* Device Control */
  338. /* end of Device Control */
  339. /* Other */
  340. /* end of Other */
  341. /* Signal IO */
  342. /* end of Signal IO */
  343. /* Uncategorized */
  344. /* end of Arduino libraries */
  345. /* end of RT-Thread online packages */
  346. #define SOC_VIRT64_AARCH64
  347. /* AARCH64 qemu virt64 configs */
  348. #define BSP_SUPPORT_FPU
  349. #define BSP_USING_UART
  350. #define RT_USING_UART0
  351. #define BSP_USING_RTC
  352. #define BSP_USING_PIN
  353. #define BSP_USING_VIRTIO_BLK
  354. #define BSP_USING_VIRTIO_CONSOLE
  355. #define BSP_USING_VIRTIO_GPU
  356. #define BSP_USING_VIRTIO_INPUT
  357. #define BSP_USING_GIC
  358. #define BSP_USING_GICV2
  359. /* end of AARCH64 qemu virt64 configs */
  360. #endif