Kconfig 11 KB

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