1
0

Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. config BSP_USING_ENET_PHY_RTL8201
  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_UART2
  45. bool "Enable UART2"
  46. default y
  47. if BSP_USING_UART2
  48. config BSP_UART2_RX_USING_DMA
  49. bool "Enable UART2 RX DMA"
  50. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  51. default n
  52. config BSP_UART2_TX_USING_DMA
  53. bool "Enable UART2 TX DMA"
  54. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  55. default n
  56. config BSP_UART2_RX_BUFSIZE
  57. int "Set UART2 RX buffer size"
  58. range 64 65535
  59. depends on RT_USING_SERIAL_V2
  60. default 128
  61. config BSP_UART2_TX_BUFSIZE
  62. int "Set UART2 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_SPI1
  74. bool "Enable SPI1"
  75. default y
  76. if BSP_USING_SPI1
  77. config BSP_SPI1_USING_DMA
  78. bool "Enable SPI1 DMA"
  79. default n
  80. endif
  81. config BSP_USING_SPI2
  82. bool "Enable SPI2"
  83. default n
  84. if BSP_USING_SPI2
  85. config BSP_SPI2_USING_DMA
  86. bool "Enable SPI2 DMA"
  87. default n
  88. endif
  89. config BSP_USING_SPI3
  90. bool "Enable SPI3"
  91. default n
  92. if BSP_USING_SPI3
  93. config BSP_SPI3_USING_DMA
  94. bool "Enable SPI3 DMA"
  95. default n
  96. endif
  97. endif
  98. menuconfig BSP_USING_RTC
  99. bool "Enable RTC"
  100. default n
  101. menuconfig BSP_USING_ETH
  102. bool "Enable Ethernet"
  103. default n
  104. select RT_USING_ETH
  105. if BSP_USING_ETH
  106. choice
  107. prompt "ETH"
  108. config BSP_USING_ETH0
  109. bool "Enable ETH0"
  110. select BSP_USING_ENET_PHY_RTL8201
  111. endchoice
  112. endif
  113. menuconfig BSP_USING_SDXC
  114. bool "Enable SDXC"
  115. default n
  116. select RT_USING_SDIO if BSP_USING_SDXC
  117. if BSP_USING_SDXC
  118. config BSP_USING_SDXC0
  119. bool "Enable SDXC0"
  120. default n
  121. if BSP_USING_SDXC0
  122. choice
  123. prompt "Select BUS_WIDTH"
  124. default BSP_SDXC0_BUS_WIDTH_4BIT
  125. config BSP_SDXC0_BUS_WIDTH_1BIT
  126. bool "1-bit"
  127. config BSP_SDXC0_BUS_WIDTH_4BIT
  128. bool "4-bit"
  129. endchoice
  130. choice
  131. prompt "Select Voltage"
  132. default BSP_SDXC0_VOLTAGE_3V3
  133. config BSP_SDXC0_VOLTAGE_3V3
  134. bool "3.3V"
  135. endchoice
  136. config BSP_SDXC0_PWR_PIN
  137. default "None"
  138. string "PWR pin name"
  139. endif
  140. endif
  141. menuconfig BSP_USING_GPTMR
  142. bool "Enable GPTMR"
  143. default n
  144. select RT_USING_HWTIMER if BSP_USING_GPTMR
  145. if BSP_USING_GPTMR
  146. config BSP_USING_GPTMR1
  147. bool "Enable GPTMR1"
  148. default n
  149. config BSP_USING_GPTMR2
  150. bool "Enable GPTMR2"
  151. default n
  152. config BSP_USING_GPTMR3
  153. bool "Enable GPTMR3"
  154. default n
  155. endif
  156. menuconfig BSP_USING_I2C
  157. bool "Enable I2C"
  158. default n
  159. if BSP_USING_I2C
  160. config BSP_USING_I2C0
  161. bool "Enable I2C0"
  162. default y
  163. if BSP_USING_I2C0
  164. config BSP_I2C0_USING_DMA
  165. bool "Enable I2C0 DMA"
  166. default n
  167. endif
  168. config BSP_USING_I2C3
  169. bool "Enable I2C3"
  170. default n
  171. if BSP_USING_I2C3
  172. config BSP_I2C3_USING_DMA
  173. bool "Enable I2C3 DMA"
  174. default n
  175. endif
  176. endif
  177. menuconfig BSP_USING_FEMC
  178. bool "Enable DRAM"
  179. default y
  180. menuconfig INIT_EXT_RAM_FOR_DATA
  181. bool "INIT_EXT_RAM_FOR_DATA"
  182. default y
  183. menuconfig BSP_USING_XPI_FLASH
  184. bool "Enable XPI FLASH"
  185. default n
  186. select RT_USING_FAL if BSP_USING_XPI_FLASH
  187. menuconfig BSP_USING_PWM
  188. bool "Enable PWM"
  189. default n
  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_WDG
  203. bool "Enable Watchdog"
  204. default n
  205. select RT_USING_WDT if BSP_USING_WDG
  206. if BSP_USING_WDG
  207. config BSP_USING_WDG0
  208. bool "Enable WDG0"
  209. default n
  210. config BSP_USING_WDG1
  211. bool "Enable WDG1"
  212. default n
  213. endif
  214. menuconfig BSP_USING_CAN
  215. bool "Enable CAN"
  216. default n
  217. select RT_USING_CAN if BSP_USING_CAN
  218. if BSP_USING_CAN
  219. config BSP_USING_CAN0
  220. bool "Enable CAN0"
  221. default n
  222. config BSP_USING_CAN1
  223. bool "Enable CAN1"
  224. default n
  225. endif
  226. menuconfig BSP_USING_ADC
  227. bool "Enable ADC"
  228. default n
  229. select RT_USING_ADC if BSP_USING_ADC
  230. if BSP_USING_ADC
  231. menuconfig BSP_USING_ADC16
  232. bool "Enable ADC16"
  233. default y
  234. if BSP_USING_ADC16
  235. config BSP_USING_ADC0
  236. bool "Enable ADC0"
  237. default n
  238. config BSP_USING_ADC1
  239. bool "Enable ADC1"
  240. default y
  241. config BSP_USING_ADC2
  242. bool "Enable ADC2"
  243. default n
  244. endif
  245. endif
  246. endmenu
  247. endmenu