Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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_USBOTG
  27. bool "Enable USB BUS"
  28. default n
  29. if BSP_USING_USBOTG
  30. menuconfig BSP_USING_USBOTG1
  31. bool "Enable USB BUS1"
  32. default n
  33. if BSP_USING_USBOTG1
  34. config BSP_USING_DEVICE_USBOTG1
  35. bool "Enable USB1 Deivce"
  36. select RT_USING_USB_DEVICE
  37. default n
  38. config BSP_USING_HOST_USBOTG1
  39. bool "Enable USB1 Host"
  40. select RT_USING_USB_HOST
  41. default n
  42. endif
  43. menuconfig BSP_USING_USBOTG2
  44. bool "Enable USB BUS2"
  45. default n
  46. if BSP_USING_USBOTG2
  47. config BSP_USING_DEVICE_USBOTG2
  48. bool "Enable USB2 Deivce"
  49. select RT_USING_USB_DEVICE
  50. default n
  51. config BSP_USING_HOST_USBOTG2
  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. config PHY_USING_LAN8720
  70. bool "PHY USING LAN8720"
  71. config PHY_USING_YT8512
  72. bool "PHY USING YT8512"
  73. endchoice
  74. endif
  75. menuconfig BSP_USING_QSPI
  76. bool "Enable QSPI BUS"
  77. default n
  78. select RT_USING_QSPI
  79. select RT_USING_SPI
  80. if BSP_USING_QSPI
  81. config BSP_USING_QSPI1
  82. bool "Enable QSPI1"
  83. default n
  84. config BSP_USING_QSPI2
  85. bool "Enable QSPI2"
  86. default n
  87. endif
  88. menuconfig BSP_USING_RTC
  89. bool "Enable RTC"
  90. select RT_USING_RTC
  91. default n
  92. if BSP_USING_RTC
  93. choice
  94. prompt "Select clock source"
  95. default BSP_RTC_USING_LEXT
  96. config BSP_RTC_USING_LEXT
  97. bool "RTC USING LEXT"
  98. config BSP_RTC_USING_LICK
  99. bool "RTC USING LICK"
  100. endchoice
  101. endif
  102. menuconfig BSP_USING_UART
  103. bool "Enable UART"
  104. default y
  105. select RT_USING_SERIAL
  106. if BSP_USING_UART
  107. menuconfig BSP_USING_UART1
  108. bool "Enable UART1"
  109. default y
  110. if BSP_USING_UART1
  111. config BSP_UART1_RX_USING_DMA
  112. bool "Enable UART1 RX DMA"
  113. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  114. default n
  115. config BSP_UART1_TX_USING_DMA
  116. bool "Enable UART1 TX DMA"
  117. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  118. default n
  119. config BSP_UART1_RX_BUFSIZE
  120. int "Set UART1 RX buffer size"
  121. range 64 65535
  122. depends on RT_USING_SERIAL_V2
  123. default 256
  124. config BSP_UART1_TX_BUFSIZE
  125. int "Set UART1 TX buffer size"
  126. range 0 65535
  127. depends on RT_USING_SERIAL_V2
  128. default 0
  129. config BSP_UART1_DMA_PING_BUFSIZE
  130. int "Set UART1 RX DMA ping-pong buffer size"
  131. range 32 65535
  132. depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
  133. default 64
  134. endif
  135. menuconfig BSP_USING_UART2
  136. bool "Enable UART2"
  137. default y
  138. if BSP_USING_UART2
  139. config BSP_UART2_RX_USING_DMA
  140. bool "Enable UART2 RX DMA"
  141. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  142. default n
  143. config BSP_UART2_TX_USING_DMA
  144. bool "Enable UART2 TX DMA"
  145. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  146. default n
  147. config BSP_UART2_RX_BUFSIZE
  148. int "Set UART2 RX buffer size"
  149. range 64 65535
  150. depends on RT_USING_SERIAL_V2
  151. default 256
  152. config BSP_UART2_TX_BUFSIZE
  153. int "Set UART2 TX buffer size"
  154. range 0 65535
  155. depends on RT_USING_SERIAL_V2
  156. default 0
  157. config BSP_UART2_DMA_PING_BUFSIZE
  158. int "Set UART2 RX DMA ping-pong buffer size"
  159. range 32 65535
  160. depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
  161. default 64
  162. endif
  163. menuconfig BSP_USING_UART3
  164. bool "Enable UART3"
  165. default y
  166. if BSP_USING_UART3
  167. config BSP_UART3_RX_USING_DMA
  168. bool "Enable UART3 RX DMA"
  169. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  170. default n
  171. config BSP_UART3_TX_USING_DMA
  172. bool "Enable UART3 TX DMA"
  173. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  174. default n
  175. config BSP_UART3_RX_BUFSIZE
  176. int "Set UART3 RX buffer size"
  177. range 64 65535
  178. depends on RT_USING_SERIAL_V2
  179. default 256
  180. config BSP_UART3_TX_BUFSIZE
  181. int "Set UART3 TX buffer size"
  182. range 0 65535
  183. depends on RT_USING_SERIAL_V2
  184. default 0
  185. config BSP_UART3_DMA_PING_BUFSIZE
  186. int "Set UART3 RX DMA ping-pong buffer size"
  187. range 32 65535
  188. depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
  189. default 64
  190. endif
  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_CH4
  205. bool "Enable PWM1 channel4"
  206. default n
  207. endif
  208. menuconfig BSP_USING_PWM2
  209. bool "Enable timer2 output pwm"
  210. default n
  211. if BSP_USING_PWM2
  212. config BSP_USING_PWM2_CH1
  213. bool "Enable PWM2 channel1"
  214. default n
  215. config BSP_USING_PWM2_CH2
  216. bool "Enable PWM2 channel2"
  217. default n
  218. endif
  219. endif
  220. menuconfig BSP_USING_HWTIMER
  221. bool "Enable HWTIMER"
  222. default n
  223. select RT_USING_HWTIMER
  224. if BSP_USING_HWTIMER
  225. config BSP_USING_HWTMR3
  226. bool "Enable hardware timer3"
  227. default n
  228. config BSP_USING_HWTMR4
  229. bool "Enable hardware timer4"
  230. default n
  231. config BSP_USING_HWTMR5
  232. bool "Enable hardware timer5"
  233. default n
  234. endif
  235. menuconfig BSP_USING_SPI
  236. bool "Enable SPI BUS"
  237. default n
  238. select RT_USING_SPI
  239. if BSP_USING_SPI
  240. config BSP_USING_SPI1
  241. bool "Enable SPI1 BUS"
  242. default n
  243. config BSP_SPI1_TX_USING_DMA
  244. bool "Enable SPI1 TX DMA"
  245. depends on BSP_USING_SPI1
  246. default n
  247. config BSP_SPI1_RX_USING_DMA
  248. bool "Enable SPI1 RX DMA"
  249. depends on BSP_USING_SPI1
  250. select BSP_SPI1_TX_USING_DMA
  251. default n
  252. config BSP_USING_SPI2
  253. bool "Enable SPI2 BUS"
  254. default n
  255. config BSP_SPI2_TX_USING_DMA
  256. bool "Enable SPI2 TX DMA"
  257. depends on BSP_USING_SPI2
  258. default n
  259. config BSP_SPI2_RX_USING_DMA
  260. bool "Enable SPI2 RX DMA"
  261. depends on BSP_USING_SPI2
  262. select BSP_SPI2_TX_USING_DMA
  263. default n
  264. endif
  265. menuconfig BSP_USING_I2C
  266. bool "Enable I2C BUS (software simulation)"
  267. default n
  268. select RT_USING_I2C
  269. select RT_USING_I2C_BITOPS
  270. select RT_USING_PIN
  271. if BSP_USING_I2C
  272. config BSP_USING_I2C1
  273. bool "Enable I2C1 BUS"
  274. if BSP_USING_I2C1
  275. config BSP_I2C1_SCL_PIN
  276. int "i2c1 scl pin number"
  277. range 0 63
  278. default 22
  279. config BSP_I2C1_SDA_PIN
  280. int "I2C1 sda pin number"
  281. range 0 63
  282. default 23
  283. endif
  284. config BSP_USING_I2C2
  285. bool "Enable I2C2 BUS"
  286. if BSP_USING_I2C2
  287. config BSP_I2C2_SCL_PIN
  288. int "i2c2 scl pin number"
  289. range 0 63
  290. default 26
  291. config BSP_I2C2_SDA_PIN
  292. int "I2C2 sda pin number"
  293. range 0 63
  294. default 27
  295. endif
  296. config BSP_USING_I2C3
  297. bool "Enable I2C3 BUS"
  298. if BSP_USING_I2C3
  299. config BSP_I2C3_SCL_PIN
  300. int "i2c3 scl pin number"
  301. range 0 63
  302. default 8
  303. config BSP_I2C3_SDA_PIN
  304. int "I2C3 sda pin number"
  305. range 0 63
  306. default 41
  307. endif
  308. endif
  309. menuconfig BSP_USING_HARD_I2C
  310. bool "Enable I2C BUS (hardware driver)"
  311. default n
  312. select RT_USING_I2C
  313. if BSP_USING_HARD_I2C
  314. config BSP_USING_HARD_I2C1
  315. bool "Enable I2C1 BUS"
  316. default n
  317. config BSP_I2C1_TX_USING_DMA
  318. bool "Enable I2C1 TX DMA"
  319. depends on BSP_USING_HARD_I2C1
  320. default n
  321. config BSP_I2C1_RX_USING_DMA
  322. bool "Enable I2C1 RX DMA"
  323. depends on BSP_USING_HARD_I2C1
  324. select BSP_I2C1_TX_USING_DMA
  325. default n
  326. config BSP_USING_HARD_I2C2
  327. bool "Enable I2C2 BUS"
  328. default n
  329. config BSP_I2C2_TX_USING_DMA
  330. bool "Enable I2C2 TX DMA"
  331. depends on BSP_USING_HARD_I2C2
  332. default n
  333. config BSP_I2C2_RX_USING_DMA
  334. bool "Enable I2C2 RX DMA"
  335. depends on BSP_USING_HARD_I2C2
  336. select BSP_I2C2_TX_USING_DMA
  337. default n
  338. config BSP_USING_HARD_I2C3
  339. bool "Enable I2C3 BUS"
  340. default n
  341. config BSP_I2C3_TX_USING_DMA
  342. bool "Enable I2C3 TX DMA"
  343. depends on BSP_USING_HARD_I2C3
  344. default n
  345. config BSP_I2C3_RX_USING_DMA
  346. bool "Enable I2C3 RX DMA"
  347. depends on BSP_USING_HARD_I2C3
  348. select BSP_I2C3_TX_USING_DMA
  349. default n
  350. endif
  351. menuconfig BSP_USING_ADC
  352. bool "Enable ADC"
  353. default n
  354. select RT_USING_ADC
  355. if BSP_USING_ADC
  356. config BSP_USING_ADC1
  357. bool "Enable ADC1"
  358. default n
  359. config BSP_USING_ADC2
  360. bool "Enable ADC2"
  361. default n
  362. endif
  363. menuconfig BSP_USING_DAC
  364. bool "Enable DAC"
  365. default n
  366. select RT_USING_DAC
  367. if BSP_USING_DAC
  368. config BSP_USING_DAC1
  369. bool "Enable DAC1"
  370. default n
  371. endif
  372. menuconfig BSP_USING_CAN
  373. bool "Enable CAN"
  374. default n
  375. select RT_USING_CAN
  376. if BSP_USING_CAN
  377. config BSP_USING_CAN1
  378. bool "using CAN1"
  379. default n
  380. config BSP_USING_CAN2
  381. bool "using CAN2"
  382. default n
  383. endif
  384. menuconfig BSP_USING_SDIO
  385. bool "Enable SDIO"
  386. default n
  387. select RT_USING_SDIO
  388. if BSP_USING_SDIO
  389. config BSP_USING_SDIO1
  390. bool "Enable SDIO1"
  391. default n
  392. endif
  393. endmenu
  394. endmenu