rtconfig.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Project Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 20
  7. #define RT_USING_SMART
  8. #define RT_CPUS_NR 1
  9. #define RT_ALIGN_SIZE 8
  10. #define RT_THREAD_PRIORITY_32
  11. #define RT_THREAD_PRIORITY_MAX 32
  12. #define RT_TICK_PER_SECOND 100
  13. #define RT_USING_HOOK
  14. #define RT_HOOK_USING_FUNC_PTR
  15. #define RT_USING_IDLE_HOOK
  16. #define RT_IDLE_HOOK_LIST_SIZE 4
  17. #define IDLE_THREAD_STACK_SIZE 16384
  18. #define RT_USING_TIMER_SOFT
  19. #define RT_TIMER_THREAD_PRIO 4
  20. #define RT_TIMER_THREAD_STACK_SIZE 16384
  21. /* kservice optimization */
  22. #define RT_KSERVICE_USING_STDLIB
  23. #define RT_KPRINTF_USING_LONGLONG
  24. #define RT_USING_DEBUG
  25. #define RT_DEBUGING_COLOR
  26. #define RT_DEBUGING_CONTEXT
  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. /* Memory Management */
  34. #define RT_PAGE_MAX_ORDER 11
  35. #define RT_USING_MEMPOOL
  36. #define RT_USING_SMALL_MEM
  37. #define RT_USING_SMALL_MEM_AS_HEAP
  38. #define RT_USING_MEMTRACE
  39. #define RT_USING_HEAP
  40. #define RT_USING_DEVICE
  41. #define RT_USING_CONSOLE
  42. #define RT_CONSOLEBUF_SIZE 256
  43. #define RT_CONSOLE_DEVICE_NAME "uart0"
  44. #define RT_VER_NUM 0x50100
  45. #define RT_USING_STDC_ATOMIC
  46. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  47. #define ARCH_CPU_64BIT
  48. #define RT_USING_CACHE
  49. #define ARCH_MM_MMU
  50. #define KERNEL_VADDR_START 0x40000000
  51. #define ARCH_RISCV
  52. #define ARCH_RISCV64
  53. /* RT-Thread Components */
  54. #define RT_USING_COMPONENTS_INIT
  55. #define RT_USING_USER_MAIN
  56. #define RT_MAIN_THREAD_STACK_SIZE 16384
  57. #define RT_MAIN_THREAD_PRIORITY 10
  58. #define RT_USING_MSH
  59. #define RT_USING_FINSH
  60. #define FINSH_USING_MSH
  61. #define FINSH_THREAD_NAME "tshell"
  62. #define FINSH_THREAD_PRIORITY 20
  63. #define FINSH_THREAD_STACK_SIZE 8192
  64. #define FINSH_USING_HISTORY
  65. #define FINSH_HISTORY_LINES 5
  66. #define FINSH_USING_SYMTAB
  67. #define FINSH_CMD_SIZE 80
  68. #define MSH_USING_BUILT_IN_COMMANDS
  69. #define FINSH_USING_DESCRIPTION
  70. #define FINSH_ARG_MAX 10
  71. #define FINSH_USING_OPTION_COMPLETION
  72. /* DFS: device virtual file system */
  73. #define RT_USING_DFS
  74. #define DFS_USING_POSIX
  75. #define DFS_USING_WORKDIR
  76. #define DFS_FD_MAX 32
  77. #define RT_USING_DFS_V2
  78. #define RT_USING_DFS_ELMFAT
  79. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  80. #define RT_DFS_ELM_CODE_PAGE 936
  81. #define RT_DFS_ELM_WORD_ACCESS
  82. #define RT_DFS_ELM_USE_LFN_3
  83. #define RT_DFS_ELM_USE_LFN 3
  84. #define RT_DFS_ELM_LFN_UNICODE_0
  85. #define RT_DFS_ELM_LFN_UNICODE 0
  86. #define RT_DFS_ELM_MAX_LFN 255
  87. #define RT_DFS_ELM_DRIVES 8
  88. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  89. #define RT_DFS_ELM_REENTRANT
  90. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  91. #define RT_USING_DFS_DEVFS
  92. #define RT_USING_PAGECACHE
  93. /* page cache config */
  94. #define RT_PAGECACHE_COUNT 4096
  95. #define RT_PAGECACHE_ASPACE_COUNT 1024
  96. #define RT_PAGECACHE_PRELOAD 4
  97. #define RT_PAGECACHE_HASH_NR 1024
  98. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  99. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  100. #define RT_USING_FAL
  101. #define FAL_DEBUG_CONFIG
  102. #define FAL_DEBUG 1
  103. #define FAL_PART_HAS_TABLE_CFG
  104. /* Device Drivers */
  105. #define RT_USING_DEVICE_IPC
  106. #define RT_UNAMED_PIPE_NUMBER 64
  107. #define RT_USING_SYSTEM_WORKQUEUE
  108. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 4096
  109. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  110. #define RT_USING_SERIAL
  111. #define RT_USING_SERIAL_V2
  112. #define RT_USING_TTY
  113. #define RT_USING_NULL
  114. #define RT_USING_ZERO
  115. #define RT_USING_RANDOM
  116. #define RT_USING_RTC
  117. #define RT_USING_WDT
  118. #define RT_USING_DEV_BUS
  119. #define RT_USING_PIN
  120. #define RT_USING_KTIME
  121. /* Using USB */
  122. /* C/C++ and POSIX layer */
  123. /* ISO-ANSI C layer */
  124. /* Timezone and Daylight Saving Time */
  125. #define RT_LIBC_USING_LIGHT_TZ_DST
  126. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  127. #define RT_LIBC_TZ_DEFAULT_MIN 0
  128. #define RT_LIBC_TZ_DEFAULT_SEC 0
  129. /* POSIX (Portable Operating System Interface) layer */
  130. #define RT_USING_POSIX_FS
  131. #define RT_USING_POSIX_DEVIO
  132. #define RT_USING_POSIX_STDIO
  133. #define RT_USING_POSIX_POLL
  134. #define RT_USING_POSIX_SELECT
  135. #define RT_USING_POSIX_TERMIOS
  136. #define RT_USING_POSIX_DELAY
  137. #define RT_USING_POSIX_CLOCK
  138. #define RT_USING_POSIX_TIMER
  139. /* Interprocess Communication (IPC) */
  140. #define RT_USING_POSIX_PIPE
  141. #define RT_USING_POSIX_PIPE_SIZE 512
  142. /* Socket is in the 'Network' category */
  143. /* Network */
  144. /* Memory protection */
  145. /* Utilities */
  146. #define RT_USING_RESOURCE_ID
  147. #define RT_USING_ADT
  148. #define RT_USING_ADT_AVL
  149. #define RT_USING_ADT_BITMAP
  150. #define RT_USING_ADT_HASHMAP
  151. #define RT_USING_ADT_REF
  152. #define RT_USING_LWP
  153. #define RT_LWP_MAX_NR 30
  154. #define LWP_TASK_STACK_SIZE 16384
  155. #define RT_CH_MSG_MAX_NR 1024
  156. #define LWP_CONSOLE_INPUT_BUFFER_SIZE 1024
  157. #define LWP_TID_MAX_NR 64
  158. #define RT_LWP_SHM_MAX_NR 64
  159. #define RT_USING_LDSO
  160. /* Memory management */
  161. /* RT-Thread Utestcases */
  162. /* RT-Thread online packages */
  163. /* IoT - internet of things */
  164. /* Wi-Fi */
  165. /* Marvell WiFi */
  166. /* Wiced WiFi */
  167. /* CYW43012 WiFi */
  168. /* BL808 WiFi */
  169. /* CYW43439 WiFi */
  170. /* IoT Cloud */
  171. /* security packages */
  172. /* language packages */
  173. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  174. /* XML: Extensible Markup Language */
  175. /* multimedia packages */
  176. /* LVGL: powerful and easy-to-use embedded GUI library */
  177. /* u8g2: a monochrome graphic library */
  178. /* tools packages */
  179. /* system packages */
  180. /* enhanced kernel services */
  181. /* acceleration: Assembly language or algorithmic acceleration packages */
  182. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  183. /* Micrium: Micrium software products porting for RT-Thread */
  184. /* peripheral libraries and drivers */
  185. /* HAL & SDK Drivers */
  186. /* STM32 HAL & SDK Drivers */
  187. /* Kendryte SDK */
  188. /* sensors drivers */
  189. /* touch drivers */
  190. /* AI packages */
  191. /* Signal Processing and Control Algorithm Packages */
  192. /* miscellaneous packages */
  193. /* project laboratory */
  194. /* samples: kernel and components samples */
  195. /* entertainment: terminal games and other interesting software packages */
  196. /* Arduino libraries */
  197. /* Projects and Demos */
  198. /* Sensors */
  199. /* Display */
  200. /* Timing */
  201. /* Data Processing */
  202. /* Data Storage */
  203. /* Communication */
  204. /* Device Control */
  205. /* Other */
  206. /* Signal IO */
  207. /* Uncategorized */
  208. #define BOARD_allwinnerd1s
  209. #define __STACKSIZE__ 16384
  210. /* General Drivers Configuration */
  211. #define BSP_USING_M7
  212. /* General Purpose UARTs */
  213. #define BSP_USING_UART0
  214. #define UART0_TX_USING_GPIOE2
  215. #define UART0_RX_USING_GPIOE3
  216. #define BSP_USING_SDMMC
  217. #define SD_CARD_CHECK
  218. #define BSP_USING_FS
  219. /* Board extended module Drivers */
  220. #define RT_USING_SUNXI_HAL
  221. /* UART Devices */
  222. /* CCMU Devices */
  223. #define DRIVERS_CCMU
  224. #define DRIVERS_SUNXI_CCU
  225. /* DMA Devices */
  226. #define DRIVERS_DMA
  227. /* GPIO Devices */
  228. #define DRIVERS_GPIO
  229. /* Video support for sunxi */
  230. #define DISP2_SUNXI
  231. #define SUNXI_DISP2_FB_DISABLE_ROTATE
  232. /* LCD panels select */
  233. #define LCD_SUPPORT_HE0801A068
  234. #define LCD_SUPPORT_WILLIAMLCD
  235. #define LCD_SUPPORT_LQ101R1SX03
  236. #define LCD_SUPPORT_INET_DSI_PANEL
  237. /* Display engine feature select */
  238. #define DISP2_SUNXI_SUPPORT_ENAHNCE
  239. /* Soc and board select */
  240. /* Board Select */
  241. /* Soc Select */
  242. /* SDMMC Devices */
  243. #define DRIVERS_SDMMC
  244. #define USE_SD
  245. #define USE_SDIO
  246. #define DETECT_CARD
  247. #define SDC_DMA_USED
  248. #define SDIO_IRQ_SUPPORT
  249. #define SDC_DMA_BUF_SIZE 64
  250. #define DRIVERS_SDC_CDPIN_PRESENT_VAL 0
  251. /* SPI Devices */
  252. #define DRIVERS_SPI
  253. /* TWI Devices */
  254. #define DRIVERS_TWI
  255. /* G2D Devices */
  256. #define DRIVERS_G2D
  257. /* CE Devices */
  258. #define DRIVERS_CE
  259. /* EFUSE Devices */
  260. #define DRIVERS_EFUSE
  261. #endif