Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6000
  3. bool
  4. select SOC_SERIES_HPM6000
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USING_ENET_PHY_RTL8201
  9. bool
  10. default n
  11. menu "On-chip Peripheral Drivers"
  12. config BSP_USING_GPIO
  13. bool "Enable GPIO"
  14. select RT_USING_PIN if BSP_USING_GPIO
  15. default n
  16. menuconfig BSP_USING_UART
  17. bool "Enable UART"
  18. default y
  19. select RT_USING_SERIAL
  20. if BSP_USING_UART
  21. menuconfig BSP_USING_UART0
  22. bool "Enable UART0 (Debugger)"
  23. default y
  24. if BSP_USING_UART0
  25. config BSP_UART0_RX_USING_DMA
  26. bool "Enable UART0 RX DMA"
  27. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  28. default n
  29. config BSP_UART0_TX_USING_DMA
  30. bool "Enable UART0 TX DMA"
  31. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  32. default n
  33. config BSP_UART0_RX_DMA_CHANNEL
  34. int "Set UART0 RX DMA CHANNEL"
  35. range 0 7
  36. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  37. default 0
  38. config BSP_UART0_TX_DMA_CHANNEL
  39. int "Set UART0 TX DMA CHANNEL"
  40. range 0 7
  41. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  42. default 1
  43. config BSP_UART0_RX_BUFSIZE
  44. int "Set UART0 RX buffer size"
  45. range 64 65535
  46. depends on RT_USING_SERIAL_V2
  47. default 128
  48. config BSP_UART0_TX_BUFSIZE
  49. int "Set UART0 TX buffer size"
  50. range 0 65535
  51. depends on RT_USING_SERIAL_V2
  52. default 0
  53. endif
  54. menuconfig BSP_USING_UART6
  55. bool "Enable UART6"
  56. default n
  57. if BSP_USING_UART6
  58. config BSP_UART6_RX_USING_DMA
  59. bool "Enable UART6 RX DMA"
  60. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  61. default n
  62. config BSP_UART6_TX_USING_DMA
  63. bool "Enable UART6 TX DMA"
  64. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  65. default n
  66. config BSP_UART6_RX_DMA_CHANNEL
  67. int "Set UART6 RX DMA CHANNEL"
  68. range 0 7
  69. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  70. default 0
  71. config BSP_UART6_TX_DMA_CHANNEL
  72. int "Set UART6 TX DMA CHANNEL"
  73. range 0 7
  74. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  75. default 1
  76. config BSP_UART6_RX_BUFSIZE
  77. int "Set UART6 RX buffer size"
  78. range 64 65535
  79. depends on RT_USING_SERIAL_V2
  80. default 128
  81. config BSP_UART6_TX_BUFSIZE
  82. int "Set UART6 TX buffer size"
  83. range 0 65535
  84. depends on RT_USING_SERIAL_V2
  85. default 0
  86. endif
  87. menuconfig BSP_USING_UART13
  88. bool "Enable UART13"
  89. default n
  90. if BSP_USING_UART13
  91. config BSP_UART13_RX_USING_DMA
  92. bool "Enable UART13 RX DMA"
  93. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  94. default n
  95. config BSP_UART13_TX_USING_DMA
  96. bool "Enable UART13 TX DMA"
  97. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  98. default n
  99. config BSP_UART13_RX_DMA_CHANNEL
  100. int "Set UART13 RX DMA CHANNEL"
  101. range 0 7
  102. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  103. default 0
  104. config BSP_UART13_TX_DMA_CHANNEL
  105. int "Set UART13 TX DMA CHANNEL"
  106. range 0 7
  107. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  108. default 1
  109. config BSP_UART13_RX_BUFSIZE
  110. int "Set UART13 RX buffer size"
  111. range 64 65535
  112. depends on RT_USING_SERIAL_V2
  113. default 128
  114. config BSP_UART13_TX_BUFSIZE
  115. int "Set UART13 TX buffer size"
  116. range 0 65535
  117. depends on RT_USING_SERIAL_V2
  118. default 0
  119. endif
  120. menuconfig BSP_USING_UART14
  121. bool "Enable UART14"
  122. default n
  123. if BSP_USING_UART14
  124. config BSP_UART14_RX_USING_DMA
  125. bool "Enable UART14 RX DMA"
  126. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  127. default n
  128. config BSP_UART14_TX_USING_DMA
  129. bool "Enable UART14 TX DMA"
  130. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  131. default n
  132. config BSP_UART14_RX_DMA_CHANNEL
  133. int "Set UART14 RX DMA CHANNEL"
  134. range 0 7
  135. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  136. default 0
  137. config BSP_UART14_TX_DMA_CHANNEL
  138. int "Set UART14 TX DMA CHANNEL"
  139. range 0 7
  140. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  141. default 1
  142. config BSP_UART14_RX_BUFSIZE
  143. int "Set UART14 RX buffer size"
  144. range 64 65535
  145. depends on RT_USING_SERIAL_V2
  146. default 128
  147. config BSP_UART14_TX_BUFSIZE
  148. int "Set UART14 TX buffer size"
  149. range 0 65535
  150. depends on RT_USING_SERIAL_V2
  151. default 0
  152. endif
  153. endif
  154. menuconfig BSP_USING_SPI
  155. bool "Enable SPI"
  156. default n
  157. select RT_USING_SPI if BSP_USING_SPI
  158. if BSP_USING_SPI
  159. config BSP_USING_SPI1
  160. bool "Enable SPI1"
  161. default y
  162. config BSP_USING_SPI2
  163. bool "Enable SPI2"
  164. default n
  165. config BSP_USING_SPI3
  166. bool "Enable SPI3"
  167. default n
  168. endif
  169. menuconfig BSP_USING_RTC
  170. bool "Enable RTC"
  171. default n
  172. menuconfig BSP_USING_ETH
  173. bool "Enable Ethernet"
  174. default n
  175. select RT_USING_ETH
  176. if BSP_USING_ETH
  177. choice
  178. prompt "ETH"
  179. default BSP_USING_ETH1
  180. config BSP_USING_ETH0
  181. bool "Enable ETH0"
  182. config BSP_USING_ETH1
  183. bool "Enable ETH1"
  184. select BSP_USING_ENET_PHY_RTL8201
  185. endchoice
  186. endif
  187. menuconfig BSP_USING_SDXC
  188. bool "Enable SDXC"
  189. default n
  190. select RT_USING_SDIO if BSP_USING_SDXC
  191. if BSP_USING_SDXC
  192. config BSP_USING_SDXC0
  193. bool "Enable SDXC0"
  194. default n
  195. config BSP_USING_SDXC1
  196. bool "Enable SDXC1"
  197. default y
  198. endif
  199. menuconfig BSP_USING_TOUCH
  200. bool "Enable touch"
  201. default n
  202. if BSP_USING_TOUCH
  203. config BSP_USING_TOUCH_GT911
  204. bool "Enable GT911"
  205. default y
  206. config BSP_USING_TOUCH_FT5406
  207. bool "Enable FT5406"
  208. default n
  209. endif
  210. menuconfig BSP_USING_LCD
  211. bool "Enable LCD"
  212. default n
  213. menuconfig BSP_USING_LVGL
  214. bool "Enable LVGL"
  215. default n
  216. select PKG_USING_LVGL if BSP_USING_LVGL
  217. select BSP_USING_PDMA if BSP_USING_LVGL
  218. menuconfig BSP_USING_PDMA
  219. bool "Enable PDMA Driver"
  220. default n
  221. menuconfig BSP_USING_GPTMR
  222. bool "Enable GPTMR"
  223. default n
  224. select RT_USING_HWTIMER if BSP_USING_GPTMR
  225. if BSP_USING_GPTMR
  226. config BSP_USING_GPTMR1
  227. bool "Enable GPTMR1"
  228. default n
  229. config BSP_USING_GPTMR2
  230. bool "Enable GPTMR2"
  231. default n
  232. config BSP_USING_GPTMR3
  233. bool "Enable GPTMR3"
  234. default n
  235. config BSP_USING_GPTMR4
  236. bool "Enable GPTMR4"
  237. default n
  238. config BSP_USING_GPTMR5
  239. bool "Enable GPTMR5"
  240. default n
  241. config BSP_USING_GPTMR6
  242. bool "Enable GPTMR6"
  243. default n
  244. config BSP_USING_GPTMR7
  245. bool "Enable GPTMR7"
  246. default n
  247. endif
  248. menuconfig BSP_USING_I2C
  249. bool "Enable I2C"
  250. default n
  251. select RT_USING_I2C if BSP_USING_I2C
  252. if BSP_USING_I2C
  253. config BSP_USING_I2C0
  254. bool "Enable I2C0"
  255. default y
  256. endif
  257. menuconfig BSP_USING_FEMC
  258. bool "Enable DRAM"
  259. default y
  260. menuconfig INIT_EXT_RAM_FOR_DATA
  261. bool "INIT_EXT_RAM_FOR_DATA"
  262. default y
  263. menuconfig BSP_USING_XPI_FLASH
  264. bool "Enable XPI FLASH"
  265. default n
  266. select PKG_USING_FAL if BSP_USING_XPI_FLASH
  267. menuconfig BSP_USING_PWM
  268. bool "Enable PWM"
  269. default n
  270. menuconfig BSP_USING_DAO
  271. bool "Enable Audio DAO play"
  272. default n
  273. select RT_USING_AUDIO if BSP_USING_DAO
  274. menuconfig BSP_USING_PDM
  275. bool "Enable Audio PDM record"
  276. default n
  277. select RT_USING_AUDIO if BSP_USING_PDM
  278. menuconfig BSP_USING_I2S
  279. bool "Enable Audio I2S device"
  280. default n
  281. select RT_USING_AUDIO if BSP_USING_I2S
  282. if BSP_USING_I2S
  283. config BSP_USING_I2S0
  284. bool "Enable I2S0"
  285. default y
  286. endif
  287. menuconfig BSP_USING_USB
  288. bool "Enable USB"
  289. default n
  290. if BSP_USING_USB
  291. config BSP_USING_USB_DEVICE
  292. bool "Enable USB Device"
  293. default n
  294. config BSP_USING_USB_HOST
  295. bool "Enable USB Host"
  296. default n
  297. endif
  298. menuconfig BSP_USING_WDG
  299. bool "Enable Watchdog"
  300. default n
  301. select RT_USING_WDT if BSP_USING_WDG
  302. if BSP_USING_WDG
  303. config BSP_USING_WDG0
  304. bool "Enable WDG0"
  305. default n
  306. config BSP_USING_WDG1
  307. bool "Enable WDG1"
  308. default n
  309. config BSP_USING_WDG2
  310. bool "Enable WDG2"
  311. default n
  312. config BSP_USING_WDG3
  313. bool "Enable WDG3"
  314. default n
  315. endif
  316. menuconfig BSP_USING_CAN
  317. bool "Enable CAN"
  318. default n
  319. select RT_USING_CAN if BSP_USING_CAN
  320. if BSP_USING_CAN
  321. config BSP_USING_CAN0
  322. bool "Enable CAN0"
  323. default n
  324. config BSP_USING_CAN1
  325. bool "Enable CAN1"
  326. default n
  327. config BSP_USING_CAN2
  328. bool "Enable CAN2"
  329. default n
  330. config BSP_USING_CAN3
  331. bool "Enable CAN3"
  332. default n
  333. endif
  334. menuconfig BSP_USING_ADC
  335. bool "Enable ADC"
  336. default n
  337. select RT_USING_ADC if BSP_USING_ADC
  338. if BSP_USING_ADC
  339. menuconfig BSP_USING_ADC12
  340. bool "Enable ADC12"
  341. default n
  342. if BSP_USING_ADC12
  343. config BSP_USING_ADC0
  344. bool "Enable ADC0"
  345. default n
  346. config BSP_USING_ADC1
  347. bool "Enable ADC1"
  348. default n
  349. config BSP_USING_ADC2
  350. bool "Enable ADC2"
  351. default n
  352. endif
  353. menuconfig BSP_USING_ADC16
  354. bool "Enable ADC16"
  355. default n
  356. if BSP_USING_ADC16
  357. config BSP_USING_ADC3
  358. bool "Enable ADC3"
  359. default n
  360. endif
  361. endif
  362. endmenu
  363. endmenu