Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. menu "Hardware Drivers Config"
  2. config MCU_HC32F4A0
  3. bool
  4. select ARCH_ARM_CORTEX_M4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. config BSP_USING_GPIO
  12. bool "Enable GPIO"
  13. select RT_USING_PIN
  14. default y
  15. menuconfig BSP_USING_UART
  16. bool "Enable UART"
  17. default y
  18. select RT_USING_SERIAL
  19. if BSP_USING_UART
  20. config BSP_USING_UART1
  21. bool "Enable UART1"
  22. default y
  23. config BSP_UART1_RX_USING_DMA
  24. bool "Enable UART1 RX DMA"
  25. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  26. default n
  27. config BSP_UART1_TX_USING_DMA
  28. bool "Enable UART1 TX DMA"
  29. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  30. default n
  31. config BSP_USING_UART2
  32. bool "Enable UART2"
  33. default n
  34. config BSP_UART2_RX_USING_DMA
  35. bool "Enable UART2 RX DMA"
  36. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  37. default n
  38. config BSP_UART2_TX_USING_DMA
  39. bool "Enable UART2 TX DMA"
  40. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  41. default n
  42. config BSP_USING_UART3
  43. bool "Enable UART3"
  44. default n
  45. config BSP_USING_UART4
  46. bool "Enable UART4"
  47. default n
  48. config BSP_USING_UART5
  49. bool "Enable UART5"
  50. default n
  51. config BSP_USING_UART6
  52. bool "Enable UART6"
  53. default n
  54. config BSP_UART6_RX_USING_DMA
  55. bool "Enable UART6 RX DMA"
  56. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  57. default n
  58. config BSP_UART6_TX_USING_DMA
  59. bool "Enable UART6 TX DMA"
  60. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  61. default n
  62. config BSP_USING_UART7
  63. bool "Enable UART7"
  64. default n
  65. config BSP_UART7_RX_USING_DMA
  66. bool "Enable UART7 RX DMA"
  67. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  68. default n
  69. config BSP_UART7_TX_USING_DMA
  70. bool "Enable UART7 TX DMA"
  71. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  72. default n
  73. config BSP_USING_UART8
  74. bool "Enable UART8"
  75. default n
  76. config BSP_USING_UART9
  77. bool "Enable UART9"
  78. default n
  79. config BSP_USING_UART10
  80. bool "Enable UART10"
  81. default n
  82. endif
  83. menuconfig BSP_USING_I2C1
  84. bool "Enable I2C1 BUS (software simulation)"
  85. default y
  86. select RT_USING_I2C
  87. select RT_USING_I2C_BITOPS
  88. select RT_USING_PIN
  89. if BSP_USING_I2C1
  90. config BSP_I2C1_SCL_PIN
  91. int "i2c1 scl pin number"
  92. range 1 176
  93. default 51
  94. config BSP_I2C1_SDA_PIN
  95. int "I2C1 sda pin number"
  96. range 1 176
  97. default 90
  98. endif
  99. menuconfig BSP_USING_SPI
  100. bool "Enable SPI BUS"
  101. default n
  102. select RT_USING_SPI
  103. if BSP_USING_SPI
  104. config BSP_USING_SPI1
  105. bool "Enable SPI1 BUS"
  106. default n
  107. config BSP_SPI1_TX_USING_DMA
  108. bool "Enable SPI1 TX DMA"
  109. depends on BSP_USING_SPI1
  110. default n
  111. config BSP_SPI1_RX_USING_DMA
  112. bool "Enable SPI1 RX DMA"
  113. depends on BSP_USING_SPI1
  114. select BSP_SPI1_TX_USING_DMA
  115. default n
  116. config BSP_USING_SPI2
  117. bool "Enable SPI2 BUS"
  118. default n
  119. config BSP_SPI2_TX_USING_DMA
  120. bool "Enable SPI2 TX DMA"
  121. depends on BSP_USING_SPI2
  122. default n
  123. config BSP_SPI2_RX_USING_DMA
  124. bool "Enable SPI2 RX DMA"
  125. depends on BSP_USING_SPI2
  126. select BSP_SPI2_TX_USING_DMA
  127. default n
  128. config BSP_USING_SPI3
  129. bool "Enable SPI3 BUS"
  130. default n
  131. config BSP_SPI3_TX_USING_DMA
  132. bool "Enable SPI3 TX DMA"
  133. depends on BSP_USING_SPI3
  134. default n
  135. config BSP_SPI3_RX_USING_DMA
  136. bool "Enable SPI3 RX DMA"
  137. depends on BSP_USING_SPI3
  138. select BSP_SPI3_TX_USING_DMA
  139. default n
  140. config BSP_USING_SPI4
  141. bool "Enable SPI4 BUS"
  142. default n
  143. config BSP_SPI4_TX_USING_DMA
  144. bool "Enable SPI4 TX DMA"
  145. depends on BSP_USING_SPI4
  146. default n
  147. config BSP_SPI4_RX_USING_DMA
  148. bool "Enable SPI4 RX DMA"
  149. depends on BSP_USING_SPI4
  150. select BSP_SPI4_TX_USING_DMA
  151. default n
  152. config BSP_USING_SPI5
  153. bool "Enable SPI5 BUS"
  154. default n
  155. config BSP_SPI5_RX_USING_DMA
  156. bool "Enable SPI5 TX DMA"
  157. depends on BSP_USING_SPI5
  158. default n
  159. config BSP_SPI5_RX_USING_DMA
  160. bool "Enable SPI5 RX DMA"
  161. depends on BSP_USING_SPI5
  162. select BSP_SPI5_TX_USING_DMA
  163. default n
  164. config BSP_USING_SPI6
  165. bool "Enable SPI6 BUS"
  166. default n
  167. config BSP_SPI6_TX_USING_DMA
  168. bool "Enable SPI6 TX DMA"
  169. depends on BSP_USING_SPI6
  170. default n
  171. config BSP_SPI6_RX_USING_DMA
  172. bool "Enable SPI6 RX DMA"
  173. depends on BSP_USING_SPI6
  174. select BSP_SPI6_TX_USING_DMA
  175. default n
  176. endif
  177. menuconfig BSP_USING_RTC
  178. bool "Enable RTC"
  179. select RT_USING_RTC
  180. select RT_USING_LIBC
  181. default n
  182. if BSP_USING_RTC
  183. choice
  184. prompt "Select clock source"
  185. default BSP_RTC_USING_LRC
  186. config BSP_RTC_USING_XTAL32
  187. bool "RTC USING XTAL32"
  188. config BSP_RTC_USING_LRC
  189. bool "RTC USING LRC"
  190. endchoice
  191. endif
  192. menuconfig BSP_USING_PWM
  193. bool "Enable PWM"
  194. default n
  195. select RT_USING_PWM
  196. if BSP_USING_PWM
  197. menuconfig BSP_USING_PWM1
  198. bool "Enable timer1 output pwm"
  199. default n
  200. if BSP_USING_PWM1
  201. config BSP_USING_PWM1_CH1
  202. bool "Enable PWM1 channel1"
  203. default n
  204. config BSP_USING_PWM1_CH2
  205. bool "Enable PWM1 channel2"
  206. default n
  207. config BSP_USING_PWM1_CH3
  208. bool "Enable PWM1 channel3"
  209. default n
  210. config BSP_USING_PWM1_CH4
  211. bool "Enable PWM1 channel4"
  212. default n
  213. endif
  214. menuconfig BSP_USING_PWM2
  215. bool "Enable timer2 output pwm"
  216. default n
  217. if BSP_USING_PWM2
  218. config BSP_USING_PWM2_CH1
  219. bool "Enable PWM2 channel1"
  220. default n
  221. config BSP_USING_PWM2_CH2
  222. bool "Enable PWM2 channel2"
  223. default n
  224. config BSP_USING_PWM2_CH3
  225. bool "Enable PWM2 channel3"
  226. default n
  227. config BSP_USING_PWM2_CH4
  228. bool "Enable PWM2 channel4"
  229. default n
  230. endif
  231. endif
  232. menuconfig BSP_USING_TIMER
  233. bool "Enable TIMER"
  234. default n
  235. select RT_USING_HWTIMER
  236. if BSP_USING_TIMER
  237. config BSP_USING_TIMER5
  238. bool "Enable TIMER5"
  239. default n
  240. config BSP_USING_TIMER6
  241. bool "Enable TIMER6"
  242. default n
  243. config BSP_USING_TIMER7
  244. bool "Enable TIMER7"
  245. default n
  246. config BSP_USING_TIMER8
  247. bool "Enable TIMER8"
  248. default n
  249. endif
  250. menuconfig BSP_USING_PULSE_ENCODER
  251. bool "Enable Pulse Encoder"
  252. default n
  253. select RT_USING_PULSE_ENCODER
  254. if BSP_USING_PULSE_ENCODER
  255. config BSP_USING_PULSE_ENCODER9
  256. bool "Enable Pulse Encoder9"
  257. default n
  258. config BSP_USING_PULSE_ENCODER10
  259. bool "Enable Pulse Encoder10"
  260. default n
  261. config BSP_USING_PULSE_ENCODER11
  262. bool "Enable Pulse Encoder11"
  263. default n
  264. config BSP_USING_PULSE_ENCODER12
  265. bool "Enable Pulse Encoder12"
  266. default n
  267. endif
  268. endmenu
  269. menu "Board extended module Drivers"
  270. endmenu
  271. endmenu