Kconfig 6.8 KB

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