Kconfig 8.6 KB

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