rtconfig.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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_VSNPRINTF_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. #define ARCH_USING_RISCV_COMMON64
  62. /* RT-Thread Components */
  63. #define RT_USING_COMPONENTS_INIT
  64. #define RT_USING_USER_MAIN
  65. #define RT_MAIN_THREAD_STACK_SIZE 16384
  66. #define RT_MAIN_THREAD_PRIORITY 10
  67. #define RT_USING_MSH
  68. #define RT_USING_FINSH
  69. #define FINSH_USING_MSH
  70. #define FINSH_THREAD_NAME "tshell"
  71. #define FINSH_THREAD_PRIORITY 20
  72. #define FINSH_THREAD_STACK_SIZE 8192
  73. #define FINSH_USING_HISTORY
  74. #define FINSH_HISTORY_LINES 5
  75. #define FINSH_USING_SYMTAB
  76. #define FINSH_CMD_SIZE 80
  77. #define MSH_USING_BUILT_IN_COMMANDS
  78. #define FINSH_USING_DESCRIPTION
  79. #define FINSH_ARG_MAX 10
  80. #define FINSH_USING_OPTION_COMPLETION
  81. /* DFS: device virtual file system */
  82. #define RT_USING_DFS
  83. #define DFS_USING_POSIX
  84. #define DFS_USING_WORKDIR
  85. #define DFS_FD_MAX 32
  86. #define RT_USING_DFS_V2
  87. #define RT_USING_DFS_ELMFAT
  88. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  89. #define RT_DFS_ELM_CODE_PAGE 936
  90. #define RT_DFS_ELM_WORD_ACCESS
  91. #define RT_DFS_ELM_USE_LFN_3
  92. #define RT_DFS_ELM_USE_LFN 3
  93. #define RT_DFS_ELM_LFN_UNICODE_0
  94. #define RT_DFS_ELM_LFN_UNICODE 0
  95. #define RT_DFS_ELM_MAX_LFN 255
  96. #define RT_DFS_ELM_DRIVES 8
  97. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  98. #define RT_DFS_ELM_REENTRANT
  99. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  100. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  101. #define RT_USING_DFS_DEVFS
  102. #define RT_USING_DFS_PTYFS
  103. #define RT_USING_DFS_TMPFS
  104. #define RT_USING_PAGECACHE
  105. /* page cache config */
  106. #define RT_PAGECACHE_COUNT 4096
  107. #define RT_PAGECACHE_ASPACE_COUNT 1024
  108. #define RT_PAGECACHE_PRELOAD 4
  109. #define RT_PAGECACHE_HASH_NR 1024
  110. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  111. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  112. /* end of page cache config */
  113. /* end of DFS: device virtual file system */
  114. #define RT_USING_FAL
  115. #define FAL_DEBUG_CONFIG
  116. #define FAL_DEBUG 1
  117. #define FAL_PART_HAS_TABLE_CFG
  118. /* Device Drivers */
  119. #define RT_USING_DEV_BUS
  120. #define RT_USING_DEVICE_IPC
  121. #define RT_UNAMED_PIPE_NUMBER 64
  122. #define RT_USING_SYSTEM_WORKQUEUE
  123. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 16384
  124. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  125. #define RT_USING_SERIAL
  126. #define RT_USING_SERIAL_V2
  127. #define RT_USING_CPUTIME
  128. #define RT_USING_CPUTIME_RISCV
  129. #define CPUTIME_TIMER_FREQ 24000000
  130. #define RT_USING_NULL
  131. #define RT_USING_ZERO
  132. #define RT_USING_RANDOM
  133. #define RT_USING_RTC
  134. #define RT_USING_WDT
  135. #define RT_USING_PIN
  136. #define RT_USING_KTIME
  137. /* end of Device Drivers */
  138. /* C/C++ and POSIX layer */
  139. /* ISO-ANSI C layer */
  140. /* Timezone and Daylight Saving Time */
  141. #define RT_LIBC_USING_LIGHT_TZ_DST
  142. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  143. #define RT_LIBC_TZ_DEFAULT_MIN 0
  144. #define RT_LIBC_TZ_DEFAULT_SEC 0
  145. /* end of Timezone and Daylight Saving Time */
  146. /* end of ISO-ANSI C layer */
  147. /* POSIX (Portable Operating System Interface) layer */
  148. #define RT_USING_POSIX_FS
  149. #define RT_USING_POSIX_DEVIO
  150. #define RT_USING_POSIX_STDIO
  151. #define RT_USING_POSIX_POLL
  152. #define RT_USING_POSIX_SELECT
  153. #define RT_USING_POSIX_TERMIOS
  154. #define RT_USING_POSIX_DELAY
  155. #define RT_USING_POSIX_CLOCK
  156. #define RT_USING_POSIX_TIMER
  157. /* Interprocess Communication (IPC) */
  158. #define RT_USING_POSIX_PIPE
  159. #define RT_USING_POSIX_PIPE_SIZE 512
  160. /* Socket is in the 'Network' category */
  161. /* end of Interprocess Communication (IPC) */
  162. /* end of POSIX (Portable Operating System Interface) layer */
  163. /* end of C/C++ and POSIX layer */
  164. /* Network */
  165. /* end of Network */
  166. /* Memory protection */
  167. /* end of Memory protection */
  168. /* Utilities */
  169. #define RT_USING_RESOURCE_ID
  170. #define RT_USING_ADT
  171. #define RT_USING_ADT_AVL
  172. #define RT_USING_ADT_BITMAP
  173. #define RT_USING_ADT_HASHMAP
  174. #define RT_USING_ADT_REF
  175. /* end of Utilities */
  176. #define RT_USING_LWP
  177. #define RT_LWP_MAX_NR 30
  178. #define LWP_TASK_STACK_SIZE 16384
  179. #define RT_CH_MSG_MAX_NR 1024
  180. #define LWP_CONSOLE_INPUT_BUFFER_SIZE 1024
  181. #define LWP_TID_MAX_NR 64
  182. #define RT_LWP_SHM_MAX_NR 64
  183. #define RT_USING_LDSO
  184. #define LWP_USING_TERMINAL
  185. #define LWP_PTY_MAX_PARIS_LIMIT 64
  186. /* Memory management */
  187. /* end of Memory management */
  188. /* Using USB legacy version */
  189. /* end of Using USB legacy version */
  190. /* end of RT-Thread Components */
  191. /* RT-Thread Utestcases */
  192. /* end of RT-Thread Utestcases */
  193. /* RT-Thread online packages */
  194. /* IoT - internet of things */
  195. /* Wi-Fi */
  196. /* Marvell WiFi */
  197. /* end of Marvell WiFi */
  198. /* Wiced WiFi */
  199. /* end of Wiced WiFi */
  200. /* CYW43012 WiFi */
  201. /* end of CYW43012 WiFi */
  202. /* BL808 WiFi */
  203. /* end of BL808 WiFi */
  204. /* CYW43439 WiFi */
  205. /* end of CYW43439 WiFi */
  206. /* end of Wi-Fi */
  207. /* IoT Cloud */
  208. /* end of IoT Cloud */
  209. /* end of IoT - internet of things */
  210. /* security packages */
  211. /* end of security packages */
  212. /* language packages */
  213. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  214. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  215. /* XML: Extensible Markup Language */
  216. /* end of XML: Extensible Markup Language */
  217. /* end of language packages */
  218. /* multimedia packages */
  219. /* LVGL: powerful and easy-to-use embedded GUI library */
  220. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  221. /* u8g2: a monochrome graphic library */
  222. /* end of u8g2: a monochrome graphic library */
  223. /* end of multimedia packages */
  224. /* tools packages */
  225. /* end of tools packages */
  226. /* system packages */
  227. /* enhanced kernel services */
  228. /* end of enhanced kernel services */
  229. /* acceleration: Assembly language or algorithmic acceleration packages */
  230. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  231. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  232. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  233. /* Micrium: Micrium software products porting for RT-Thread */
  234. /* end of Micrium: Micrium software products porting for RT-Thread */
  235. /* end of system packages */
  236. /* peripheral libraries and drivers */
  237. /* HAL & SDK Drivers */
  238. /* STM32 HAL & SDK Drivers */
  239. /* end of STM32 HAL & SDK Drivers */
  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. #define BOARD_allwinnerd1s
  284. #define __STACKSIZE__ 16384
  285. /* General Drivers Configuration */
  286. #define BSP_USING_M7
  287. /* General Purpose UARTs */
  288. #define BSP_USING_UART0
  289. #define UART0_TX_USING_GPIOE2
  290. #define UART0_RX_USING_GPIOE3
  291. /* end of General Purpose UARTs */
  292. #define BSP_USING_SDMMC
  293. #define SD_CARD_CHECK
  294. #define BSP_USING_FS
  295. /* Board extended module Drivers */
  296. /* end of Board extended module Drivers */
  297. /* end of General Drivers Configuration */
  298. #define RT_USING_SUNXI_HAL
  299. /* UART Devices */
  300. /* end of UART Devices */
  301. /* CCMU Devices */
  302. #define DRIVERS_CCMU
  303. #define DRIVERS_SUNXI_CCU
  304. /* end of CCMU Devices */
  305. /* DMA Devices */
  306. #define DRIVERS_DMA
  307. /* end of DMA Devices */
  308. /* GPIO Devices */
  309. #define DRIVERS_GPIO
  310. /* end of GPIO Devices */
  311. /* Video support for sunxi */
  312. #define DISP2_SUNXI
  313. #define SUNXI_DISP2_FB_DISABLE_ROTATE
  314. /* LCD panels select */
  315. #define LCD_SUPPORT_HE0801A068
  316. #define LCD_SUPPORT_WILLIAMLCD
  317. #define LCD_SUPPORT_LQ101R1SX03
  318. #define LCD_SUPPORT_INET_DSI_PANEL
  319. /* end of LCD panels select */
  320. /* Display engine feature select */
  321. #define DISP2_SUNXI_SUPPORT_ENAHNCE
  322. /* end of Display engine feature select */
  323. /* Soc and board select */
  324. /* Board Select */
  325. /* end of Board Select */
  326. /* Soc Select */
  327. /* end of Soc Select */
  328. /* end of Soc and board select */
  329. /* end of Video support for sunxi */
  330. /* SDMMC Devices */
  331. #define DRIVERS_SDMMC
  332. #define USE_SD
  333. #define USE_SDIO
  334. #define DETECT_CARD
  335. #define SDC_DMA_USED
  336. #define SDIO_IRQ_SUPPORT
  337. #define SDC_DMA_BUF_SIZE 64
  338. #define DRIVERS_SDC_CDPIN_PRESENT_VAL 0
  339. /* end of SDMMC Devices */
  340. /* SPI Devices */
  341. #define DRIVERS_SPI
  342. /* end of SPI Devices */
  343. /* TWI Devices */
  344. #define DRIVERS_TWI
  345. /* end of TWI Devices */
  346. /* G2D Devices */
  347. #define DRIVERS_G2D
  348. /* end of G2D Devices */
  349. /* CE Devices */
  350. #define DRIVERS_CE
  351. /* end of CE Devices */
  352. /* EFUSE Devices */
  353. #define DRIVERS_EFUSE
  354. /* end of EFUSE Devices */
  355. #endif