Kconfig 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F437ZMT7
  3. bool
  4. select SOC_SERIES_AT32F437
  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. config BSP_USING_EMAC
  58. bool "Enable Ethernet"
  59. default n
  60. select RT_USING_LWIP
  61. if BSP_USING_EMAC
  62. choice
  63. prompt "Select phy"
  64. default PHY_USING_DM9162
  65. config PHY_USING_DM9162
  66. bool "PHY USING DM9162"
  67. config PHY_USING_DP83848
  68. bool "PHY USING DP83848"
  69. endchoice
  70. endif
  71. menuconfig BSP_USING_QSPI
  72. bool "Enable QSPI BUS"
  73. default n
  74. select RT_USING_QSPI
  75. select RT_USING_SPI
  76. if BSP_USING_QSPI
  77. config BSP_USING_QSPI1
  78. bool "Enable QSPI1"
  79. default n
  80. config BSP_USING_QSPI2
  81. bool "Enable QSPI2"
  82. default n
  83. endif
  84. menuconfig BSP_USING_RTC
  85. bool "Enable RTC"
  86. select RT_USING_RTC
  87. default n
  88. if BSP_USING_RTC
  89. choice
  90. prompt "Select clock source"
  91. default BSP_RTC_USING_LEXT
  92. config BSP_RTC_USING_LEXT
  93. bool "RTC USING LEXT"
  94. config BSP_RTC_USING_LICK
  95. bool "RTC USING LICK"
  96. endchoice
  97. endif
  98. menuconfig BSP_USING_UART
  99. bool "Enable UART"
  100. default y
  101. select RT_USING_SERIAL
  102. if BSP_USING_UART
  103. config BSP_USING_UART1
  104. bool "Enable UART1"
  105. default y
  106. config BSP_UART1_RX_USING_DMA
  107. bool "Enable UART1 RX DMA"
  108. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  109. default n
  110. config BSP_USING_UART2
  111. bool "Enable UART2"
  112. default n
  113. config BSP_UART2_RX_USING_DMA
  114. bool "Enable UART2 RX DMA"
  115. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  116. default n
  117. config BSP_USING_UART3
  118. bool "Enable UART3"
  119. default n
  120. config BSP_UART3_RX_USING_DMA
  121. bool "Enable UART3 RX DMA"
  122. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  123. default n
  124. endif
  125. menuconfig BSP_USING_PWM
  126. bool "Enable PWM"
  127. default n
  128. select RT_USING_PWM
  129. if BSP_USING_PWM
  130. menuconfig BSP_USING_PWM1
  131. bool "Enable timer1 output pwm"
  132. default n
  133. if BSP_USING_PWM1
  134. config BSP_USING_PWM1_CH1
  135. bool "Enable PWM1 channel1"
  136. default n
  137. config BSP_USING_PWM1_CH4
  138. bool "Enable PWM1 channel4"
  139. default n
  140. endif
  141. menuconfig BSP_USING_PWM2
  142. bool "Enable timer2 output pwm"
  143. default n
  144. if BSP_USING_PWM2
  145. config BSP_USING_PWM2_CH1
  146. bool "Enable PWM2 channel1"
  147. default n
  148. config BSP_USING_PWM2_CH2
  149. bool "Enable PWM2 channel2"
  150. default n
  151. endif
  152. endif
  153. menuconfig BSP_USING_HWTIMER
  154. bool "Enable HWTIMER"
  155. default n
  156. select RT_USING_HWTIMER
  157. if BSP_USING_HWTIMER
  158. config BSP_USING_HWTMR3
  159. bool "Enable hardware timer3"
  160. default n
  161. config BSP_USING_HWTMR4
  162. bool "Enable hardware timer4"
  163. default n
  164. config BSP_USING_HWTMR5
  165. bool "Enable hardware timer5"
  166. default n
  167. endif
  168. menuconfig BSP_USING_SPI
  169. bool "Enable SPI BUS"
  170. default n
  171. select RT_USING_SPI
  172. if BSP_USING_SPI
  173. config BSP_USING_SPI1
  174. bool "Enable SPI1 BUS"
  175. default n
  176. config BSP_SPI1_TX_USING_DMA
  177. bool "Enable SPI1 TX DMA"
  178. depends on BSP_USING_SPI1
  179. default n
  180. config BSP_SPI1_RX_USING_DMA
  181. bool "Enable SPI1 RX DMA"
  182. depends on BSP_USING_SPI1
  183. select BSP_SPI1_TX_USING_DMA
  184. default n
  185. config BSP_USING_SPI2
  186. bool "Enable SPI2 BUS"
  187. default n
  188. config BSP_SPI2_TX_USING_DMA
  189. bool "Enable SPI2 TX DMA"
  190. depends on BSP_USING_SPI2
  191. default n
  192. config BSP_SPI2_RX_USING_DMA
  193. bool "Enable SPI2 RX DMA"
  194. depends on BSP_USING_SPI2
  195. select BSP_SPI2_TX_USING_DMA
  196. default n
  197. endif
  198. menuconfig BSP_USING_I2C
  199. bool "Enable I2C BUS (software simulation)"
  200. default n
  201. select RT_USING_I2C
  202. select RT_USING_I2C_BITOPS
  203. select RT_USING_PIN
  204. if BSP_USING_I2C
  205. config BSP_USING_I2C1
  206. bool "Enable I2C1 BUS"
  207. if BSP_USING_I2C1
  208. config BSP_I2C1_SCL_PIN
  209. int "i2c1 scl pin number"
  210. range 0 63
  211. default 22
  212. config BSP_I2C1_SDA_PIN
  213. int "I2C1 sda pin number"
  214. range 0 63
  215. default 23
  216. endif
  217. config BSP_USING_I2C2
  218. bool "Enable I2C2 BUS"
  219. if BSP_USING_I2C2
  220. config BSP_I2C2_SCL_PIN
  221. int "i2c2 scl pin number"
  222. range 0 63
  223. default 26
  224. config BSP_I2C2_SDA_PIN
  225. int "I2C2 sda pin number"
  226. range 0 63
  227. default 27
  228. endif
  229. config BSP_USING_I2C3
  230. bool "Enable I2C3 BUS"
  231. if BSP_USING_I2C3
  232. config BSP_I2C3_SCL_PIN
  233. int "i2c3 scl pin number"
  234. range 0 63
  235. default 8
  236. config BSP_I2C3_SDA_PIN
  237. int "I2C3 sda pin number"
  238. range 0 63
  239. default 41
  240. endif
  241. endif
  242. menuconfig BSP_USING_ADC
  243. bool "Enable ADC"
  244. default n
  245. select RT_USING_ADC
  246. if BSP_USING_ADC
  247. config BSP_USING_ADC1
  248. bool "Enable ADC1"
  249. default n
  250. config BSP_USING_ADC2
  251. bool "Enable ADC2"
  252. default n
  253. endif
  254. menuconfig BSP_USING_CAN
  255. bool "Enable CAN"
  256. default n
  257. select RT_USING_CAN
  258. if BSP_USING_CAN
  259. config BSP_USING_CAN1
  260. bool "using CAN1"
  261. default n
  262. config BSP_USING_CAN2
  263. bool "using CAN2"
  264. default n
  265. endif
  266. menuconfig BSP_USING_SDIO
  267. bool "Enable SDIO"
  268. default n
  269. select RT_USING_SDIO
  270. if BSP_USING_SDIO
  271. config BSP_USING_SDIO1
  272. bool "Enable SDIO1"
  273. default n
  274. endif
  275. endmenu
  276. endmenu