Kconfig 7.2 KB

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