rtconfig.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 8
  6. #define RT_USING_SMP
  7. #define RT_CPUS_NR 2
  8. #define RT_ALIGN_SIZE 8
  9. #define RT_THREAD_PRIORITY_32
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. #define RT_TICK_PER_SECOND 1000
  12. #define RT_USING_OVERFLOW_CHECK
  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 4096
  18. #define SYSTEM_THREAD_STACK_SIZE 4096
  19. #define RT_USING_TIMER_SOFT
  20. #define RT_TIMER_THREAD_PRIO 4
  21. #define RT_TIMER_THREAD_STACK_SIZE 2048
  22. /* kservice optimization */
  23. #define RT_KPRINTF_USING_LONGLONG
  24. /* end of kservice optimization */
  25. #define RT_DEBUG
  26. #define RT_DEBUG_COLOR
  27. #define RT_DEBUG_INIT_CONFIG
  28. #define RT_DEBUG_INIT 1
  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. #define RT_USING_SIGNALS
  36. /* end of Inter-Thread communication */
  37. /* Memory Management */
  38. #define RT_USING_MEMPOOL
  39. #define RT_USING_SMALL_MEM
  40. #define RT_USING_SLAB
  41. #define RT_USING_MEMHEAP
  42. #define RT_MEMHEAP_FAST_MODE
  43. #define RT_USING_SMALL_MEM_AS_HEAP
  44. #define RT_USING_HEAP
  45. /* end of Memory Management */
  46. /* Kernel Device Object */
  47. #define RT_USING_DEVICE
  48. #define RT_USING_CONSOLE
  49. #define RT_CONSOLEBUF_SIZE 128
  50. #define RT_CONSOLE_DEVICE_NAME "uarths"
  51. /* end of Kernel Device Object */
  52. #define RT_VER_NUM 0x40101
  53. /* end of RT-Thread Kernel */
  54. #define ARCH_CPU_64BIT
  55. #define ARCH_RISCV
  56. #define ARCH_RISCV_FPU
  57. #define ARCH_RISCV_FPU_S
  58. #define ARCH_RISCV64
  59. /* RT-Thread Components */
  60. #define RT_USING_COMPONENTS_INIT
  61. #define RT_USING_USER_MAIN
  62. #define RT_MAIN_THREAD_STACK_SIZE 8192
  63. #define RT_MAIN_THREAD_PRIORITY 10
  64. #define RT_USING_MSH
  65. #define RT_USING_FINSH
  66. #define FINSH_USING_MSH
  67. #define FINSH_THREAD_NAME "tshell"
  68. #define FINSH_THREAD_PRIORITY 20
  69. #define FINSH_THREAD_STACK_SIZE 16384
  70. #define FINSH_USING_HISTORY
  71. #define FINSH_HISTORY_LINES 5
  72. #define FINSH_USING_SYMTAB
  73. #define FINSH_CMD_SIZE 80
  74. #define MSH_USING_BUILT_IN_COMMANDS
  75. #define FINSH_USING_DESCRIPTION
  76. #define FINSH_ARG_MAX 10
  77. #define RT_USING_DFS
  78. #define DFS_USING_POSIX
  79. #define DFS_USING_WORKDIR
  80. #define DFS_FILESYSTEMS_MAX 16
  81. #define DFS_FILESYSTEM_TYPES_MAX 16
  82. #define DFS_FD_MAX 64
  83. #define RT_USING_DFS_ELMFAT
  84. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  85. #define RT_DFS_ELM_CODE_PAGE 437
  86. #define RT_DFS_ELM_WORD_ACCESS
  87. #define RT_DFS_ELM_USE_LFN_3
  88. #define RT_DFS_ELM_USE_LFN 3
  89. #define RT_DFS_ELM_LFN_UNICODE_0
  90. #define RT_DFS_ELM_LFN_UNICODE 0
  91. #define RT_DFS_ELM_MAX_LFN 255
  92. #define RT_DFS_ELM_DRIVES 2
  93. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  94. #define RT_DFS_ELM_REENTRANT
  95. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  96. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  97. #define RT_USING_DFS_DEVFS
  98. /* Device Drivers */
  99. #define RT_USING_DEVICE_IPC
  100. #define RT_USING_SYSTEM_WORKQUEUE
  101. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  102. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  103. #define RT_USING_SERIAL
  104. #define RT_USING_SERIAL_V1
  105. #define RT_SERIAL_USING_DMA
  106. #define RT_SERIAL_RB_BUFSZ 64
  107. #define RT_USING_HWTIMER
  108. #define RT_USING_I2C
  109. #define RT_USING_PIN
  110. #define RT_USING_PWM
  111. #define RT_USING_RTC
  112. #define RT_USING_SPI
  113. #define RT_USING_SPI_MSD
  114. #define RT_USING_SFUD
  115. #define RT_SFUD_USING_SFDP
  116. #define RT_SFUD_USING_FLASH_INFO_TABLE
  117. #define RT_SFUD_SPI_MAX_HZ 50000000
  118. #define RT_DEBUG_SFUD
  119. #define RT_USING_WDT
  120. #define RT_USING_AUDIO
  121. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  122. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  123. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  124. #define RT_USING_WIFI
  125. #define RT_WLAN_DEVICE_STA_NAME "wlan0"
  126. #define RT_WLAN_DEVICE_AP_NAME "wlan1"
  127. #define RT_WLAN_SSID_MAX_LENGTH 32
  128. #define RT_WLAN_PASSWORD_MAX_LENGTH 32
  129. #define RT_WLAN_DEV_EVENT_NUM 2
  130. #define RT_WLAN_MANAGE_ENABLE
  131. #define RT_WLAN_SCAN_WAIT_MS 10000
  132. #define RT_WLAN_CONNECT_WAIT_MS 10000
  133. #define RT_WLAN_SCAN_SORT
  134. #define RT_WLAN_MSH_CMD_ENABLE
  135. #define RT_WLAN_AUTO_CONNECT_ENABLE
  136. #define AUTO_CONNECTION_PERIOD_MS 2000
  137. #define RT_WLAN_CFG_ENABLE
  138. #define RT_WLAN_CFG_INFO_MAX 3
  139. #define RT_WLAN_PROT_ENABLE
  140. #define RT_WLAN_PROT_NAME_LEN 8
  141. #define RT_WLAN_PROT_MAX 2
  142. #define RT_WLAN_DEFAULT_PROT "lwip"
  143. #define RT_WLAN_PROT_LWIP_ENABLE
  144. #define RT_WLAN_PROT_LWIP_NAME "lwip"
  145. #define RT_WLAN_WORK_THREAD_ENABLE
  146. #define RT_WLAN_WORKQUEUE_THREAD_NAME "wlan"
  147. #define RT_WLAN_WORKQUEUE_THREAD_SIZE 2048
  148. #define RT_WLAN_WORKQUEUE_THREAD_PRIO 15
  149. /* Using USB */
  150. /* end of Using USB */
  151. /* end of Device Drivers */
  152. /* C/C++ and POSIX layer */
  153. #define RT_LIBC_DEFAULT_TIMEZONE 8
  154. /* POSIX (Portable Operating System Interface) layer */
  155. #define RT_USING_POSIX_DELAY
  156. #define RT_USING_POSIX_CLOCK
  157. #define RT_USING_POSIX_TIMER
  158. /* Interprocess Communication (IPC) */
  159. /* Socket is in the 'Network' category */
  160. /* end of Interprocess Communication (IPC) */
  161. /* end of POSIX (Portable Operating System Interface) layer */
  162. #define RT_USING_CPLUSPLUS
  163. /* end of C/C++ and POSIX layer */
  164. /* Network */
  165. #define RT_USING_SAL
  166. #define SAL_INTERNET_CHECK
  167. /* Docking with protocol stacks */
  168. #define SAL_USING_LWIP
  169. /* end of Docking with protocol stacks */
  170. #define SAL_USING_POSIX
  171. #define RT_USING_NETDEV
  172. #define NETDEV_USING_IFCONFIG
  173. #define NETDEV_USING_PING
  174. #define NETDEV_USING_NETSTAT
  175. #define NETDEV_USING_AUTO_DEFAULT
  176. #define NETDEV_IPV4 1
  177. #define NETDEV_IPV6 0
  178. #define RT_USING_LWIP
  179. #define RT_USING_LWIP203
  180. #define RT_USING_LWIP_VER_NUM 0x20003
  181. #define RT_LWIP_MEM_ALIGNMENT 8
  182. #define RT_LWIP_IGMP
  183. #define RT_LWIP_ICMP
  184. #define RT_LWIP_DNS
  185. #define RT_LWIP_DHCP
  186. #define IP_SOF_BROADCAST 1
  187. #define IP_SOF_BROADCAST_RECV 1
  188. /* Static IPv4 Address */
  189. #define RT_LWIP_IPADDR "192.168.1.30"
  190. #define RT_LWIP_GWADDR "192.168.1.1"
  191. #define RT_LWIP_MSKADDR "255.255.255.0"
  192. /* end of Static IPv4 Address */
  193. #define RT_LWIP_UDP
  194. #define RT_LWIP_TCP
  195. #define RT_LWIP_RAW
  196. #define RT_MEMP_NUM_NETCONN 8
  197. #define RT_LWIP_PBUF_NUM 16
  198. #define RT_LWIP_RAW_PCB_NUM 4
  199. #define RT_LWIP_UDP_PCB_NUM 4
  200. #define RT_LWIP_TCP_PCB_NUM 4
  201. #define RT_LWIP_TCP_SEG_NUM 40
  202. #define RT_LWIP_TCP_SND_BUF 8196
  203. #define RT_LWIP_TCP_WND 8196
  204. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  205. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  206. #define RT_LWIP_TCPTHREAD_STACKSIZE 2048
  207. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  208. #define RT_LWIP_ETHTHREAD_STACKSIZE 2048
  209. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  210. #define LWIP_NETIF_STATUS_CALLBACK 1
  211. #define LWIP_NETIF_LINK_CALLBACK 1
  212. #define SO_REUSE 1
  213. #define LWIP_SO_RCVTIMEO 1
  214. #define LWIP_SO_SNDTIMEO 1
  215. #define LWIP_SO_RCVBUF 1
  216. #define LWIP_SO_LINGER 0
  217. #define LWIP_NETIF_LOOPBACK 0
  218. #define RT_LWIP_USING_PING
  219. /* end of Network */
  220. /* Utilities */
  221. #define RT_USING_ULOG
  222. #define ULOG_OUTPUT_LVL_D
  223. #define ULOG_OUTPUT_LVL 7
  224. #define ULOG_ASSERT_ENABLE
  225. #define ULOG_LINE_BUF_SIZE 128
  226. /* log format */
  227. #define ULOG_USING_COLOR
  228. #define ULOG_OUTPUT_TIME
  229. #define ULOG_OUTPUT_LEVEL
  230. #define ULOG_OUTPUT_TAG
  231. /* end of log format */
  232. #define ULOG_BACKEND_USING_CONSOLE
  233. /* end of Utilities */
  234. /* end of RT-Thread Components */
  235. /* RT-Thread online packages */
  236. /* IoT - internet of things */
  237. /* Wi-Fi */
  238. /* Marvell WiFi */
  239. /* end of Marvell WiFi */
  240. /* Wiced WiFi */
  241. /* end of Wiced WiFi */
  242. /* end of Wi-Fi */
  243. /* IoT Cloud */
  244. /* end of IoT Cloud */
  245. /* end of IoT - internet of things */
  246. /* security packages */
  247. /* end of security packages */
  248. /* language packages */
  249. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  250. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  251. /* XML: Extensible Markup Language */
  252. /* end of XML: Extensible Markup Language */
  253. /* end of language packages */
  254. /* multimedia packages */
  255. /* LVGL: powerful and easy-to-use embedded GUI library */
  256. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  257. /* u8g2: a monochrome graphic library */
  258. /* end of u8g2: a monochrome graphic library */
  259. /* end of multimedia packages */
  260. /* tools packages */
  261. /* end of tools packages */
  262. /* system packages */
  263. /* enhanced kernel services */
  264. /* end of enhanced kernel services */
  265. /* acceleration: Assembly language or algorithmic acceleration packages */
  266. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  267. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  268. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  269. /* Micrium: Micrium software products porting for RT-Thread */
  270. /* end of Micrium: Micrium software products porting for RT-Thread */
  271. /* end of system packages */
  272. /* peripheral libraries and drivers */
  273. /* sensors drivers */
  274. /* end of sensors drivers */
  275. /* touch drivers */
  276. /* end of touch drivers */
  277. /* Kendryte SDK */
  278. #define PKG_USING_KENDRYTE_SDK
  279. #define PKG_USING_KENDRYTE_SDK_V057
  280. #define PKG_KENDRYTE_SDK_VERNUM 0x0057
  281. /* end of Kendryte SDK */
  282. /* end of peripheral libraries and drivers */
  283. /* AI packages */
  284. /* end of AI packages */
  285. /* Signal Processing and Control Algorithm Packages */
  286. /* end of Signal Processing and Control Algorithm Packages */
  287. /* miscellaneous packages */
  288. /* project laboratory */
  289. /* end of project laboratory */
  290. /* samples: kernel and components samples */
  291. /* end of samples: kernel and components samples */
  292. /* entertainment: terminal games and other interesting software packages */
  293. /* end of entertainment: terminal games and other interesting software packages */
  294. /* end of miscellaneous packages */
  295. /* Arduino libraries */
  296. /* Projects */
  297. /* end of Projects */
  298. /* Sensors */
  299. /* end of Sensors */
  300. /* Display */
  301. /* end of Display */
  302. /* Timing */
  303. /* end of Timing */
  304. /* Data Processing */
  305. /* end of Data Processing */
  306. /* Data Storage */
  307. /* Communication */
  308. /* end of Communication */
  309. /* Device Control */
  310. /* end of Device Control */
  311. /* Other */
  312. /* end of Other */
  313. /* Signal IO */
  314. /* end of Signal IO */
  315. /* Uncategorized */
  316. /* end of Arduino libraries */
  317. /* end of RT-Thread online packages */
  318. #define BOARD_K210_EVB
  319. /* Hardware Drivers Config */
  320. /* IO Groups Power Supply Settings */
  321. #define BSP_GROUPA_POWER_SUPPLY_1V8
  322. #define BSP_GROUPB_POWER_SUPPLY_3V3
  323. #define BSP_GROUPC_POWER_SUPPLY_3V3
  324. /* end of IO Groups Power Supply Settings */
  325. #define BSP_USING_UART_HS
  326. /* General Purpose UARTs */
  327. /* end of General Purpose UARTs */
  328. #define BSP_USING_SPI1
  329. #define BSP_SPI1_CLK_PIN 21
  330. #define BSP_SPI1_D0_PIN 19
  331. #define BSP_SPI1_D1_PIN 20
  332. #define BSP_SPI1_USING_SS0
  333. #define BSP_SPI1_SS0_PIN 25
  334. #define BSP_SPI1_USING_SS1
  335. #define BSP_SPI1_SS1_PIN 22
  336. #define BSP_USING_LCD
  337. #define BSP_LCD_CS_PIN 43
  338. #define BSP_LCD_WR_PIN 45
  339. #define BSP_LCD_DC_PIN 44
  340. #define BSP_LCD_RST_PIN 41
  341. #define BSP_LCD_BACKLIGHT_PIN 47
  342. #define BSP_LCD_BACKLIGHT_ACTIVE_HIGH
  343. #define BSP_LCD_CLK_FREQ 18000000
  344. #define BSP_BOARD_K210_DRACO
  345. #define BSP_LCD_X_MAX 240
  346. #define BSP_LCD_Y_MAX 320
  347. #define BSP_USING_CAMERA
  348. #define CAMERA_USING_OTHER
  349. #define BSP_CAMERA_SCCB_SDA_PIN 15
  350. #define BSP_CAMERA_SCCB_SDA0_PIN 0
  351. #define BSP_CAMERA_SCCB_SCLK_PIN 14
  352. #define BSP_CAMERA_CMOS_RST_PIN 13
  353. #define BSP_CAMERA_CMOS_VSYNC_PIN 12
  354. #define BSP_CAMERA_CMOS_PWDN_PIN 11
  355. #define BSP_CAMERA_CMOS_XCLK_PIN 9
  356. #define BSP_CAMERA_CMOS_PCLK_PIN 8
  357. #define BSP_CAMERA_CMOS_HREF_PIN 10
  358. /* end of Hardware Drivers Config */
  359. #define __STACKSIZE__ 4096
  360. #define RT_AI_USE_K210
  361. /* mpy-extmods */
  362. /* end of mpy-extmods */
  363. #endif