1
0

Kconfig 7.2 KB

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