Kconfig 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32L475VE
  3. bool
  4. select SOC_SERIES_STM32L4
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_STLINK_TO_USART
  8. bool "Enable STLINK TO USART (uart1)"
  9. select BSP_USING_UART
  10. select BSP_USING_UART1
  11. default y
  12. config BSP_USING_QSPI_FLASH
  13. bool "Enable QSPI FLASH (W25Q128 qspi1)"
  14. select BSP_USING_QSPI
  15. select RT_USING_SFUD
  16. select RT_SFUD_USING_QSPI
  17. default n
  18. config BSP_USING_SDCARD
  19. bool "Enable SDCARD (spi1)"
  20. select BSP_USING_SPI
  21. select BSP_USING_SPI1
  22. select RT_USING_SPI_MSD
  23. select RT_USING_DFS
  24. select RT_USING_DFS_ELMFAT
  25. default n
  26. config BSP_USING_ICM20608
  27. bool "Enable icm20608 (i2c3)"
  28. select BSP_USING_I2C
  29. select BSP_USING_I2C3
  30. select PKG_USING_SENSORS_DRIVERS
  31. select PKG_USING_MPU6XXX
  32. select PKG_USING_MPU6XXX_LATEST_VERSION
  33. default n
  34. config BSP_USING_AHT10
  35. bool "Enable aht10 (i2c4)"
  36. select BSP_USING_I2C
  37. select BSP_USING_I2C4
  38. select PKG_USING_SENSORS_DRIVERS
  39. select PKG_USING_AHT10
  40. select PKG_USING_AHT10_LATEST_VERSION
  41. default n
  42. menuconfig BSP_USING_AUDIO
  43. bool "Enable Audio Device"
  44. select RT_USING_AUDIO
  45. select BSP_USING_I2C
  46. select BSP_USING_I2C3
  47. default n
  48. if BSP_USING_AUDIO
  49. config BSP_USING_AUDIO_PLAY
  50. bool "Enable Audio Play"
  51. default y
  52. config BSP_USING_AUDIO_RECORD
  53. bool "Enable Audio Record"
  54. default n
  55. endif
  56. endmenu
  57. menu "On-chip Peripheral Drivers"
  58. config BSP_USING_GPIO
  59. bool "Enable GPIO"
  60. select RT_USING_PIN
  61. default y
  62. menuconfig BSP_USING_UART
  63. bool "Enable UART"
  64. default y
  65. select RT_USING_SERIAL
  66. if BSP_USING_UART
  67. config BSP_USING_UART1
  68. bool "Enable UART1"
  69. default y
  70. config BSP_UART1_RX_USING_DMA
  71. bool "Enable UART1 RX DMA"
  72. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  73. default n
  74. config BSP_USING_UART2
  75. bool "Enable UART2"
  76. default n
  77. config BSP_UART2_RX_USING_DMA
  78. bool "Enable UART2 RX DMA"
  79. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  80. default n
  81. endif
  82. config BSP_USING_ON_CHIP_FLASH
  83. bool "Enable on-chip FLASH"
  84. default n
  85. menuconfig BSP_USING_SPI
  86. bool "Enable SPI BUS"
  87. default n
  88. select RT_USING_SPI
  89. if BSP_USING_SPI
  90. config BSP_USING_SPI1
  91. bool "Enable SPI1 BUS"
  92. default n
  93. config BSP_SPI1_TX_USING_DMA
  94. bool "Enable SPI1 TX DMA"
  95. depends on BSP_USING_SPI1
  96. default n
  97. config BSP_SPI1_RX_USING_DMA
  98. bool "Enable SPI1 RX DMA"
  99. depends on BSP_USING_SPI1
  100. select BSP_SPI1_TX_USING_DMA
  101. default n
  102. config BSP_USING_SPI2
  103. bool "Enable SPI2 BUS"
  104. default n
  105. config BSP_SPI2_TX_USING_DMA
  106. bool "Enable SPI2 TX DMA"
  107. depends on BSP_USING_SPI2
  108. default n
  109. config BSP_SPI2_RX_USING_DMA
  110. bool "Enable SPI2 RX DMA"
  111. depends on BSP_USING_SPI2
  112. select BSP_SPI2_TX_USING_DMA
  113. default n
  114. endif
  115. config BSP_USING_QSPI
  116. bool "Enable QSPI BUS"
  117. select RT_USING_QSPI
  118. select RT_USING_SPI
  119. default n
  120. config BSP_QSPI_USING_DMA
  121. bool "Enable QSPI DMA support"
  122. default n
  123. menuconfig BSP_USING_I2C
  124. bool "Enable I2C BUS"
  125. default n
  126. select RT_USING_I2C
  127. select RT_USING_I2C_BITOPS
  128. select RT_USING_PIN
  129. if BSP_USING_I2C
  130. menuconfig BSP_USING_I2C3
  131. bool "Enable I2C3 BUS (software simulation)"
  132. default y
  133. if BSP_USING_I2C3
  134. comment "Notice: PC0 --> 32; PC1 --> 33"
  135. config BSP_I2C3_SCL_PIN
  136. int "i2c3 scl pin number"
  137. range 1 176
  138. default 32
  139. config BSP_I2C3_SDA_PIN
  140. int "I2C3 sda pin number"
  141. range 1 176
  142. default 33
  143. endif
  144. menuconfig BSP_USING_I2C4
  145. bool "Enable I2C4 BUS (AHT10)"
  146. default n
  147. if BSP_USING_I2C4
  148. comment "Notice: PC1 --> 33; PD6 --> 54"
  149. config BSP_I2C4_SCL_PIN
  150. int "i2c4 scl pin number"
  151. range 1 176
  152. default 54
  153. config BSP_I2C4_SDA_PIN
  154. int "I2C4 sda pin number"
  155. range 1 176
  156. default 33
  157. endif
  158. endif
  159. menuconfig BSP_USING_TIM
  160. bool "Enable timer"
  161. default n
  162. select RT_USING_HWTIMER
  163. if BSP_USING_TIM
  164. config BSP_USING_TIM15
  165. bool "Enable TIM15"
  166. default n
  167. config BSP_USING_TIM16
  168. bool "Enable TIM16"
  169. default n
  170. config BSP_USING_TIM17
  171. bool "Enable TIM17"
  172. default n
  173. endif
  174. menuconfig BSP_USING_PWM
  175. bool "Enable pwm"
  176. default n
  177. select RT_USING_PWM
  178. if BSP_USING_PWM
  179. menuconfig BSP_USING_PWM1
  180. bool "Enable timer1 output pwm"
  181. default n
  182. if BSP_USING_PWM1
  183. config BSP_USING_PWM1_CH1
  184. bool "Enable PWM1 channel1"
  185. default n
  186. endif
  187. menuconfig BSP_USING_PWM2
  188. bool "Enable timer2 output pwm"
  189. default n
  190. if BSP_USING_PWM2
  191. config BSP_USING_PWM2_CH3
  192. bool "Enable PWM2 channel3"
  193. default n
  194. config BSP_USING_PWM2_CH4
  195. bool "Enable PWM2 channel4"
  196. default n
  197. endif
  198. menuconfig BSP_USING_PWM4
  199. bool "Enable timer4 output pwm"
  200. default n
  201. if BSP_USING_PWM4
  202. config BSP_USING_PWM4_CH2
  203. bool "Enable PWM4 channel2"
  204. default n
  205. config BSP_USING_PWM4_CH3
  206. bool "Enable PWM4 channel3"
  207. default n
  208. endif
  209. endif
  210. menuconfig BSP_USING_ADC
  211. bool "Enable ADC"
  212. default n
  213. select RT_USING_ADC
  214. if BSP_USING_ADC
  215. config BSP_USING_ADC1
  216. bool "Enable ADC1"
  217. default n
  218. endif
  219. menuconfig BSP_USING_ONCHIP_RTC
  220. bool "Enable RTC"
  221. select RT_USING_RTC
  222. select RT_USING_LIBC
  223. default n
  224. if BSP_USING_ONCHIP_RTC
  225. choice
  226. prompt "Select clock source"
  227. default BSP_RTC_USING_LSE
  228. config BSP_RTC_USING_LSE
  229. bool "RTC USING LSE"
  230. config BSP_RTC_USING_LSI
  231. bool "RTC USING LSI"
  232. endchoice
  233. endif
  234. config BSP_USING_WDT
  235. bool "Enable Watchdog Timer"
  236. select RT_USING_WDT
  237. default n
  238. config BSP_USING_USBD_FS
  239. bool "Enable OTGFS as USB device"
  240. select RT_USING_USB_DEVICE
  241. default n
  242. source "../libraries/HAL_Drivers/Kconfig"
  243. endmenu
  244. menu "Board extended module Drivers"
  245. config BSP_USING_NRF24L01
  246. bool "Enable NRF24L01"
  247. select BSP_USING_SPI
  248. select BSP_USING_SPI2
  249. select PKG_USING_NRF24L01
  250. default n
  251. endmenu
  252. endmenu