rtconfig.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 20
  5. #define RT_USING_SMART
  6. #define RT_CPUS_NR 1
  7. #define RT_ALIGN_SIZE 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 100
  11. #define RT_USING_HOOK
  12. #define RT_HOOK_USING_FUNC_PTR
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 16384
  16. #define RT_USING_TIMER_SOFT
  17. #define RT_TIMER_THREAD_PRIO 4
  18. #define RT_TIMER_THREAD_STACK_SIZE 16384
  19. #define RT_USING_CPU_USAGE_TRACER
  20. /* kservice optimization */
  21. /* end of kservice optimization */
  22. /* klibc optimization */
  23. #define RT_KLIBC_USING_PRINTF_LONGLONG
  24. /* end of klibc optimization */
  25. #define RT_USING_DEBUG
  26. #define RT_DEBUGING_ASSERT
  27. #define RT_DEBUGING_COLOR
  28. #define RT_DEBUGING_CONTEXT
  29. /* Inter-Thread communication */
  30. #define RT_USING_SEMAPHORE
  31. #define RT_USING_MUTEX
  32. #define RT_USING_EVENT
  33. #define RT_USING_MAILBOX
  34. #define RT_USING_MESSAGEQUEUE
  35. /* end of Inter-Thread communication */
  36. /* Memory Management */
  37. #define RT_PAGE_MAX_ORDER 11
  38. #define RT_USING_MEMHEAP
  39. #define RT_MEMHEAP_FAST_MODE
  40. #define RT_USING_MEMHEAP_AS_HEAP
  41. #define RT_USING_MEMHEAP_AUTO_BINDING
  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_SCHED_THREAD_CTX
  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_USING_STDC_ATOMIC
  53. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  54. /* end of RT-Thread Kernel */
  55. #define ARCH_CPU_64BIT
  56. #define RT_USING_CACHE
  57. #define ARCH_MM_MMU
  58. #define KERNEL_VADDR_START 0x40000000
  59. #define ARCH_RISCV
  60. #define ARCH_RISCV64
  61. /* RT-Thread Components */
  62. #define RT_USING_COMPONENTS_INIT
  63. #define RT_USING_USER_MAIN
  64. #define RT_MAIN_THREAD_STACK_SIZE 16384
  65. #define RT_MAIN_THREAD_PRIORITY 10
  66. #define RT_USING_MSH
  67. #define RT_USING_FINSH
  68. #define FINSH_USING_MSH
  69. #define FINSH_THREAD_NAME "tshell"
  70. #define FINSH_THREAD_PRIORITY 20
  71. #define FINSH_THREAD_STACK_SIZE 8192
  72. #define FINSH_USING_HISTORY
  73. #define FINSH_HISTORY_LINES 5
  74. #define FINSH_USING_SYMTAB
  75. #define FINSH_CMD_SIZE 80
  76. #define MSH_USING_BUILT_IN_COMMANDS
  77. #define FINSH_USING_DESCRIPTION
  78. #define FINSH_ARG_MAX 10
  79. #define FINSH_USING_OPTION_COMPLETION
  80. /* DFS: device virtual file system */
  81. #define RT_USING_DFS
  82. #define DFS_USING_POSIX
  83. #define DFS_USING_WORKDIR
  84. #define DFS_FD_MAX 32
  85. #define RT_USING_DFS_V2
  86. #define RT_USING_DFS_ELMFAT
  87. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  88. #define RT_DFS_ELM_CODE_PAGE 936
  89. #define RT_DFS_ELM_WORD_ACCESS
  90. #define RT_DFS_ELM_USE_LFN_3
  91. #define RT_DFS_ELM_USE_LFN 3
  92. #define RT_DFS_ELM_LFN_UNICODE_0
  93. #define RT_DFS_ELM_LFN_UNICODE 0
  94. #define RT_DFS_ELM_MAX_LFN 255
  95. #define RT_DFS_ELM_DRIVES 8
  96. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  97. #define RT_DFS_ELM_REENTRANT
  98. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  99. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  100. #define RT_USING_DFS_DEVFS
  101. #define RT_USING_DFS_PTYFS
  102. #define RT_USING_DFS_TMPFS
  103. #define RT_USING_PAGECACHE
  104. /* page cache config */
  105. #define RT_PAGECACHE_COUNT 4096
  106. #define RT_PAGECACHE_ASPACE_COUNT 1024
  107. #define RT_PAGECACHE_PRELOAD 4
  108. #define RT_PAGECACHE_HASH_NR 1024
  109. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  110. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  111. /* end of page cache config */
  112. /* end of DFS: device virtual file system */
  113. #define RT_USING_FAL
  114. #define FAL_DEBUG_CONFIG
  115. #define FAL_DEBUG 1
  116. #define FAL_PART_HAS_TABLE_CFG
  117. /* Device Drivers */
  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 16384
  123. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  124. #define RT_USING_SERIAL
  125. #define RT_USING_SERIAL_V2
  126. #define RT_USING_NULL
  127. #define RT_USING_ZERO
  128. #define RT_USING_RANDOM
  129. #define RT_USING_RTC
  130. #define RT_USING_WDT
  131. #define RT_USING_PIN
  132. #define RT_USING_KTIME
  133. /* end of Device Drivers */
  134. /* C/C++ and POSIX layer */
  135. /* ISO-ANSI C layer */
  136. /* Timezone and Daylight Saving Time */
  137. #define RT_LIBC_USING_LIGHT_TZ_DST
  138. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  139. #define RT_LIBC_TZ_DEFAULT_MIN 0
  140. #define RT_LIBC_TZ_DEFAULT_SEC 0
  141. /* end of Timezone and Daylight Saving Time */
  142. /* end of ISO-ANSI C layer */
  143. /* POSIX (Portable Operating System Interface) layer */
  144. #define RT_USING_POSIX_FS
  145. #define RT_USING_POSIX_DEVIO
  146. #define RT_USING_POSIX_STDIO
  147. #define RT_USING_POSIX_POLL
  148. #define RT_USING_POSIX_SELECT
  149. #define RT_USING_POSIX_TERMIOS
  150. #define RT_USING_POSIX_DELAY
  151. #define RT_USING_POSIX_CLOCK
  152. #define RT_USING_POSIX_TIMER
  153. /* Interprocess Communication (IPC) */
  154. #define RT_USING_POSIX_PIPE
  155. #define RT_USING_POSIX_PIPE_SIZE 512
  156. /* Socket is in the 'Network' category */
  157. /* end of Interprocess Communication (IPC) */
  158. /* end of POSIX (Portable Operating System Interface) layer */
  159. /* end of C/C++ and POSIX layer */
  160. /* Network */
  161. /* end of Network */
  162. /* Memory protection */
  163. /* end of Memory protection */
  164. /* Utilities */
  165. #define RT_USING_RESOURCE_ID
  166. #define RT_USING_ADT
  167. #define RT_USING_ADT_AVL
  168. #define RT_USING_ADT_BITMAP
  169. #define RT_USING_ADT_HASHMAP
  170. #define RT_USING_ADT_REF
  171. /* end of Utilities */
  172. #define RT_USING_LWP
  173. #define RT_LWP_MAX_NR 30
  174. #define LWP_TASK_STACK_SIZE 16384
  175. #define RT_CH_MSG_MAX_NR 1024
  176. #define LWP_CONSOLE_INPUT_BUFFER_SIZE 1024
  177. #define LWP_TID_MAX_NR 64
  178. #define RT_LWP_SHM_MAX_NR 64
  179. #define RT_USING_LDSO
  180. #define LWP_USING_TERMINAL
  181. #define LWP_PTY_MAX_PARIS_LIMIT 64
  182. /* Memory management */
  183. /* end of Memory management */
  184. /* Using USB legacy version */
  185. /* end of Using USB legacy version */
  186. /* end of RT-Thread Components */
  187. /* RT-Thread Utestcases */
  188. /* end of RT-Thread Utestcases */
  189. /* RT-Thread online packages */
  190. /* IoT - internet of things */
  191. /* Wi-Fi */
  192. /* Marvell WiFi */
  193. /* end of Marvell WiFi */
  194. /* Wiced WiFi */
  195. /* end of Wiced WiFi */
  196. /* end of Wi-Fi */
  197. /* IoT Cloud */
  198. /* end of IoT Cloud */
  199. /* end of IoT - internet of things */
  200. /* security packages */
  201. /* end of security packages */
  202. /* language packages */
  203. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  204. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  205. /* XML: Extensible Markup Language */
  206. /* end of XML: Extensible Markup Language */
  207. /* end of language packages */
  208. /* multimedia packages */
  209. /* LVGL: powerful and easy-to-use embedded GUI library */
  210. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  211. /* u8g2: a monochrome graphic library */
  212. /* end of u8g2: a monochrome graphic library */
  213. /* PainterEngine: A cross-platform graphics application framework written in C language */
  214. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  215. /* end of multimedia packages */
  216. /* tools packages */
  217. /* end of tools packages */
  218. /* system packages */
  219. /* enhanced kernel services */
  220. /* end of enhanced kernel services */
  221. /* acceleration: Assembly language or algorithmic acceleration packages */
  222. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  223. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  224. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  225. /* Micrium: Micrium software products porting for RT-Thread */
  226. /* end of Micrium: Micrium software products porting for RT-Thread */
  227. /* end of system packages */
  228. /* peripheral libraries and drivers */
  229. /* Kendryte SDK */
  230. /* end of Kendryte SDK */
  231. /* end of peripheral libraries and drivers */
  232. /* AI packages */
  233. /* end of AI packages */
  234. /* miscellaneous packages */
  235. /* project laboratory */
  236. /* end of project laboratory */
  237. /* samples: kernel and components samples */
  238. /* end of samples: kernel and components samples */
  239. /* entertainment: terminal games and other interesting software packages */
  240. /* end of entertainment: terminal games and other interesting software packages */
  241. /* end of miscellaneous packages */
  242. /* Arduino libraries */
  243. /* Projects */
  244. /* end of Projects */
  245. /* Sensors */
  246. /* end of Sensors */
  247. /* Display */
  248. /* end of Display */
  249. /* Timing */
  250. /* end of Timing */
  251. /* Data Processing */
  252. /* end of Data Processing */
  253. /* Data Storage */
  254. /* Communication */
  255. /* end of Communication */
  256. /* Device Control */
  257. /* end of Device Control */
  258. /* Other */
  259. /* Signal IO */
  260. /* end of Signal IO */
  261. /* Uncategorized */
  262. /* end of Arduino libraries */
  263. /* end of RT-Thread online packages */
  264. /* Privated Packages of RealThread */
  265. /* Network Utilities */
  266. /* end of Network Utilities */
  267. /* RT-Thread Smart */
  268. /* end of RT-Thread Smart */
  269. /* end of Privated Packages of RealThread */
  270. #define BOARD_allwinnerd1s
  271. #define __STACKSIZE__ 16384
  272. /* General Drivers Configuration */
  273. #define BSP_USING_M7
  274. /* General Purpose UARTs */
  275. #define BSP_USING_UART0
  276. #define UART0_TX_USING_GPIOE2
  277. #define UART0_RX_USING_GPIOE3
  278. /* end of General Purpose UARTs */
  279. #define BSP_USING_SDMMC
  280. #define SD_CARD_CHECK
  281. #define BSP_USING_FS
  282. /* Board extended module Drivers */
  283. /* end of Board extended module Drivers */
  284. /* end of General Drivers Configuration */
  285. #define RT_USING_SUNXI_HAL
  286. /* UART Devices */
  287. /* end of UART Devices */
  288. /* CCMU Devices */
  289. #define DRIVERS_CCMU
  290. #define DRIVERS_SUNXI_CCU
  291. /* end of CCMU Devices */
  292. /* DMA Devices */
  293. #define DRIVERS_DMA
  294. /* end of DMA Devices */
  295. /* GPIO Devices */
  296. #define DRIVERS_GPIO
  297. /* end of GPIO Devices */
  298. /* Video support for sunxi */
  299. #define DISP2_SUNXI
  300. #define SUNXI_DISP2_FB_DISABLE_ROTATE
  301. /* LCD panels select */
  302. #define LCD_SUPPORT_HE0801A068
  303. #define LCD_SUPPORT_WILLIAMLCD
  304. #define LCD_SUPPORT_LQ101R1SX03
  305. #define LCD_SUPPORT_INET_DSI_PANEL
  306. /* end of LCD panels select */
  307. /* Display engine feature select */
  308. #define DISP2_SUNXI_SUPPORT_ENAHNCE
  309. /* end of Display engine feature select */
  310. /* Soc and board select */
  311. /* Board Select */
  312. /* end of Board Select */
  313. /* Soc Select */
  314. /* end of Soc Select */
  315. /* end of Soc and board select */
  316. /* end of Video support for sunxi */
  317. /* SDMMC Devices */
  318. #define DRIVERS_SDMMC
  319. #define USE_SD
  320. #define USE_SDIO
  321. #define DETECT_CARD
  322. #define SDC_DMA_USED
  323. #define SDIO_IRQ_SUPPORT
  324. #define SDC_DMA_BUF_SIZE 64
  325. #define DRIVERS_SDC_CDPIN_PRESENT_VAL 0
  326. /* end of SDMMC Devices */
  327. /* SPI Devices */
  328. #define DRIVERS_SPI
  329. /* end of SPI Devices */
  330. /* TWI Devices */
  331. #define DRIVERS_TWI
  332. /* end of TWI Devices */
  333. /* G2D Devices */
  334. #define DRIVERS_G2D
  335. /* end of G2D Devices */
  336. /* CE Devices */
  337. #define DRIVERS_CE
  338. /* end of CE Devices */
  339. /* EFUSE Devices */
  340. #define DRIVERS_EFUSE
  341. /* end of EFUSE Devices */
  342. #endif