Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F457ZET7
  3. bool
  4. select SOC_SERIES_AT32F457
  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. endif
  44. config BSP_USING_EMAC
  45. bool "Enable Ethernet"
  46. default n
  47. select RT_USING_LWIP
  48. if BSP_USING_EMAC
  49. choice
  50. prompt "Select phy"
  51. default PHY_USING_DM9162
  52. config PHY_USING_DM9162
  53. bool "PHY USING DM9162"
  54. config PHY_USING_DP83848
  55. bool "PHY USING DP83848"
  56. config PHY_USING_LAN8720
  57. bool "PHY USING LAN8720"
  58. config PHY_USING_YT8512
  59. bool "PHY USING YT8512"
  60. endchoice
  61. endif
  62. menuconfig BSP_USING_QSPI
  63. bool "Enable QSPI BUS"
  64. default n
  65. select RT_USING_QSPI
  66. select RT_USING_SPI
  67. if BSP_USING_QSPI
  68. config BSP_USING_QSPI1
  69. bool "Enable QSPI1"
  70. default n
  71. endif
  72. menuconfig BSP_USING_RTC
  73. bool "Enable RTC"
  74. select RT_USING_RTC
  75. default n
  76. if BSP_USING_RTC
  77. choice
  78. prompt "Select clock source"
  79. default BSP_RTC_USING_LEXT
  80. config BSP_RTC_USING_LEXT
  81. bool "RTC USING LEXT"
  82. config BSP_RTC_USING_LICK
  83. bool "RTC USING LICK"
  84. endchoice
  85. endif
  86. menuconfig BSP_USING_UART
  87. bool "Enable UART"
  88. default y
  89. select RT_USING_SERIAL
  90. if BSP_USING_UART
  91. menuconfig BSP_USING_UART1
  92. bool "Enable UART1"
  93. default y
  94. if BSP_USING_UART1
  95. config BSP_UART1_RX_USING_DMA
  96. bool "Enable UART1 RX DMA"
  97. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  98. default n
  99. config BSP_UART1_TX_USING_DMA
  100. bool "Enable UART1 TX DMA"
  101. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  102. default n
  103. config BSP_UART1_RX_BUFSIZE
  104. int "Set UART1 RX buffer size"
  105. range 64 65535
  106. depends on RT_USING_SERIAL_V2
  107. default 256
  108. config BSP_UART1_TX_BUFSIZE
  109. int "Set UART1 TX buffer size"
  110. range 0 65535
  111. depends on RT_USING_SERIAL_V2
  112. default 0
  113. endif
  114. menuconfig BSP_USING_UART2
  115. bool "Enable UART2"
  116. default y
  117. if BSP_USING_UART2
  118. config BSP_UART2_RX_USING_DMA
  119. bool "Enable UART2 RX DMA"
  120. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  121. default n
  122. config BSP_UART2_TX_USING_DMA
  123. bool "Enable UART2 TX DMA"
  124. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  125. default n
  126. config BSP_UART2_RX_BUFSIZE
  127. int "Set UART2 RX buffer size"
  128. range 64 65535
  129. depends on RT_USING_SERIAL_V2
  130. default 256
  131. config BSP_UART2_TX_BUFSIZE
  132. int "Set UART2 TX buffer size"
  133. range 0 65535
  134. depends on RT_USING_SERIAL_V2
  135. default 0
  136. endif
  137. menuconfig BSP_USING_UART3
  138. bool "Enable UART3"
  139. default y
  140. if BSP_USING_UART3
  141. config BSP_UART3_RX_USING_DMA
  142. bool "Enable UART3 RX DMA"
  143. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  144. default n
  145. config BSP_UART3_TX_USING_DMA
  146. bool "Enable UART3 TX DMA"
  147. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  148. default n
  149. config BSP_UART3_RX_BUFSIZE
  150. int "Set UART3 RX buffer size"
  151. range 64 65535
  152. depends on RT_USING_SERIAL_V2
  153. default 256
  154. config BSP_UART3_TX_BUFSIZE
  155. int "Set UART3 TX buffer size"
  156. range 0 65535
  157. depends on RT_USING_SERIAL_V2
  158. default 0
  159. endif
  160. endif
  161. menuconfig BSP_USING_PWM
  162. bool "Enable PWM"
  163. default n
  164. select RT_USING_PWM
  165. if BSP_USING_PWM
  166. menuconfig BSP_USING_PWM1
  167. bool "Enable timer1 output pwm"
  168. default n
  169. if BSP_USING_PWM1
  170. config BSP_USING_PWM1_CH1
  171. bool "Enable PWM1 channel1"
  172. default n
  173. config BSP_USING_PWM1_CH4
  174. bool "Enable PWM1 channel4"
  175. default n
  176. endif
  177. menuconfig BSP_USING_PWM2
  178. bool "Enable timer2 output pwm"
  179. default n
  180. if BSP_USING_PWM2
  181. config BSP_USING_PWM2_CH1
  182. bool "Enable PWM2 channel1"
  183. default n
  184. config BSP_USING_PWM2_CH2
  185. bool "Enable PWM2 channel2"
  186. default n
  187. endif
  188. endif
  189. menuconfig BSP_USING_HWTIMER
  190. bool "Enable HWTIMER"
  191. default n
  192. select RT_USING_HWTIMER
  193. if BSP_USING_HWTIMER
  194. config BSP_USING_HWTMR3
  195. bool "Enable hardware timer3"
  196. default n
  197. config BSP_USING_HWTMR4
  198. bool "Enable hardware timer4"
  199. default n
  200. config BSP_USING_HWTMR5
  201. bool "Enable hardware timer5"
  202. default n
  203. endif
  204. menuconfig BSP_USING_SPI
  205. bool "Enable SPI BUS"
  206. default n
  207. select RT_USING_SPI
  208. if BSP_USING_SPI
  209. config BSP_USING_SPI1
  210. bool "Enable SPI1 BUS"
  211. default n
  212. config BSP_SPI1_TX_USING_DMA
  213. bool "Enable SPI1 TX DMA"
  214. depends on BSP_USING_SPI1
  215. default n
  216. config BSP_SPI1_RX_USING_DMA
  217. bool "Enable SPI1 RX DMA"
  218. depends on BSP_USING_SPI1
  219. select BSP_SPI1_TX_USING_DMA
  220. default n
  221. config BSP_USING_SPI2
  222. bool "Enable SPI2 BUS"
  223. default n
  224. config BSP_SPI2_TX_USING_DMA
  225. bool "Enable SPI2 TX DMA"
  226. depends on BSP_USING_SPI2
  227. default n
  228. config BSP_SPI2_RX_USING_DMA
  229. bool "Enable SPI2 RX DMA"
  230. depends on BSP_USING_SPI2
  231. select BSP_SPI2_TX_USING_DMA
  232. default n
  233. endif
  234. menuconfig BSP_USING_I2C
  235. bool "Enable I2C BUS (software simulation)"
  236. default n
  237. select RT_USING_I2C
  238. select RT_USING_I2C_BITOPS
  239. select RT_USING_PIN
  240. if BSP_USING_I2C
  241. config BSP_USING_I2C1
  242. bool "Enable I2C1 BUS"
  243. if BSP_USING_I2C1
  244. config BSP_I2C1_SCL_PIN
  245. int "i2c1 scl pin number"
  246. range 0 63
  247. default 22
  248. config BSP_I2C1_SDA_PIN
  249. int "I2C1 sda pin number"
  250. range 0 63
  251. default 23
  252. endif
  253. config BSP_USING_I2C2
  254. bool "Enable I2C2 BUS"
  255. if BSP_USING_I2C2
  256. config BSP_I2C2_SCL_PIN
  257. int "i2c2 scl pin number"
  258. range 0 63
  259. default 26
  260. config BSP_I2C2_SDA_PIN
  261. int "I2C2 sda pin number"
  262. range 0 63
  263. default 27
  264. endif
  265. config BSP_USING_I2C3
  266. bool "Enable I2C3 BUS"
  267. if BSP_USING_I2C3
  268. config BSP_I2C3_SCL_PIN
  269. int "i2c3 scl pin number"
  270. range 0 63
  271. default 8
  272. config BSP_I2C3_SDA_PIN
  273. int "I2C3 sda pin number"
  274. range 0 63
  275. default 41
  276. endif
  277. endif
  278. menuconfig BSP_USING_HARD_I2C
  279. bool "Enable I2C BUS (hardware driver)"
  280. default n
  281. select RT_USING_I2C
  282. if BSP_USING_HARD_I2C
  283. config BSP_USING_HARD_I2C1
  284. bool "Enable I2C1 BUS"
  285. default n
  286. config BSP_I2C1_TX_USING_DMA
  287. bool "Enable I2C1 TX DMA"
  288. depends on BSP_USING_HARD_I2C1
  289. default n
  290. config BSP_I2C1_RX_USING_DMA
  291. bool "Enable I2C1 RX DMA"
  292. depends on BSP_USING_HARD_I2C1
  293. select BSP_I2C1_TX_USING_DMA
  294. default n
  295. config BSP_USING_HARD_I2C2
  296. bool "Enable I2C2 BUS"
  297. default n
  298. config BSP_I2C2_TX_USING_DMA
  299. bool "Enable I2C2 TX DMA"
  300. depends on BSP_USING_HARD_I2C2
  301. default n
  302. config BSP_I2C2_RX_USING_DMA
  303. bool "Enable I2C2 RX DMA"
  304. depends on BSP_USING_HARD_I2C2
  305. select BSP_I2C2_TX_USING_DMA
  306. default n
  307. config BSP_USING_HARD_I2C3
  308. bool "Enable I2C3 BUS"
  309. default n
  310. config BSP_I2C3_TX_USING_DMA
  311. bool "Enable I2C3 TX DMA"
  312. depends on BSP_USING_HARD_I2C3
  313. default n
  314. config BSP_I2C3_RX_USING_DMA
  315. bool "Enable I2C3 RX DMA"
  316. depends on BSP_USING_HARD_I2C3
  317. select BSP_I2C3_TX_USING_DMA
  318. default n
  319. endif
  320. menuconfig BSP_USING_ADC
  321. bool "Enable ADC"
  322. default n
  323. select RT_USING_ADC
  324. if BSP_USING_ADC
  325. config BSP_USING_ADC1
  326. bool "Enable ADC1"
  327. default n
  328. config BSP_USING_ADC2
  329. bool "Enable ADC2"
  330. default n
  331. endif
  332. menuconfig BSP_USING_DAC
  333. bool "Enable DAC"
  334. default n
  335. select RT_USING_DAC
  336. if BSP_USING_DAC
  337. config BSP_USING_DAC1
  338. bool "Enable DAC1"
  339. default n
  340. endif
  341. menuconfig BSP_USING_CAN_V2
  342. bool "Enable CAN"
  343. default n
  344. select RT_USING_CAN
  345. if BSP_USING_CAN_V2
  346. config BSP_USING_CAN1
  347. bool "using CAN1"
  348. default n
  349. config BSP_USING_CAN2
  350. bool "using CAN2"
  351. default n
  352. config BSP_USING_CAN3
  353. bool "using CAN3"
  354. default n
  355. endif
  356. menuconfig BSP_USING_SDIO
  357. bool "Enable SDIO"
  358. default n
  359. select RT_USING_SDIO
  360. if BSP_USING_SDIO
  361. config BSP_USING_SDIO1
  362. bool "Enable SDIO1"
  363. default n
  364. endif
  365. endmenu
  366. endmenu