Kconfig 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6200
  3. bool
  4. select SOC_HPM6200_SERIES
  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_BUFSIZE
  31. int "Set UART0 RX buffer size"
  32. range 64 65535
  33. depends on RT_USING_SERIAL_V2
  34. default 128
  35. config BSP_UART0_TX_BUFSIZE
  36. int "Set UART0 TX buffer size"
  37. range 0 65535
  38. depends on RT_USING_SERIAL_V2
  39. default 0
  40. endif
  41. menuconfig BSP_USING_UART2
  42. bool "Enable UART2"
  43. default y
  44. if BSP_USING_UART2
  45. config BSP_UART2_RX_USING_DMA
  46. bool "Enable UART2 RX DMA"
  47. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  48. default y
  49. config BSP_UART2_TX_USING_DMA
  50. bool "Enable UART2 TX DMA"
  51. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_UART2_RX_BUFSIZE
  54. int "Set UART2 RX buffer size"
  55. range 64 65535
  56. depends on RT_USING_SERIAL_V2
  57. default 1024
  58. config BSP_UART2_TX_BUFSIZE
  59. int "Set UART2 TX buffer size"
  60. range 0 65535
  61. depends on RT_USING_SERIAL_V2
  62. default 0
  63. endif
  64. menuconfig BSP_USING_UART6
  65. bool "Enable UART6"
  66. default n
  67. if BSP_USING_UART6
  68. config BSP_UART6_RX_USING_DMA
  69. bool "Enable UART6 RX DMA"
  70. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  71. default n
  72. config BSP_UART6_TX_USING_DMA
  73. bool "Enable UART6 TX DMA"
  74. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  75. default n
  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 1024
  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. endif
  88. menuconfig BSP_USING_SPI
  89. bool "Enable SPI"
  90. default n
  91. select RT_USING_SPI if BSP_USING_SPI
  92. if BSP_USING_SPI
  93. config BSP_USING_SPI1
  94. bool "Enable SPI1"
  95. default y
  96. if BSP_USING_SPI1
  97. config BSP_SPI1_USING_DMA
  98. bool "Enable SPI1 DMA"
  99. default n
  100. endif
  101. config BSP_USING_SPI2
  102. bool "Enable SPI2"
  103. default n
  104. if BSP_USING_SPI2
  105. config BSP_SPI2_USING_DMA
  106. bool "Enable SPI2 DMA"
  107. default n
  108. endif
  109. config BSP_USING_SPI3
  110. bool "Enable SPI3"
  111. default n
  112. if BSP_USING_SPI3
  113. config BSP_SPI3_USING_DMA
  114. bool "Enable SPI3 DMA"
  115. default n
  116. endif
  117. endif
  118. menuconfig BSP_USING_RTC
  119. bool "Enable RTC"
  120. default n
  121. menuconfig BSP_USING_GPTMR
  122. bool "Enable GPTMR"
  123. default n
  124. select RT_USING_HWTIMER if BSP_USING_GPTMR
  125. if BSP_USING_GPTMR
  126. config BSP_USING_GPTMR1
  127. bool "Enable GPTMR1"
  128. default n
  129. config BSP_USING_GPTMR2
  130. bool "Enable GPTMR2"
  131. default n
  132. config BSP_USING_GPTMR3
  133. bool "Enable GPTMR3"
  134. default n
  135. endif
  136. menuconfig BSP_USING_I2C
  137. bool "Enable I2C"
  138. default n
  139. if BSP_USING_I2C
  140. config BSP_USING_I2C0
  141. bool "Enable I2C0"
  142. default y
  143. if BSP_USING_I2C0
  144. config BSP_I2C0_USING_DMA
  145. bool "Enable I2C0 DMA"
  146. default n
  147. endif
  148. config BSP_USING_I2C3
  149. bool "Enable I2C3"
  150. default n
  151. if BSP_USING_I2C3
  152. config BSP_I2C3_USING_DMA
  153. bool "Enable I2C3 DMA"
  154. default n
  155. endif
  156. endif
  157. menuconfig BSP_USING_XPI_FLASH
  158. bool "Enable XPI FLASH"
  159. default n
  160. select RT_USING_FAL if BSP_USING_XPI_FLASH
  161. menuconfig BSP_USING_PWM
  162. bool "Enable PWM"
  163. default n
  164. menuconfig BSP_USING_USB
  165. bool "Enable USB"
  166. default n
  167. if BSP_USING_USB
  168. config BSP_USING_USB_DEVICE
  169. bool "Enable USB Device"
  170. default n
  171. config BSP_USING_USB_HOST
  172. bool "Enable USB HOST"
  173. select RT_USING_CACHE
  174. default n
  175. endif
  176. menuconfig BSP_USING_WDG
  177. bool "Enable Watchdog"
  178. default n
  179. select RT_USING_WDT if BSP_USING_WDG
  180. if BSP_USING_WDG
  181. config BSP_USING_WDG0
  182. bool "Enable WDG0"
  183. default n
  184. config BSP_USING_WDG1
  185. bool "Enable WDG1"
  186. default n
  187. endif
  188. menuconfig BSP_USING_MCAN
  189. bool "Enable MCAN"
  190. default n
  191. select RT_USING_CAN if BSP_USING_MCAN
  192. if BSP_USING_MCAN
  193. config BSP_USING_MCAN0
  194. bool "Enable MCAN0"
  195. default n
  196. config BSP_USING_MCAN1
  197. bool "Enable MCAN1"
  198. default n
  199. config BSP_USING_MCAN2
  200. bool "Enable MCAN2"
  201. default n
  202. config BSP_USING_MCAN3
  203. bool "Enable MCAN3"
  204. default n
  205. endif
  206. menuconfig BSP_USING_ADC
  207. bool "Enable ADC"
  208. default n
  209. select RT_USING_ADC if BSP_USING_ADC
  210. if BSP_USING_ADC
  211. menuconfig BSP_USING_ADC16
  212. bool "Enable ADC16"
  213. default y
  214. if BSP_USING_ADC16
  215. config BSP_USING_ADC0
  216. bool "Enable ADC0"
  217. default y
  218. config BSP_USING_ADC1
  219. bool "Enable ADC1"
  220. default n
  221. config BSP_USING_ADC2
  222. bool "Enable ADC2"
  223. default n
  224. endif
  225. endif
  226. endmenu
  227. endmenu