Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F415RCT7
  3. bool
  4. select SOC_SERIES_AT32F415
  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. config BSP_USING_HWTMR4
  119. bool "Enable hardware timer4"
  120. default n
  121. config BSP_USING_HWTMR5
  122. bool "Enable hardware timer5"
  123. default n
  124. endif
  125. menuconfig BSP_USING_SPI
  126. bool "Enable SPI BUS"
  127. default n
  128. select RT_USING_SPI
  129. if BSP_USING_SPI
  130. config BSP_USING_SPI1
  131. bool "Enable SPI1 BUS"
  132. default n
  133. config BSP_SPI1_TX_USING_DMA
  134. bool "Enable SPI1 TX DMA"
  135. depends on BSP_USING_SPI1
  136. default n
  137. config BSP_SPI1_RX_USING_DMA
  138. bool "Enable SPI1 RX DMA"
  139. depends on BSP_USING_SPI1
  140. select BSP_SPI1_TX_USING_DMA
  141. default n
  142. config BSP_USING_SPI2
  143. bool "Enable SPI2 BUS"
  144. default n
  145. config BSP_SPI2_TX_USING_DMA
  146. bool "Enable SPI2 TX DMA"
  147. depends on BSP_USING_SPI2
  148. default n
  149. config BSP_SPI2_RX_USING_DMA
  150. bool "Enable SPI2 RX DMA"
  151. depends on BSP_USING_SPI2
  152. select BSP_SPI2_TX_USING_DMA
  153. default n
  154. endif
  155. menuconfig BSP_USING_I2C
  156. bool "Enable I2C BUS (software simulation)"
  157. default n
  158. select RT_USING_I2C
  159. select RT_USING_I2C_BITOPS
  160. select RT_USING_PIN
  161. if BSP_USING_I2C
  162. config BSP_USING_I2C1
  163. bool "Enable I2C1 BUS"
  164. if BSP_USING_I2C1
  165. config BSP_I2C1_SCL_PIN
  166. int "i2c1 scl pin number"
  167. range 0 63
  168. default 22
  169. config BSP_I2C1_SDA_PIN
  170. int "I2C1 sda pin number"
  171. range 0 63
  172. default 23
  173. endif
  174. config BSP_USING_I2C2
  175. bool "Enable I2C2 BUS"
  176. if BSP_USING_I2C2
  177. config BSP_I2C2_SCL_PIN
  178. int "i2c2 scl pin number"
  179. range 0 63
  180. default 26
  181. config BSP_I2C2_SDA_PIN
  182. int "I2C2 sda pin number"
  183. range 0 63
  184. default 27
  185. endif
  186. endif
  187. menuconfig BSP_USING_ADC
  188. bool "Enable ADC"
  189. default n
  190. select RT_USING_ADC
  191. if BSP_USING_ADC
  192. config BSP_USING_ADC1
  193. bool "Enable ADC1"
  194. default n
  195. endif
  196. menuconfig BSP_USING_CAN
  197. bool "Enable CAN"
  198. default n
  199. select RT_USING_CAN
  200. if BSP_USING_CAN
  201. config BSP_USING_CAN1
  202. bool "using CAN1"
  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