Kconfig 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32L496VG
  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. config BSP_USING_SDCARD
  15. bool "Enable SDCARD (sdio)"
  16. select BSP_USING_SDIO
  17. select RT_USING_DFS
  18. select RT_USING_DFS_ELMFAT
  19. default n
  20. endmenu
  21. menu "On-chip Peripheral Drivers"
  22. config BSP_USING_GPIO
  23. bool "Enable GPIO"
  24. select RT_USING_PIN
  25. default y
  26. menuconfig BSP_USING_UART
  27. bool "Enable UART"
  28. default y
  29. select RT_USING_SERIAL
  30. if BSP_USING_UART
  31. config BSP_USING_LPUART1
  32. bool "Enable LPUART1"
  33. default y
  34. config BSP_LPUART1_RX_USING_DMA
  35. bool "Enable LPUART1 RX DMA"
  36. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  37. default n
  38. config BSP_USING_UART2
  39. bool "Enable UART2"
  40. default n
  41. config BSP_UART2_RX_USING_DMA
  42. bool "Enable UART2 RX DMA"
  43. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  44. default n
  45. config BSP_USING_UART3
  46. bool "Enable UART3"
  47. default n
  48. config BSP_UART3_RX_USING_DMA
  49. bool "Enable UART3 RX DMA"
  50. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  51. default n
  52. endif
  53. config BSP_USING_ON_CHIP_FLASH
  54. bool "Enable on-chip FLASH"
  55. select RT_USING_FAL
  56. default n
  57. config BSP_USING_ON_CHIP_FLASH_FATFS
  58. bool "Enable onchip flash with FatFS"
  59. depends on BSP_USING_ON_CHIP_FLASH
  60. select RT_USING_DFS
  61. select RT_USING_DFS_ELMFAT
  62. default n
  63. menuconfig BSP_USING_SPI
  64. bool "Enable SPI BUS"
  65. default n
  66. select RT_USING_SPI
  67. if BSP_USING_SPI
  68. config BSP_USING_SPI1
  69. bool "Enable SPI1 BUS"
  70. default n
  71. config BSP_SPI1_TX_USING_DMA
  72. bool "Enable SPI1 TX DMA"
  73. depends on BSP_USING_SPI1
  74. default n
  75. config BSP_SPI1_RX_USING_DMA
  76. bool "Enable SPI1 RX DMA"
  77. depends on BSP_USING_SPI1
  78. select BSP_SPI1_TX_USING_DMA
  79. default n
  80. config BSP_USING_SPI2
  81. bool "Enable SPI2 BUS"
  82. default n
  83. config BSP_SPI2_TX_USING_DMA
  84. bool "Enable SPI2 TX DMA"
  85. depends on BSP_USING_SPI2
  86. default n
  87. config BSP_SPI2_RX_USING_DMA
  88. bool "Enable SPI2 RX DMA"
  89. depends on BSP_USING_SPI2
  90. select BSP_SPI2_TX_USING_DMA
  91. default n
  92. endif
  93. menuconfig BSP_USING_I2C
  94. bool "Enable I2C BUS"
  95. default n
  96. select RT_USING_I2C
  97. select RT_USING_I2C_BITOPS
  98. select RT_USING_PIN
  99. if BSP_USING_I2C
  100. menuconfig BSP_USING_I2C2
  101. bool "Enable I2C2 BUS (software simulation)"
  102. default n
  103. if BSP_USING_I2C2
  104. config BSP_I2C2_SCL_PIN
  105. int "i2c2 scl pin number"
  106. range 1 176
  107. default 29
  108. config BSP_I2C2_SDA_PIN
  109. int "I2C2 sda pin number"
  110. range 1 176
  111. default 30
  112. endif
  113. menuconfig BSP_USING_I2C3
  114. bool "Enable I2C3 BUS (software simulation)"
  115. default n
  116. if BSP_USING_I2C3
  117. config BSP_I2C3_SCL_PIN
  118. int "i2c3 scl pin number"
  119. range 1 176
  120. default 32
  121. config BSP_I2C3_SDA_PIN
  122. int "I2C3 sda pin number"
  123. range 1 176
  124. default 33
  125. endif
  126. menuconfig BSP_USING_I2C4
  127. bool "Enable I2C4 BUS (software simulation)"
  128. default y
  129. if BSP_USING_I2C4
  130. config BSP_I2C4_SCL_PIN
  131. int "i2c4 scl pin number"
  132. range 1 176
  133. default 60
  134. config BSP_I2C4_SDA_PIN
  135. int "i2c4 sda pin number"
  136. range 1 176
  137. default 61
  138. endif
  139. endif
  140. config BSP_USING_SDIO
  141. bool "Enable sdio"
  142. select RT_USING_SDIO
  143. default n
  144. menuconfig BSP_USING_TIM
  145. bool "Enable timer"
  146. default n
  147. select RT_USING_HWTIMER
  148. if BSP_USING_TIM
  149. config BSP_USING_TIM15
  150. bool "Enable TIM15"
  151. default n
  152. config BSP_USING_TIM16
  153. bool "Enable TIM16"
  154. default n
  155. config BSP_USING_TIM17
  156. bool "Enable TIM17"
  157. default n
  158. endif
  159. menuconfig BSP_USING_PWM
  160. bool "Enable PWM"
  161. default n
  162. select RT_USING_PWM
  163. if BSP_USING_PWM
  164. menuconfig BSP_USING_PWM3
  165. bool "Enable timer3 output PWM"
  166. default n
  167. if BSP_USING_PWM3
  168. config BSP_USING_PWM3_CH2
  169. bool "Enable PWM3 channel2"
  170. default n
  171. config BSP_USING_PWM3_CH3
  172. bool "Enable PWM3 channel3"
  173. default n
  174. config BSP_USING_PWM3_CH4
  175. bool "Enable PWM3 channel4"
  176. default n
  177. endif
  178. endif
  179. config BSP_USING_ADC1
  180. bool "Enable ADC1"
  181. default n
  182. select RT_USING_ADC
  183. menuconfig BSP_USING_ONCHIP_RTC
  184. bool "Enable RTC"
  185. select RT_USING_RTC
  186. default n
  187. if BSP_USING_ONCHIP_RTC
  188. choice
  189. prompt "Select clock source"
  190. default BSP_RTC_USING_LSE
  191. config BSP_RTC_USING_LSE
  192. bool "RTC USING LSE"
  193. config BSP_RTC_USING_LSI
  194. bool "RTC USING LSI"
  195. endchoice
  196. endif
  197. config BSP_USING_WDT
  198. bool "Enable Watchdog Timer"
  199. select RT_USING_WDT
  200. default n
  201. source "../libraries/HAL_Drivers/Kconfig"
  202. endmenu
  203. menu "Board extended module Drivers"
  204. endmenu
  205. endmenu