Kconfig 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32L496ZG
  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 (lpuart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_LPUART1
  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. menuconfig BSP_USING_UART
  21. bool "Enable UART"
  22. default y
  23. select RT_USING_SERIAL
  24. if BSP_USING_UART
  25. config BSP_USING_UART1
  26. bool "Enable UART1"
  27. default n
  28. config BSP_UART1_RX_USING_DMA
  29. bool "Enable UART1 RX DMA"
  30. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  31. default n
  32. config BSP_USING_UART2
  33. bool "Enable UART2"
  34. default n
  35. config BSP_UART2_RX_USING_DMA
  36. bool "Enable UART2 RX DMA"
  37. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  38. default n
  39. config BSP_USING_LPUART1
  40. bool "Enable LPUART1"
  41. default n
  42. config BSP_LPUART1_RX_USING_DMA
  43. bool "Enable LPUART1 RX DMA"
  44. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  45. default n
  46. endif
  47. menuconfig BSP_USING_I2C
  48. bool "Enable I2C BUS"
  49. default n
  50. select RT_USING_I2C
  51. select RT_USING_I2C_BITOPS
  52. select RT_USING_PIN
  53. if BSP_USING_I2C
  54. menuconfig BSP_USING_I2C3
  55. bool "Enable I2C3 BUS"
  56. default y
  57. if BSP_USING_I2C3
  58. comment "Notice: PC0 --> 32; PC1 --> 33"
  59. config BSP_I2C3_SCL_PIN
  60. int "i2c3 scl pin number"
  61. range 1 176
  62. default 32
  63. config BSP_I2C3_SDA_PIN
  64. int "I2C3 sda pin number"
  65. range 1 176
  66. default 33
  67. endif
  68. menuconfig BSP_USING_I2C4
  69. bool "Enable I2C4 BUS"
  70. default n
  71. if BSP_USING_I2C4
  72. comment "Notice: PC1 --> 33; PD6 --> 54"
  73. config BSP_I2C4_SCL_PIN
  74. int "i2c4 scl pin number"
  75. range 1 176
  76. default 54
  77. config BSP_I2C4_SDA_PIN
  78. int "I2C4 sda pin number"
  79. range 1 176
  80. default 33
  81. endif
  82. endif
  83. menuconfig BSP_USING_SPI
  84. bool "Enable SPI Bus"
  85. default n
  86. select RT_USING_SPI
  87. if BSP_USING_SPI
  88. config BSP_USING_SPI1
  89. bool "Enable SPI1 Bus"
  90. default n
  91. config BSP_SPI1_TX_USING_DMA
  92. bool "Enable SPI1 TX DMA"
  93. depends on BSP_USING_SPI1
  94. default n
  95. config BSP_SPI1_RX_USING_DMA
  96. bool "Enable SPI1 RX DMA"
  97. depends on BSP_USING_SPI1
  98. select BSP_SPI1_TX_USING_DMA
  99. default n
  100. config BSP_USING_SPI2
  101. bool "Enable SPI2 Bus"
  102. default n
  103. config BSP_SPI2_TX_USING_DMA
  104. bool "Enable SPI2 TX DMA"
  105. depends on BSP_USING_SPI2
  106. default n
  107. config BSP_SPI2_RX_USING_DMA
  108. bool "Enable SPI2 RX DMA"
  109. depends on BSP_USING_SPI2
  110. select BSP_SPI2_TX_USING_DMA
  111. default n
  112. config BSP_USING_SPI3
  113. bool "Enable SPI3 Bus"
  114. default n
  115. config BSP_SPI3_TX_USING_DMA
  116. bool "Enable SPI3 TX DMA"
  117. depends on BSP_USING_SPI3
  118. default n
  119. config BSP_SPI3_RX_USING_DMA
  120. bool "Enable SPI3 RX DMA"
  121. depends on BSP_USING_SPI3
  122. select BSP_SPI3_TX_USING_DMA
  123. default n
  124. endif
  125. menuconfig BSP_USING_QSPI
  126. bool "Enable QSPI Bus"
  127. select RT_USING_QSPI
  128. select RT_USING_SPI
  129. default n
  130. if BSP_USING_QSPI
  131. config BSP_QSPI_USING_DMA
  132. bool "Enable QSPI DMA support"
  133. depends on BSP_USING_QSPI
  134. default n
  135. endif
  136. menuconfig BSP_USING_TIM
  137. bool "Enable timer"
  138. default n
  139. select RT_USING_HWTIMER
  140. if BSP_USING_TIM
  141. config BSP_USING_TIM7
  142. bool "Enable TIM7"
  143. default n
  144. config BSP_USING_TIM15
  145. bool "Enable TIM15"
  146. default n
  147. config BSP_USING_TIM16
  148. bool "Enable TIM16"
  149. default n
  150. config BSP_USING_TIM17
  151. bool "Enable TIM17"
  152. default n
  153. endif
  154. menuconfig BSP_USING_PWM
  155. bool "Enable PWM"
  156. default n
  157. select RT_USING_PWM
  158. if BSP_USING_PWM
  159. menuconfig BSP_USING_PWM2
  160. bool "Enable timer2 output PWM"
  161. default n
  162. if BSP_USING_PWM2
  163. config BSP_USING_PWM2_CH3
  164. bool "Enable PWM2 channel3"
  165. default n
  166. config BSP_USING_PWM2_CH4
  167. bool "Enable PWM2 channel4"
  168. default n
  169. endif
  170. menuconfig BSP_USING_PWM4
  171. bool "Enable timer4 output PWM"
  172. default n
  173. if BSP_USING_PWM4
  174. config BSP_USING_PWM4_CH1
  175. bool "Enable PWM4 channel1"
  176. default n
  177. config BSP_USING_PWM4_CH2
  178. bool "Enable PWM4 channel2"
  179. default n
  180. config BSP_USING_PWM4_CH3
  181. bool "Enable PWM4 channel3"
  182. default n
  183. config BSP_USING_PWM4_CH4
  184. bool "Enable PWM4 channel4"
  185. default n
  186. endif
  187. endif
  188. menuconfig BSP_USING_ADC
  189. bool "Enable ADC"
  190. default n
  191. select RT_USING_ADC
  192. if BSP_USING_ADC
  193. config BSP_USING_ADC1
  194. bool "Enable ADC1"
  195. default n
  196. endif
  197. menuconfig BSP_USING_DAC
  198. bool "Enable DAC"
  199. default n
  200. select RT_USING_DAC
  201. if BSP_USING_DAC
  202. config BSP_USING_DAC1
  203. bool "Enable DAC1"
  204. default n
  205. endif
  206. config BSP_USING_WDT
  207. bool "Enable Watchdog Timer"
  208. select RT_USING_WDT
  209. default n
  210. config BSP_USING_USBD
  211. bool "Enable OTGFS as USB device"
  212. select RT_USING_USB_DEVICE
  213. default n
  214. config BSP_USBD_EP_ISOC
  215. bool
  216. default n
  217. depends on BSP_USING_USBD
  218. menuconfig BSP_USING_ONCHIP_RTC
  219. bool "Enable RTC"
  220. select RT_USING_RTC
  221. default n
  222. if BSP_USING_ONCHIP_RTC
  223. choice
  224. prompt "Select clock source"
  225. default BSP_RTC_USING_LSE
  226. config BSP_RTC_USING_LSE
  227. bool "RTC USING LSE"
  228. config BSP_RTC_USING_LSI
  229. bool "RTC USING LSI"
  230. endchoice
  231. endif
  232. config BSP_USING_ON_CHIP_FLASH
  233. bool "Enable on-chip FLASH"
  234. select RT_USING_FAL
  235. default n
  236. config BSP_USING_ON_CHIP_FLASH_FATFS
  237. bool "Enable onchip flash with FatFS"
  238. depends on BSP_USING_ON_CHIP_FLASH
  239. select RT_USING_DFS
  240. select RT_USING_DFS_ELMFAT
  241. default n
  242. source "../libraries/HAL_Drivers/Kconfig"
  243. endmenu
  244. endmenu