Kconfig 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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_UART2
  52. bool "Enable UART2"
  53. default n
  54. if BSP_USING_UART2
  55. config BSP_UART2_RX_USING_DMA
  56. bool "Enable UART2 RX DMA"
  57. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  58. default n
  59. config BSP_UART2_TX_USING_DMA
  60. bool "Enable UART2 TX DMA"
  61. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  62. default n
  63. config BSP_UART2_RX_DMA_CHANNEL
  64. int "Set UART2 RX DMA CHANNEL"
  65. range 0 7
  66. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  67. default 0
  68. config BSP_UART2_TX_DMA_CHANNEL
  69. int "Set UART2 TX DMA CHANNEL"
  70. range 0 7
  71. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  72. default 1
  73. config BSP_UART2_RX_BUFSIZE
  74. int "Set UART2 RX buffer size"
  75. range 64 65535
  76. depends on RT_USING_SERIAL_V2
  77. default 1024
  78. config BSP_UART2_TX_BUFSIZE
  79. int "Set UART2 TX buffer size"
  80. range 0 65535
  81. depends on RT_USING_SERIAL_V2
  82. default 0
  83. endif
  84. menuconfig BSP_USING_UART6
  85. bool "Enable UART6"
  86. default n
  87. if BSP_USING_UART6
  88. config BSP_UART6_RX_USING_DMA
  89. bool "Enable UART6 RX DMA"
  90. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  91. default n
  92. config BSP_UART6_TX_USING_DMA
  93. bool "Enable UART6 TX DMA"
  94. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  95. default n
  96. config BSP_UART6_RX_DMA_CHANNEL
  97. int "Set UART6 RX DMA CHANNEL"
  98. range 0 7
  99. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  100. default 0
  101. config BSP_UART6_TX_DMA_CHANNEL
  102. int "Set UART6 TX DMA CHANNEL"
  103. range 0 7
  104. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  105. default 1
  106. config BSP_UART6_RX_BUFSIZE
  107. int "Set UART6 RX buffer size"
  108. range 64 65535
  109. depends on RT_USING_SERIAL_V2
  110. default 1024
  111. config BSP_UART6_TX_BUFSIZE
  112. int "Set UART6 TX buffer size"
  113. range 0 65535
  114. depends on RT_USING_SERIAL_V2
  115. default 0
  116. endif
  117. endif
  118. menuconfig BSP_USING_SPI
  119. bool "Enable SPI"
  120. default n
  121. select RT_USING_SPI if BSP_USING_SPI
  122. if BSP_USING_SPI
  123. config BSP_USING_SPI1
  124. bool "Enable SPI1"
  125. default y
  126. config BSP_USING_SPI2
  127. bool "Enable SPI2"
  128. default n
  129. config BSP_USING_SPI3
  130. bool "Enable SPI3"
  131. default n
  132. endif
  133. menuconfig BSP_USING_RTC
  134. bool "Enable RTC"
  135. default n
  136. menuconfig BSP_USING_ETH
  137. bool "Enable Ethernet"
  138. default n
  139. select RT_USING_ETH
  140. if BSP_USING_ETH
  141. choice
  142. prompt "ETH"
  143. config BSP_USING_ETH0
  144. bool "Enable ETH0"
  145. endchoice
  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. endif
  156. menuconfig BSP_USING_GPTMR
  157. bool "Enable GPTMR"
  158. default n
  159. select RT_USING_HWTIMER if BSP_USING_GPTMR
  160. if BSP_USING_GPTMR
  161. config BSP_USING_GPTMR0
  162. bool "Enable GPTMR0"
  163. default n
  164. config BSP_USING_GPTMR1
  165. bool "Enable GPTMR1"
  166. default n
  167. config BSP_USING_GPTMR2
  168. bool "Enable GPTMR2"
  169. default n
  170. endif
  171. menuconfig BSP_USING_I2C
  172. bool "Enable I2C"
  173. default n
  174. if BSP_USING_I2C
  175. config BSP_USING_I2C0
  176. bool "Enable I2C0"
  177. default y
  178. config BSP_USING_I2C3
  179. bool "Enable I2C3"
  180. default n
  181. endif
  182. menuconfig BSP_USING_XPI_FLASH
  183. bool "Enable XPI FLASH"
  184. default n
  185. select PKG_USING_FAL if BSP_USING_XPI_FLASH
  186. menuconfig BSP_USING_PWM
  187. bool "Enable PWM"
  188. default n
  189. menuconfig BSP_USING_USB
  190. bool "Enable USB"
  191. default n
  192. if BSP_USING_USB
  193. config BSP_USING_USB_DEVICE
  194. bool "Enable USB Device"
  195. default n
  196. config BSP_USING_USB_HOST
  197. bool "Enable USB HOST"
  198. default n
  199. endif
  200. menuconfig BSP_USING_WDG
  201. bool "Enable Watchdog"
  202. default n
  203. select RT_USING_WDT if BSP_USING_WDG
  204. if BSP_USING_WDG
  205. config BSP_USING_WDG0
  206. bool "Enable WDG0"
  207. default n
  208. config BSP_USING_WDG1
  209. bool "Enable WDG1"
  210. default n
  211. endif
  212. menuconfig BSP_USING_MCAN
  213. bool "Enable MCAN"
  214. default n
  215. select RT_USING_CAN if BSP_USING_MCAN
  216. if BSP_USING_MCAN
  217. config BSP_USING_MCAN0
  218. bool "Enable MCAN0"
  219. default n
  220. config BSP_USING_MCAN1
  221. bool "Enable MCAN1"
  222. default n
  223. config BSP_USING_MCAN2
  224. bool "Enable MCAN2"
  225. default n
  226. config BSP_USING_MCAN3
  227. bool "Enable MCAN3"
  228. default n
  229. endif
  230. menuconfig BSP_USING_ADC
  231. bool "Enable ADC"
  232. default n
  233. select RT_USING_ADC if BSP_USING_ADC
  234. if BSP_USING_ADC
  235. menuconfig BSP_USING_ADC16
  236. bool "Enable ADC16"
  237. default y
  238. if BSP_USING_ADC16
  239. config BSP_USING_ADC0
  240. bool "Enable ADC0"
  241. default y
  242. config BSP_USING_ADC1
  243. bool "Enable ADC1"
  244. default n
  245. config BSP_USING_ADC2
  246. bool "Enable ADC2"
  247. default n
  248. endif
  249. endif
  250. endmenu
  251. endmenu