Kconfig 7.6 KB

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