Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F407VGT7
  3. bool
  4. select SOC_SERIES_AT32F407
  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_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. config BSP_USING_ON_CHIP_FLASH
  21. bool "Enable on-chip FLASH"
  22. default n
  23. config BSP_USING_EMAC
  24. bool "Enable Ethernet"
  25. default n
  26. select RT_USING_LWIP
  27. if BSP_USING_EMAC
  28. choice
  29. prompt "Select phy"
  30. default PHY_USING_DM9162
  31. config PHY_USING_DM9162
  32. bool "PHY USING DM9162"
  33. config PHY_USING_DP83848
  34. bool "PHY USING DP83848"
  35. endchoice
  36. endif
  37. config BSP_USING_USBD
  38. bool "Enable USB BUS"
  39. select RT_USING_USB_DEVICE
  40. default n
  41. menuconfig BSP_USING_RTC
  42. bool "Enable RTC"
  43. select RT_USING_RTC
  44. default n
  45. if BSP_USING_RTC
  46. choice
  47. prompt "Select clock source"
  48. default BSP_RTC_USING_LEXT
  49. config BSP_RTC_USING_LEXT
  50. bool "RTC USING LEXT"
  51. config BSP_RTC_USING_LICK
  52. bool "RTC USING LICK"
  53. endchoice
  54. endif
  55. menuconfig BSP_USING_UART
  56. bool "Enable UART"
  57. default y
  58. select RT_USING_SERIAL
  59. if BSP_USING_UART
  60. config BSP_USING_UART1
  61. bool "Enable UART1"
  62. default y
  63. config BSP_UART1_RX_USING_DMA
  64. bool "Enable UART1 RX DMA"
  65. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  66. default n
  67. config BSP_USING_UART2
  68. bool "Enable UART2"
  69. default n
  70. config BSP_UART2_RX_USING_DMA
  71. bool "Enable UART2 RX DMA"
  72. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  73. default n
  74. config BSP_USING_UART3
  75. bool "Enable UART3"
  76. default n
  77. config BSP_UART3_RX_USING_DMA
  78. bool "Enable UART3 RX DMA"
  79. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  80. default n
  81. endif
  82. menuconfig BSP_USING_PWM
  83. bool "Enable PWM"
  84. default n
  85. select RT_USING_PWM
  86. if BSP_USING_PWM
  87. menuconfig BSP_USING_PWM1
  88. bool "Enable timer1 output pwm"
  89. default n
  90. if BSP_USING_PWM1
  91. config BSP_USING_PWM1_CH1
  92. bool "Enable PWM1 channel1"
  93. default n
  94. config BSP_USING_PWM1_CH4
  95. bool "Enable PWM1 channel4"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM2
  99. bool "Enable timer2 output pwm"
  100. default n
  101. if BSP_USING_PWM2
  102. config BSP_USING_PWM2_CH1
  103. bool "Enable PWM2 channel1"
  104. default n
  105. config BSP_USING_PWM2_CH2
  106. bool "Enable PWM2 channel2"
  107. default n
  108. endif
  109. endif
  110. menuconfig BSP_USING_HWTIMER
  111. bool "Enable HWTIMER"
  112. default n
  113. select RT_USING_HWTIMER
  114. if BSP_USING_HWTIMER
  115. config BSP_USING_HWTMR3
  116. bool "Enable hardware timer3"
  117. default n
  118. config BSP_USING_HWTMR4
  119. bool "Enable hardware timer4"
  120. default n
  121. config BSP_USING_HWTMR5
  122. bool "Enable hardware timer5"
  123. default n
  124. endif
  125. menuconfig BSP_USING_SPI
  126. bool "Enable SPI BUS"
  127. default n
  128. select RT_USING_SPI
  129. if BSP_USING_SPI
  130. config BSP_USING_SPI1
  131. bool "Enable SPI1 BUS"
  132. default n
  133. config BSP_SPI1_TX_USING_DMA
  134. bool "Enable SPI1 TX DMA"
  135. depends on BSP_USING_SPI1
  136. default n
  137. config BSP_SPI1_RX_USING_DMA
  138. bool "Enable SPI1 RX DMA"
  139. depends on BSP_USING_SPI1
  140. select BSP_SPI1_TX_USING_DMA
  141. default n
  142. config BSP_USING_SPI2
  143. bool "Enable SPI2 BUS"
  144. default n
  145. config BSP_SPI2_TX_USING_DMA
  146. bool "Enable SPI2 TX DMA"
  147. depends on BSP_USING_SPI2
  148. default n
  149. config BSP_SPI2_RX_USING_DMA
  150. bool "Enable SPI2 RX DMA"
  151. depends on BSP_USING_SPI2
  152. select BSP_SPI2_TX_USING_DMA
  153. default n
  154. endif
  155. menuconfig BSP_USING_I2C
  156. bool "Enable I2C BUS (software simulation)"
  157. default n
  158. select RT_USING_I2C
  159. select RT_USING_I2C_BITOPS
  160. select RT_USING_PIN
  161. if BSP_USING_I2C
  162. config BSP_USING_I2C1
  163. bool "Enable I2C1 BUS"
  164. if BSP_USING_I2C1
  165. config BSP_I2C1_SCL_PIN
  166. int "i2c1 scl pin number"
  167. range 0 63
  168. default 22
  169. config BSP_I2C1_SDA_PIN
  170. int "I2C1 sda pin number"
  171. range 0 63
  172. default 23
  173. endif
  174. config BSP_USING_I2C2
  175. bool "Enable I2C2 BUS"
  176. if BSP_USING_I2C2
  177. config BSP_I2C2_SCL_PIN
  178. int "i2c2 scl pin number"
  179. range 0 63
  180. default 26
  181. config BSP_I2C2_SDA_PIN
  182. int "I2C2 sda pin number"
  183. range 0 63
  184. default 27
  185. endif
  186. config BSP_USING_I2C3
  187. bool "Enable I2C3 BUS"
  188. if BSP_USING_I2C3
  189. config BSP_I2C3_SCL_PIN
  190. int "i2c3 scl pin number"
  191. range 0 63
  192. default 8
  193. config BSP_I2C3_SDA_PIN
  194. int "I2C3 sda pin number"
  195. range 0 63
  196. default 41
  197. endif
  198. endif
  199. menuconfig BSP_USING_ADC
  200. bool "Enable ADC"
  201. default n
  202. select RT_USING_ADC
  203. if BSP_USING_ADC
  204. config BSP_USING_ADC1
  205. bool "Enable ADC1"
  206. default n
  207. config BSP_USING_ADC2
  208. bool "Enable ADC2"
  209. default n
  210. endif
  211. menuconfig BSP_USING_CAN
  212. bool "Enable CAN"
  213. default n
  214. select RT_USING_CAN
  215. if BSP_USING_CAN
  216. config BSP_USING_CAN1
  217. bool "using CAN1"
  218. default n
  219. config BSP_USING_CAN2
  220. bool "using CAN2"
  221. default n
  222. endif
  223. menuconfig BSP_USING_SDIO
  224. bool "Enable SDIO"
  225. default n
  226. select RT_USING_SDIO
  227. if BSP_USING_SDIO
  228. config BSP_USING_SDIO1
  229. bool "Enable SDIO1"
  230. default n
  231. endif
  232. endmenu
  233. endmenu