Kconfig 11 KB

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