rtconfig.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 16
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 8
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  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 8192
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 8192
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. /* klibc optimization */
  21. #define RT_KLIBC_USING_VSNPRINTF_LONGLONG
  22. /* end of klibc optimization */
  23. #define RT_USING_DEBUG
  24. #define RT_DEBUGING_ASSERT
  25. #define RT_DEBUGING_COLOR
  26. #define RT_DEBUGING_CONTEXT
  27. #define RT_USING_OVERFLOW_CHECK
  28. /* Inter-Thread communication */
  29. #define RT_USING_SEMAPHORE
  30. #define RT_USING_MUTEX
  31. #define RT_USING_EVENT
  32. #define RT_USING_MAILBOX
  33. #define RT_USING_MESSAGEQUEUE
  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_MEMHEAP_AS_HEAP
  42. #define RT_USING_MEMHEAP_AUTO_BINDING
  43. #define RT_USING_MEMTRACE
  44. #define RT_USING_HEAP
  45. /* end of Memory Management */
  46. #define RT_USING_DEVICE
  47. #define RT_USING_DEVICE_OPS
  48. #define RT_USING_INTERRUPT_INFO
  49. #define RT_USING_SCHED_THREAD_CTX
  50. #define RT_USING_CONSOLE
  51. #define RT_CONSOLEBUF_SIZE 256
  52. #define RT_CONSOLE_DEVICE_NAME "uart0"
  53. #define RT_VER_NUM 0x50200
  54. #define RT_USING_STDC_ATOMIC
  55. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  56. /* end of RT-Thread Kernel */
  57. /* AArch64 Architecture Configuration */
  58. #define ARCH_TEXT_OFFSET 0x200000
  59. #define ARCH_RAM_OFFSET 0x80000000
  60. #define ARCH_SECONDARY_CPU_STACK_SIZE 4096
  61. #define ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
  62. #define ARCH_USING_GENERIC_CPUID
  63. #define ARCH_HEAP_SIZE 0x4000000
  64. #define ARCH_INIT_PAGE_SIZE 0x200000
  65. /* end of AArch64 Architecture Configuration */
  66. #define ARCH_CPU_64BIT
  67. #define RT_USING_CACHE
  68. #define RT_USING_CPU_FFS
  69. #define ARCH_MM_MMU
  70. #define ARCH_ARM
  71. #define ARCH_ARM_MMU
  72. #define ARCH_ARMV8
  73. #define ARCH_USING_HW_THREAD_SELF
  74. /* RT-Thread Components */
  75. #define RT_USING_COMPONENTS_INIT
  76. #define RT_USING_USER_MAIN
  77. #define RT_MAIN_THREAD_STACK_SIZE 8192
  78. #define RT_MAIN_THREAD_PRIORITY 10
  79. #define RT_USING_MSH
  80. #define RT_USING_FINSH
  81. #define FINSH_USING_MSH
  82. #define FINSH_THREAD_NAME "tshell"
  83. #define FINSH_THREAD_PRIORITY 20
  84. #define FINSH_THREAD_STACK_SIZE 4096
  85. #define FINSH_USING_HISTORY
  86. #define FINSH_HISTORY_LINES 10
  87. #define FINSH_USING_SYMTAB
  88. #define FINSH_CMD_SIZE 256
  89. #define MSH_USING_BUILT_IN_COMMANDS
  90. #define FINSH_USING_DESCRIPTION
  91. #define FINSH_ARG_MAX 10
  92. #define FINSH_USING_OPTION_COMPLETION
  93. /* DFS: device virtual file system */
  94. #define RT_USING_DFS
  95. #define DFS_USING_POSIX
  96. #define DFS_USING_WORKDIR
  97. #define DFS_FD_MAX 32
  98. #define RT_USING_DFS_V2
  99. #define RT_USING_DFS_ELMFAT
  100. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  101. #define RT_DFS_ELM_CODE_PAGE 437
  102. #define RT_DFS_ELM_WORD_ACCESS
  103. #define RT_DFS_ELM_USE_LFN_3
  104. #define RT_DFS_ELM_USE_LFN 3
  105. #define RT_DFS_ELM_LFN_UNICODE_0
  106. #define RT_DFS_ELM_LFN_UNICODE 0
  107. #define RT_DFS_ELM_MAX_LFN 255
  108. #define RT_DFS_ELM_DRIVES 2
  109. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  110. #define RT_DFS_ELM_REENTRANT
  111. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  112. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  113. #define RT_USING_DFS_DEVFS
  114. #define RT_USING_DFS_ROMFS
  115. /* end of DFS: device virtual file system */
  116. /* Device Drivers */
  117. #define RT_USING_DM
  118. #define RT_USING_DEV_BUS
  119. #define RT_USING_DEVICE_IPC
  120. #define RT_UNAMED_PIPE_NUMBER 64
  121. #define RT_USING_SYSTEM_WORKQUEUE
  122. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 8192
  123. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  124. #define RT_USING_SERIAL
  125. #define RT_USING_SERIAL_V1
  126. #define RT_SERIAL_USING_DMA
  127. #define RT_SERIAL_RB_BUFSZ 256
  128. #define RT_USING_NULL
  129. #define RT_USING_ZERO
  130. #define RT_USING_RANDOM
  131. #define RT_USING_PM
  132. #define PM_TICKLESS_THRESHOLD_TIME 2
  133. #define RT_USING_VIRTIO
  134. #define RT_USING_VIRTIO10
  135. #define RT_USING_VIRTIO_MMIO_ALIGN
  136. #define RT_USING_VIRTIO_BLK
  137. #define RT_USING_VIRTIO_CONSOLE
  138. #define RT_USING_VIRTIO_CONSOLE_PORT_MAX_NR 4
  139. #define RT_USING_VIRTIO_GPU
  140. #define RT_USING_VIRTIO_INPUT
  141. #define RT_USING_OFW
  142. #define RT_FDT_EARLYCON_MSG_SIZE 128
  143. #define RT_USING_OFW_BUS_RANGES_NUMBER 8
  144. #define RT_USING_PIN
  145. #define RT_USING_KTIME
  146. #define RT_USING_CLK
  147. /* end of Device Drivers */
  148. /* C/C++ and POSIX layer */
  149. /* ISO-ANSI C layer */
  150. /* Timezone and Daylight Saving Time */
  151. #define RT_LIBC_USING_LIGHT_TZ_DST
  152. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  153. #define RT_LIBC_TZ_DEFAULT_MIN 0
  154. #define RT_LIBC_TZ_DEFAULT_SEC 0
  155. /* end of Timezone and Daylight Saving Time */
  156. /* end of ISO-ANSI C layer */
  157. /* POSIX (Portable Operating System Interface) layer */
  158. #define RT_USING_POSIX_FS
  159. #define RT_USING_POSIX_DEVIO
  160. #define RT_USING_POSIX_STDIO
  161. #define RT_USING_POSIX_POLL
  162. #define RT_USING_POSIX_SELECT
  163. #define RT_USING_POSIX_TERMIOS
  164. #define RT_USING_POSIX_DELAY
  165. #define RT_USING_POSIX_CLOCK
  166. #define RT_USING_POSIX_TIMER
  167. /* Interprocess Communication (IPC) */
  168. #define RT_USING_POSIX_PIPE
  169. #define RT_USING_POSIX_PIPE_SIZE 512
  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. #define RT_USING_MEMBLOCK
  187. /* Using USB legacy version */
  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. /* end of HAL & SDK Drivers */
  244. /* sensors drivers */
  245. /* end of sensors drivers */
  246. /* touch drivers */
  247. /* end of touch drivers */
  248. /* end of peripheral libraries and drivers */
  249. /* AI packages */
  250. /* end of AI packages */
  251. /* Signal Processing and Control Algorithm Packages */
  252. /* end of Signal Processing and Control Algorithm Packages */
  253. /* miscellaneous packages */
  254. /* project laboratory */
  255. /* end of project laboratory */
  256. /* samples: kernel and components samples */
  257. /* end of samples: kernel and components samples */
  258. /* entertainment: terminal games and other interesting software packages */
  259. /* end of entertainment: terminal games and other interesting software packages */
  260. /* end of miscellaneous packages */
  261. /* Arduino libraries */
  262. /* Projects and Demos */
  263. /* end of Projects and Demos */
  264. /* Sensors */
  265. /* end of Sensors */
  266. /* Display */
  267. /* end of Display */
  268. /* Timing */
  269. /* end of Timing */
  270. /* Data Processing */
  271. /* end of Data Processing */
  272. /* Data Storage */
  273. /* Communication */
  274. /* end of Communication */
  275. /* Device Control */
  276. /* end of Device Control */
  277. /* Other */
  278. /* end of Other */
  279. /* Signal IO */
  280. /* end of Signal IO */
  281. /* Uncategorized */
  282. /* end of Arduino libraries */
  283. /* end of RT-Thread online packages */
  284. #define SOC_CV18XX_AARCH64
  285. #define BSP_GPIO_IRQ_BASE 76
  286. #define BSP_SYS_GPIO_IRQ_BASE 86
  287. #define SOC_TYPE_SG2002
  288. #define BOARD_TYPE_MILKV_DUO256M
  289. /* General Drivers Configuration */
  290. #define BSP_SUPPORT_FPU
  291. #define BSP_USING_GIC
  292. #define BSP_USING_GICV2
  293. #define BSP_USING_UART
  294. #define BSP_USING_UART0
  295. #define BSP_UART0_RX_PINNAME "UART0_RX"
  296. #define BSP_UART0_TX_PINNAME "UART0_TX"
  297. #define BSP_UART_IRQ_BASE 60
  298. /* end of General Drivers Configuration */
  299. #endif