Kconfig 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F435ZMT7
  3. bool
  4. select SOC_SERIES_AT32F435
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_SERIAL
  10. bool "Enable USART (uart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_SDRAM
  17. bool "Enable SDRAM"
  18. default n
  19. config BSP_USING_GPIO
  20. bool "Enable GPIO"
  21. select RT_USING_PIN
  22. default y
  23. config BSP_USING_ON_CHIP_FLASH
  24. bool "Enable on-chip FLASH"
  25. default n
  26. menuconfig BSP_USING_USBFS
  27. bool "Enable USB BUS"
  28. default n
  29. if BSP_USING_USBFS
  30. menuconfig BSP_USING_USBFS1
  31. bool "Enable USB BUS1"
  32. default n
  33. if BSP_USING_USBFS1
  34. config BSP_USING_DEVICE_USBFS1
  35. bool "Enable USB1 Deivce"
  36. select RT_USING_USB_DEVICE
  37. default n
  38. config BSP_USING_HOST_USBFS1
  39. bool "Enable USB1 Host"
  40. select RT_USING_USB_HOST
  41. default n
  42. endif
  43. menuconfig BSP_USING_USBFS2
  44. bool "Enable USB BUS2"
  45. default n
  46. if BSP_USING_USBFS2
  47. config BSP_USING_DEVICE_USBFS2
  48. bool "Enable USB2 Deivce"
  49. select RT_USING_USB_DEVICE
  50. default n
  51. config BSP_USING_HOST_USBFS2
  52. bool "Enable USB2 Host"
  53. select RT_USING_USB_HOST
  54. default n
  55. endif
  56. endif
  57. menuconfig BSP_USING_QSPI
  58. bool "Enable QSPI BUS"
  59. default n
  60. select RT_USING_QSPI
  61. select RT_USING_SPI
  62. if BSP_USING_QSPI
  63. config BSP_USING_QSPI1
  64. bool "Enable QSPI1"
  65. default n
  66. config BSP_USING_QSPI2
  67. bool "Enable QSPI2"
  68. default n
  69. endif
  70. menuconfig BSP_USING_RTC
  71. bool "Enable RTC"
  72. select RT_USING_RTC
  73. default n
  74. if BSP_USING_RTC
  75. choice
  76. prompt "Select clock source"
  77. default BSP_RTC_USING_LEXT
  78. config BSP_RTC_USING_LEXT
  79. bool "RTC USING LEXT"
  80. config BSP_RTC_USING_LICK
  81. bool "RTC USING LICK"
  82. endchoice
  83. endif
  84. menuconfig BSP_USING_UART
  85. bool "Enable UART"
  86. default y
  87. select RT_USING_SERIAL
  88. if BSP_USING_UART
  89. config BSP_USING_UART1
  90. bool "Enable UART1"
  91. default y
  92. config BSP_UART1_RX_USING_DMA
  93. bool "Enable UART1 RX DMA"
  94. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  95. default n
  96. config BSP_USING_UART2
  97. bool "Enable UART2"
  98. default n
  99. config BSP_UART2_RX_USING_DMA
  100. bool "Enable UART2 RX DMA"
  101. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  102. default n
  103. config BSP_USING_UART3
  104. bool "Enable UART3"
  105. default n
  106. config BSP_UART3_RX_USING_DMA
  107. bool "Enable UART3 RX DMA"
  108. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  109. default n
  110. endif
  111. menuconfig BSP_USING_PWM
  112. bool "Enable PWM"
  113. default n
  114. select RT_USING_PWM
  115. if BSP_USING_PWM
  116. menuconfig BSP_USING_PWM1
  117. bool "Enable timer1 output pwm"
  118. default n
  119. if BSP_USING_PWM1
  120. config BSP_USING_PWM1_CH1
  121. bool "Enable PWM1 channel1"
  122. default n
  123. config BSP_USING_PWM1_CH4
  124. bool "Enable PWM1 channel4"
  125. default n
  126. endif
  127. menuconfig BSP_USING_PWM2
  128. bool "Enable timer2 output pwm"
  129. default n
  130. if BSP_USING_PWM2
  131. config BSP_USING_PWM2_CH1
  132. bool "Enable PWM2 channel1"
  133. default n
  134. config BSP_USING_PWM2_CH2
  135. bool "Enable PWM2 channel2"
  136. default n
  137. endif
  138. endif
  139. menuconfig BSP_USING_HWTIMER
  140. bool "Enable HWTIMER"
  141. default n
  142. select RT_USING_HWTIMER
  143. if BSP_USING_HWTIMER
  144. config BSP_USING_HWTMR3
  145. bool "Enable hardware timer3"
  146. default n
  147. config BSP_USING_HWTMR4
  148. bool "Enable hardware timer4"
  149. default n
  150. config BSP_USING_HWTMR5
  151. bool "Enable hardware timer5"
  152. default n
  153. endif
  154. menuconfig BSP_USING_SPI
  155. bool "Enable SPI BUS"
  156. default n
  157. select RT_USING_SPI
  158. if BSP_USING_SPI
  159. config BSP_USING_SPI1
  160. bool "Enable SPI1 BUS"
  161. default n
  162. config BSP_SPI1_TX_USING_DMA
  163. bool "Enable SPI1 TX DMA"
  164. depends on BSP_USING_SPI1
  165. default n
  166. config BSP_SPI1_RX_USING_DMA
  167. bool "Enable SPI1 RX DMA"
  168. depends on BSP_USING_SPI1
  169. select BSP_SPI1_TX_USING_DMA
  170. default n
  171. config BSP_USING_SPI2
  172. bool "Enable SPI2 BUS"
  173. default n
  174. config BSP_SPI2_TX_USING_DMA
  175. bool "Enable SPI2 TX DMA"
  176. depends on BSP_USING_SPI2
  177. default n
  178. config BSP_SPI2_RX_USING_DMA
  179. bool "Enable SPI2 RX DMA"
  180. depends on BSP_USING_SPI2
  181. select BSP_SPI2_TX_USING_DMA
  182. default n
  183. endif
  184. menuconfig BSP_USING_I2C
  185. bool "Enable I2C BUS (software simulation)"
  186. default n
  187. select RT_USING_I2C
  188. select RT_USING_I2C_BITOPS
  189. select RT_USING_PIN
  190. if BSP_USING_I2C
  191. config BSP_USING_I2C1
  192. bool "Enable I2C1 BUS"
  193. if BSP_USING_I2C1
  194. config BSP_I2C1_SCL_PIN
  195. int "i2c1 scl pin number"
  196. range 0 63
  197. default 22
  198. config BSP_I2C1_SDA_PIN
  199. int "I2C1 sda pin number"
  200. range 0 63
  201. default 23
  202. endif
  203. config BSP_USING_I2C2
  204. bool "Enable I2C2 BUS"
  205. if BSP_USING_I2C2
  206. config BSP_I2C2_SCL_PIN
  207. int "i2c2 scl pin number"
  208. range 0 63
  209. default 26
  210. config BSP_I2C2_SDA_PIN
  211. int "I2C2 sda pin number"
  212. range 0 63
  213. default 27
  214. endif
  215. config BSP_USING_I2C3
  216. bool "Enable I2C3 BUS"
  217. if BSP_USING_I2C3
  218. config BSP_I2C3_SCL_PIN
  219. int "i2c3 scl pin number"
  220. range 0 63
  221. default 8
  222. config BSP_I2C3_SDA_PIN
  223. int "I2C3 sda pin number"
  224. range 0 63
  225. default 41
  226. endif
  227. endif
  228. menuconfig BSP_USING_ADC
  229. bool "Enable ADC"
  230. default n
  231. select RT_USING_ADC
  232. if BSP_USING_ADC
  233. config BSP_USING_ADC1
  234. bool "Enable ADC1"
  235. default n
  236. config BSP_USING_ADC2
  237. bool "Enable ADC2"
  238. default n
  239. endif
  240. menuconfig BSP_USING_CAN
  241. bool "Enable CAN"
  242. default n
  243. select RT_USING_CAN
  244. if BSP_USING_CAN
  245. config BSP_USING_CAN1
  246. bool "using CAN1"
  247. default n
  248. config BSP_USING_CAN2
  249. bool "using CAN2"
  250. default n
  251. endif
  252. menuconfig BSP_USING_SDIO
  253. bool "Enable SDIO"
  254. default n
  255. select RT_USING_SDIO
  256. if BSP_USING_SDIO
  257. config BSP_USING_SDIO1
  258. bool "Enable SDIO1"
  259. default n
  260. endif
  261. endmenu
  262. endmenu