Kconfig 6.9 KB

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