Kconfig 8.6 KB

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