Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. default n
  181. if BSP_USING_RTC
  182. choice
  183. prompt "Select clock source"
  184. default BSP_RTC_USING_LRC
  185. config BSP_RTC_USING_XTAL32
  186. bool "RTC USING XTAL32"
  187. config BSP_RTC_USING_LRC
  188. bool "RTC USING LRC"
  189. endchoice
  190. endif
  191. menuconfig BSP_USING_PWM
  192. bool "Enable PWM"
  193. default n
  194. select RT_USING_PWM
  195. if BSP_USING_PWM
  196. menuconfig BSP_USING_PWM1
  197. bool "Enable timer1 output pwm"
  198. default n
  199. if BSP_USING_PWM1
  200. config BSP_USING_PWM1_CH1
  201. bool "Enable PWM1 channel1"
  202. default n
  203. config BSP_USING_PWM1_CH2
  204. bool "Enable PWM1 channel2"
  205. default n
  206. config BSP_USING_PWM1_CH3
  207. bool "Enable PWM1 channel3"
  208. default n
  209. config BSP_USING_PWM1_CH4
  210. bool "Enable PWM1 channel4"
  211. default n
  212. endif
  213. menuconfig BSP_USING_PWM2
  214. bool "Enable timer2 output pwm"
  215. default n
  216. if BSP_USING_PWM2
  217. config BSP_USING_PWM2_CH1
  218. bool "Enable PWM2 channel1"
  219. default n
  220. config BSP_USING_PWM2_CH2
  221. bool "Enable PWM2 channel2"
  222. default n
  223. config BSP_USING_PWM2_CH3
  224. bool "Enable PWM2 channel3"
  225. default n
  226. config BSP_USING_PWM2_CH4
  227. bool "Enable PWM2 channel4"
  228. default n
  229. endif
  230. endif
  231. menuconfig BSP_USING_TIMER
  232. bool "Enable TIMER"
  233. default n
  234. select RT_USING_HWTIMER
  235. if BSP_USING_TIMER
  236. config BSP_USING_TIMER5
  237. bool "Enable TIMER5"
  238. default n
  239. config BSP_USING_TIMER6
  240. bool "Enable TIMER6"
  241. default n
  242. config BSP_USING_TIMER7
  243. bool "Enable TIMER7"
  244. default n
  245. config BSP_USING_TIMER8
  246. bool "Enable TIMER8"
  247. default n
  248. endif
  249. menuconfig BSP_USING_PULSE_ENCODER
  250. bool "Enable Pulse Encoder"
  251. default n
  252. select RT_USING_PULSE_ENCODER
  253. if BSP_USING_PULSE_ENCODER
  254. config BSP_USING_PULSE_ENCODER9
  255. bool "Enable Pulse Encoder9"
  256. default n
  257. config BSP_USING_PULSE_ENCODER10
  258. bool "Enable Pulse Encoder10"
  259. default n
  260. config BSP_USING_PULSE_ENCODER11
  261. bool "Enable Pulse Encoder11"
  262. default n
  263. config BSP_USING_PULSE_ENCODER12
  264. bool "Enable Pulse Encoder12"
  265. default n
  266. endif
  267. endmenu
  268. menu "Board extended module Drivers"
  269. endmenu
  270. endmenu