Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. menuconfig BSP_USING_UART1
  104. bool "Enable UART1"
  105. default y
  106. if BSP_USING_UART1
  107. config BSP_UART1_RX_USING_DMA
  108. bool "Enable UART1 RX DMA"
  109. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  110. default n
  111. config BSP_UART1_TX_USING_DMA
  112. bool "Enable UART1 TX DMA"
  113. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  114. default n
  115. config BSP_UART1_RX_BUFSIZE
  116. int "Set UART1 RX buffer size"
  117. range 64 65535
  118. depends on RT_USING_SERIAL_V2
  119. default 256
  120. config BSP_UART1_TX_BUFSIZE
  121. int "Set UART1 TX buffer size"
  122. range 0 65535
  123. depends on RT_USING_SERIAL_V2
  124. default 0
  125. endif
  126. menuconfig BSP_USING_UART2
  127. bool "Enable UART2"
  128. default y
  129. if BSP_USING_UART2
  130. config BSP_UART2_RX_USING_DMA
  131. bool "Enable UART2 RX DMA"
  132. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  133. default n
  134. config BSP_UART2_TX_USING_DMA
  135. bool "Enable UART2 TX DMA"
  136. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  137. default n
  138. config BSP_UART2_RX_BUFSIZE
  139. int "Set UART2 RX buffer size"
  140. range 64 65535
  141. depends on RT_USING_SERIAL_V2
  142. default 256
  143. config BSP_UART2_TX_BUFSIZE
  144. int "Set UART2 TX buffer size"
  145. range 0 65535
  146. depends on RT_USING_SERIAL_V2
  147. default 0
  148. endif
  149. menuconfig BSP_USING_UART3
  150. bool "Enable UART3"
  151. default y
  152. if BSP_USING_UART3
  153. config BSP_UART3_RX_USING_DMA
  154. bool "Enable UART3 RX DMA"
  155. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  156. default n
  157. config BSP_UART3_TX_USING_DMA
  158. bool "Enable UART3 TX DMA"
  159. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  160. default n
  161. config BSP_UART3_RX_BUFSIZE
  162. int "Set UART3 RX buffer size"
  163. range 64 65535
  164. depends on RT_USING_SERIAL_V2
  165. default 256
  166. config BSP_UART3_TX_BUFSIZE
  167. int "Set UART3 TX buffer size"
  168. range 0 65535
  169. depends on RT_USING_SERIAL_V2
  170. default 0
  171. endif
  172. endif
  173. menuconfig BSP_USING_PWM
  174. bool "Enable PWM"
  175. default n
  176. select RT_USING_PWM
  177. if BSP_USING_PWM
  178. menuconfig BSP_USING_PWM1
  179. bool "Enable timer1 output pwm"
  180. default n
  181. if BSP_USING_PWM1
  182. config BSP_USING_PWM1_CH1
  183. bool "Enable PWM1 channel1"
  184. default n
  185. config BSP_USING_PWM1_CH4
  186. bool "Enable PWM1 channel4"
  187. default n
  188. endif
  189. menuconfig BSP_USING_PWM2
  190. bool "Enable timer2 output pwm"
  191. default n
  192. if BSP_USING_PWM2
  193. config BSP_USING_PWM2_CH1
  194. bool "Enable PWM2 channel1"
  195. default n
  196. config BSP_USING_PWM2_CH2
  197. bool "Enable PWM2 channel2"
  198. default n
  199. endif
  200. endif
  201. menuconfig BSP_USING_HWTIMER
  202. bool "Enable HWTIMER"
  203. default n
  204. select RT_USING_HWTIMER
  205. if BSP_USING_HWTIMER
  206. config BSP_USING_HWTMR3
  207. bool "Enable hardware timer3"
  208. default n
  209. config BSP_USING_HWTMR4
  210. bool "Enable hardware timer4"
  211. default n
  212. config BSP_USING_HWTMR5
  213. bool "Enable hardware timer5"
  214. default n
  215. endif
  216. menuconfig BSP_USING_SPI
  217. bool "Enable SPI BUS"
  218. default n
  219. select RT_USING_SPI
  220. if BSP_USING_SPI
  221. config BSP_USING_SPI1
  222. bool "Enable SPI1 BUS"
  223. default n
  224. config BSP_SPI1_TX_USING_DMA
  225. bool "Enable SPI1 TX DMA"
  226. depends on BSP_USING_SPI1
  227. default n
  228. config BSP_SPI1_RX_USING_DMA
  229. bool "Enable SPI1 RX DMA"
  230. depends on BSP_USING_SPI1
  231. select BSP_SPI1_TX_USING_DMA
  232. default n
  233. config BSP_USING_SPI2
  234. bool "Enable SPI2 BUS"
  235. default n
  236. config BSP_SPI2_TX_USING_DMA
  237. bool "Enable SPI2 TX DMA"
  238. depends on BSP_USING_SPI2
  239. default n
  240. config BSP_SPI2_RX_USING_DMA
  241. bool "Enable SPI2 RX DMA"
  242. depends on BSP_USING_SPI2
  243. select BSP_SPI2_TX_USING_DMA
  244. default n
  245. endif
  246. menuconfig BSP_USING_I2C
  247. bool "Enable I2C BUS (software simulation)"
  248. default n
  249. select RT_USING_I2C
  250. select RT_USING_I2C_BITOPS
  251. select RT_USING_PIN
  252. if BSP_USING_I2C
  253. config BSP_USING_I2C1
  254. bool "Enable I2C1 BUS"
  255. if BSP_USING_I2C1
  256. config BSP_I2C1_SCL_PIN
  257. int "i2c1 scl pin number"
  258. range 0 63
  259. default 22
  260. config BSP_I2C1_SDA_PIN
  261. int "I2C1 sda pin number"
  262. range 0 63
  263. default 23
  264. endif
  265. config BSP_USING_I2C2
  266. bool "Enable I2C2 BUS"
  267. if BSP_USING_I2C2
  268. config BSP_I2C2_SCL_PIN
  269. int "i2c2 scl pin number"
  270. range 0 63
  271. default 26
  272. config BSP_I2C2_SDA_PIN
  273. int "I2C2 sda pin number"
  274. range 0 63
  275. default 27
  276. endif
  277. config BSP_USING_I2C3
  278. bool "Enable I2C3 BUS"
  279. if BSP_USING_I2C3
  280. config BSP_I2C3_SCL_PIN
  281. int "i2c3 scl pin number"
  282. range 0 63
  283. default 8
  284. config BSP_I2C3_SDA_PIN
  285. int "I2C3 sda pin number"
  286. range 0 63
  287. default 41
  288. endif
  289. endif
  290. menuconfig BSP_USING_ADC
  291. bool "Enable ADC"
  292. default n
  293. select RT_USING_ADC
  294. if BSP_USING_ADC
  295. config BSP_USING_ADC1
  296. bool "Enable ADC1"
  297. default n
  298. config BSP_USING_ADC2
  299. bool "Enable ADC2"
  300. default n
  301. endif
  302. menuconfig BSP_USING_CAN
  303. bool "Enable CAN"
  304. default n
  305. select RT_USING_CAN
  306. if BSP_USING_CAN
  307. config BSP_USING_CAN1
  308. bool "using CAN1"
  309. default n
  310. config BSP_USING_CAN2
  311. bool "using CAN2"
  312. default n
  313. endif
  314. menuconfig BSP_USING_SDIO
  315. bool "Enable SDIO"
  316. default n
  317. select RT_USING_SDIO
  318. if BSP_USING_SDIO
  319. config BSP_USING_SDIO1
  320. bool "Enable SDIO1"
  321. default n
  322. endif
  323. endmenu
  324. endmenu