Kconfig 6.8 KB

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