Kconfig 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6E00
  3. bool
  4. select SOC_SERIES_HPM6E00
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USING_ENET_PHY_RTL8211
  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_BUFSIZE
  34. int "Set UART0 RX buffer size"
  35. range 64 65535
  36. depends on RT_USING_SERIAL_V2
  37. default 128
  38. config BSP_UART0_TX_BUFSIZE
  39. int "Set UART0 TX buffer size"
  40. range 0 65535
  41. depends on RT_USING_SERIAL_V2
  42. default 0
  43. endif
  44. menuconfig BSP_USING_UART1
  45. bool "Enable UART1"
  46. default y
  47. if BSP_USING_UART1
  48. config BSP_UART1_RX_USING_DMA
  49. bool "Enable UART1 RX DMA"
  50. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  51. default n
  52. config BSP_UART1_TX_USING_DMA
  53. bool "Enable UART1 TX DMA"
  54. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  55. default n
  56. config BSP_UART1_RX_BUFSIZE
  57. int "Set UART1 RX buffer size"
  58. range 64 65535
  59. depends on RT_USING_SERIAL_V2
  60. default 1024
  61. config BSP_UART1_TX_BUFSIZE
  62. int "Set UART1 TX buffer size"
  63. range 0 65535
  64. depends on RT_USING_SERIAL_V2
  65. default 0
  66. endif
  67. endif
  68. menuconfig BSP_USING_SPI
  69. bool "Enable SPI"
  70. default n
  71. select RT_USING_SPI if BSP_USING_SPI
  72. if BSP_USING_SPI
  73. config BSP_USING_SPI7
  74. bool "Enable SPI7"
  75. default n
  76. if BSP_USING_SPI7
  77. config BSP_SPI7_USING_DMA
  78. bool "Enable SPI7 DMA"
  79. default n
  80. choice
  81. prompt "Select SPI7 CS TYPE"
  82. default BSP_SPI7_USING_SOFT_CS
  83. config BSP_SPI7_USING_SOFT_CS
  84. bool "Enable SPI7 software cs"
  85. config BSP_SPI7_USING_HARD_CS
  86. bool "Enable SPI7 hardware cs"
  87. endchoice
  88. endif
  89. endif
  90. menuconfig BSP_USING_RTC
  91. bool "Enable RTC"
  92. default n
  93. menuconfig BSP_USING_ETH
  94. bool "Enable Ethernet"
  95. default n
  96. select RT_USING_ETH
  97. if BSP_USING_ETH
  98. choice
  99. prompt "ETH"
  100. default BSP_USING_ETH0
  101. config BSP_USING_ETH0
  102. bool "Enable ETH0"
  103. select BSP_USING_ENET_PHY_RTL8211
  104. endchoice
  105. endif
  106. menuconfig BSP_USING_GPTMR
  107. bool "Enable GPTMR"
  108. default n
  109. select RT_USING_HWTIMER if BSP_USING_GPTMR
  110. if BSP_USING_GPTMR
  111. config BSP_USING_GPTMR0
  112. bool "Enable GPTMR0"
  113. default n
  114. config BSP_USING_GPTMR1
  115. bool "Enable GPTMR1"
  116. default n
  117. config BSP_USING_GPTMR2
  118. bool "Enable GPTMR2"
  119. default n
  120. config BSP_USING_GPTMR3
  121. bool "Enable GPTMR3"
  122. default n
  123. config BSP_USING_GPTMR4
  124. bool "Enable GPTMR4"
  125. default n
  126. config BSP_USING_GPTMR5
  127. bool "Enable GPTMR5"
  128. default n
  129. config BSP_USING_GPTMR6
  130. bool "Enable GPTMR6"
  131. default n
  132. config BSP_USING_GPTMR7
  133. bool "Enable GPTMR7"
  134. default n
  135. endif
  136. menuconfig BSP_USING_I2C
  137. bool "Enable I2C"
  138. default n
  139. select RT_USING_I2C if BSP_USING_I2C
  140. if BSP_USING_I2C
  141. config BSP_USING_I2C0
  142. bool "Enable I2C0"
  143. default y
  144. config BSP_USING_I2C1
  145. bool "Enable I2C1"
  146. default n
  147. config BSP_USING_I2C3
  148. bool "Enable I2C3"
  149. default n
  150. endif
  151. if BSP_USING_I2C0
  152. config BSP_I2C0_USING_DMA
  153. bool "Enable I2C0 DMA"
  154. default n
  155. endif
  156. if BSP_USING_I2C1
  157. config BSP_I2C1_USING_DMA
  158. bool "Enable I2C1 DMA"
  159. default n
  160. endif
  161. if BSP_USING_I2C3
  162. config BSP_I2C3_USING_DMA
  163. bool "Enable I2C3 DMA"
  164. default n
  165. endif
  166. menuconfig BSP_USING_XPI_FLASH
  167. bool "Enable XPI FLASH"
  168. default n
  169. select RT_USING_FAL if BSP_USING_XPI_FLASH
  170. menuconfig BSP_USING_DAO
  171. bool "Enable Audio DAO play"
  172. default n
  173. select RT_USING_AUDIO if BSP_USING_DAO
  174. menuconfig BSP_USING_PDM
  175. bool "Enable Audio PDM record"
  176. default n
  177. select RT_USING_AUDIO if BSP_USING_PDM
  178. menuconfig BSP_USING_I2S
  179. bool "Enable Audio I2S device"
  180. default n
  181. select RT_USING_AUDIO if BSP_USING_I2S
  182. if BSP_USING_I2S
  183. config BSP_USING_I2S3
  184. bool "Enable I2S3"
  185. default y
  186. config BSP_USING_AUDIO_CODEC_WM8960
  187. bool "Enable audio codec on board"
  188. default y
  189. endif
  190. menuconfig BSP_USING_USB
  191. bool "Enable USB"
  192. default n
  193. if BSP_USING_USB
  194. config BSP_USING_USB_DEVICE
  195. bool "Enable USB Device"
  196. default n
  197. config BSP_USING_USB_HOST
  198. bool "Enable USB Host"
  199. select RT_USING_CACHE
  200. default n
  201. endif
  202. menuconfig BSP_USING_EWDG
  203. bool "Enable EWDG"
  204. default n
  205. select RT_USING_WDT if BSP_USING_EWDG
  206. if BSP_USING_EWDG
  207. config BSP_USING_EWDG0
  208. bool "Enable EWDG0"
  209. default n
  210. config BSP_USING_EWDG1
  211. bool "Enable EWDG1"
  212. default n
  213. endif
  214. menuconfig BSP_USING_PWMV2
  215. bool "Enable PWM"
  216. default n
  217. menuconfig BSP_USING_MCAN
  218. bool "Enable MCAN"
  219. default n
  220. select RT_USING_CAN if BSP_USING_MCAN
  221. if BSP_USING_MCAN
  222. config BSP_USING_MCAN0
  223. bool "Enable MCAN0"
  224. default n
  225. config BSP_USING_MCAN1
  226. bool "Enable MCAN1"
  227. default n
  228. config BSP_USING_MCAN2
  229. bool "Enable MCAN2"
  230. default n
  231. config BSP_USING_MCAN3
  232. bool "Enable MCAN3"
  233. default n
  234. config BSP_USING_MCAN4
  235. bool "Enable MCAN4"
  236. default n
  237. config BSP_USING_MCAN5
  238. bool "Enable MCAN5"
  239. default n
  240. config BSP_USING_MCAN6
  241. bool "Enable MCAN6"
  242. default n
  243. config BSP_USING_MCAN7
  244. bool "Enable MCAN7"
  245. default n
  246. endif
  247. menuconfig BSP_USING_ADC
  248. bool "Enable ADC"
  249. default n
  250. select RT_USING_ADC if BSP_USING_ADC
  251. if BSP_USING_ADC
  252. menuconfig BSP_USING_ADC12
  253. bool "Enable ADC12"
  254. default n
  255. if BSP_USING_ADC12
  256. config BSP_USING_ADC0
  257. bool "Enable ADC0"
  258. default n
  259. config BSP_USING_ADC1
  260. bool "Enable ADC1"
  261. default n
  262. config BSP_USING_ADC2
  263. bool "Enable ADC2"
  264. default n
  265. endif
  266. menuconfig BSP_USING_ADC16
  267. bool "Enable ADC16"
  268. default n
  269. if BSP_USING_ADC16
  270. config BSP_USING_ADC0
  271. bool "Enable ADC0"
  272. default n
  273. endif
  274. endif
  275. endmenu
  276. endmenu