Kconfig 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. menu "Hardware Drivers Config"
  2. config SOC_HC32F4A0SI
  3. bool
  4. select SOC_SERIES_HC32F4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config PHY_USING_RTL8201F
  10. bool
  11. menuconfig BSP_USING_ETH
  12. bool "Enable Ethernet"
  13. default n
  14. select BSP_USING_I2C1
  15. select RT_USING_LWIP
  16. select PHY_USING_RTL8201F
  17. select RT_LWIP_USING_HW_CHECKSUM
  18. select BSP_USING_TCA9539
  19. if BSP_USING_ETH
  20. config ETH_USING_INTERFACE_RMII
  21. bool "select RMII interface"
  22. default n
  23. config PHY_USING_INTERRUPT_MODE
  24. bool "enable phy interrupt mode"
  25. select ETH_PHY_INT_PIN
  26. default n
  27. config ETH_PHY_INT_PIN
  28. int
  29. default 16
  30. endif
  31. config BSP_USING_TCA9539
  32. bool "Enable TCA9539"
  33. select BSP_USING_I2C1
  34. default n
  35. endmenu
  36. menu "On-chip Peripheral Drivers"
  37. config BSP_USING_GPIO
  38. bool "Enable GPIO"
  39. select RT_USING_PIN
  40. default y
  41. menuconfig BSP_USING_UART
  42. bool "Enable UART"
  43. default y
  44. select RT_USING_SERIAL
  45. if BSP_USING_UART
  46. config BSP_USING_UART1
  47. bool "Enable UART1"
  48. default y
  49. config BSP_UART1_RX_USING_DMA
  50. bool "Enable UART1 RX DMA"
  51. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_UART1_TX_USING_DMA
  54. bool "Enable UART1 TX DMA"
  55. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  56. default n
  57. config BSP_USING_UART2
  58. bool "Enable UART2"
  59. default n
  60. config BSP_UART2_RX_USING_DMA
  61. bool "Enable UART2 RX DMA"
  62. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  63. default n
  64. config BSP_UART2_TX_USING_DMA
  65. bool "Enable UART2 TX DMA"
  66. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  67. default n
  68. config BSP_USING_UART3
  69. bool "Enable UART3"
  70. default n
  71. config BSP_USING_UART4
  72. bool "Enable UART4"
  73. default n
  74. config BSP_USING_UART5
  75. bool "Enable UART5"
  76. default n
  77. config BSP_USING_UART6
  78. bool "Enable UART6"
  79. default n
  80. config BSP_UART6_RX_USING_DMA
  81. bool "Enable UART6 RX DMA"
  82. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  83. default n
  84. config BSP_UART6_TX_USING_DMA
  85. bool "Enable UART6 TX DMA"
  86. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  87. default n
  88. config BSP_USING_UART7
  89. bool "Enable UART7"
  90. default n
  91. config BSP_UART7_RX_USING_DMA
  92. bool "Enable UART7 RX DMA"
  93. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  94. default n
  95. config BSP_UART7_TX_USING_DMA
  96. bool "Enable UART7 TX DMA"
  97. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  98. default n
  99. config BSP_USING_UART8
  100. bool "Enable UART8"
  101. default n
  102. config BSP_USING_UART9
  103. bool "Enable UART9"
  104. default n
  105. config BSP_USING_UART10
  106. bool "Enable UART10"
  107. default n
  108. endif
  109. menuconfig BSP_USING_I2C1
  110. bool "Enable I2C1 BUS (software simulation)"
  111. default y
  112. select RT_USING_I2C
  113. select RT_USING_I2C_BITOPS
  114. select RT_USING_PIN
  115. if BSP_USING_I2C1
  116. config BSP_I2C1_SCL_PIN
  117. int "i2c1 scl pin number"
  118. range 1 176
  119. default 51
  120. config BSP_I2C1_SDA_PIN
  121. int "I2C1 sda pin number"
  122. range 1 176
  123. default 90
  124. endif
  125. menuconfig BSP_USING_SPI
  126. bool "Enable SPI BUS"
  127. default n
  128. select RT_USING_SPI
  129. if BSP_USING_SPI
  130. config BSP_USING_SPI1
  131. bool "Enable SPI1 BUS"
  132. default n
  133. config BSP_SPI1_TX_USING_DMA
  134. bool "Enable SPI1 TX DMA"
  135. depends on BSP_USING_SPI1
  136. default n
  137. config BSP_SPI1_RX_USING_DMA
  138. bool "Enable SPI1 RX DMA"
  139. depends on BSP_USING_SPI1
  140. select BSP_SPI1_TX_USING_DMA
  141. default n
  142. config BSP_USING_SPI2
  143. bool "Enable SPI2 BUS"
  144. default n
  145. config BSP_SPI2_TX_USING_DMA
  146. bool "Enable SPI2 TX DMA"
  147. depends on BSP_USING_SPI2
  148. default n
  149. config BSP_SPI2_RX_USING_DMA
  150. bool "Enable SPI2 RX DMA"
  151. depends on BSP_USING_SPI2
  152. select BSP_SPI2_TX_USING_DMA
  153. default n
  154. config BSP_USING_SPI3
  155. bool "Enable SPI3 BUS"
  156. default n
  157. config BSP_SPI3_TX_USING_DMA
  158. bool "Enable SPI3 TX DMA"
  159. depends on BSP_USING_SPI3
  160. default n
  161. config BSP_SPI3_RX_USING_DMA
  162. bool "Enable SPI3 RX DMA"
  163. depends on BSP_USING_SPI3
  164. select BSP_SPI3_TX_USING_DMA
  165. default n
  166. config BSP_USING_SPI4
  167. bool "Enable SPI4 BUS"
  168. default n
  169. config BSP_SPI4_TX_USING_DMA
  170. bool "Enable SPI4 TX DMA"
  171. depends on BSP_USING_SPI4
  172. default n
  173. config BSP_SPI4_RX_USING_DMA
  174. bool "Enable SPI4 RX DMA"
  175. depends on BSP_USING_SPI4
  176. select BSP_SPI4_TX_USING_DMA
  177. default n
  178. endif
  179. menuconfig BSP_USING_ADC
  180. bool "Enable ADC"
  181. default n
  182. select RT_USING_ADC
  183. if BSP_USING_ADC
  184. config BSP_USING_ADC1
  185. bool "using adc1"
  186. default n
  187. config BSP_USING_ADC2
  188. bool "using adc2"
  189. default n
  190. config BSP_USING_ADC3
  191. bool "using adc3"
  192. default n
  193. endif
  194. menuconfig BSP_USING_CAN
  195. bool "Enable CAN"
  196. default n
  197. select RT_USING_CAN
  198. select RT_CAN_USING_HDR
  199. if BSP_USING_CAN
  200. config BSP_USING_CAN1
  201. bool "using can1"
  202. default n
  203. config BSP_USING_CAN2
  204. bool "using can2"
  205. default n
  206. endif
  207. endmenu
  208. menu "Board extended module Drivers"
  209. endmenu
  210. endmenu