Kconfig 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. endmenu
  27. menu "On-chip Peripheral Drivers"
  28. config BSP_USING_GPIO
  29. bool "Enable GPIO"
  30. select RT_USING_PIN
  31. default y
  32. menuconfig BSP_USING_UART
  33. bool "Enable UART"
  34. default y
  35. select RT_USING_SERIAL
  36. if BSP_USING_UART
  37. config BSP_USING_UART1
  38. bool "Enable UART1"
  39. default y
  40. config BSP_UART1_RX_USING_DMA
  41. bool "Enable UART1 RX DMA"
  42. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  43. default n
  44. config BSP_USING_UART2
  45. bool "Enable UART2"
  46. default n
  47. config BSP_UART2_RX_USING_DMA
  48. bool "Enable UART2 RX DMA"
  49. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  50. default n
  51. endif
  52. config BSP_USING_ON_CHIP_FLASH
  53. bool "Enable on-chip FLASH"
  54. default n
  55. menuconfig BSP_USING_SPI
  56. bool "Enable SPI BUS"
  57. default n
  58. select RT_USING_SPI
  59. if BSP_USING_SPI
  60. config BSP_USING_SPI1
  61. bool "Enable SPI1 BUS"
  62. default n
  63. config BSP_SPI1_TX_USING_DMA
  64. bool "Enable SPI1 TX DMA"
  65. depends on BSP_USING_SPI1
  66. default n
  67. config BSP_SPI1_RX_USING_DMA
  68. bool "Enable SPI1 RX DMA"
  69. depends on BSP_USING_SPI1
  70. select BSP_SPI1_TX_USING_DMA
  71. default n
  72. config BSP_USING_SPI2
  73. bool "Enable SPI2 BUS"
  74. default n
  75. config BSP_SPI2_TX_USING_DMA
  76. bool "Enable SPI2 TX DMA"
  77. depends on BSP_USING_SPI2
  78. default n
  79. config BSP_SPI2_RX_USING_DMA
  80. bool "Enable SPI2 RX DMA"
  81. depends on BSP_USING_SPI2
  82. select BSP_SPI2_TX_USING_DMA
  83. default n
  84. endif
  85. config BSP_USING_QSPI
  86. bool "Enable QSPI BUS"
  87. select RT_USING_QSPI
  88. select RT_USING_SPI
  89. default n
  90. config BSP_QSPI_USING_DMA
  91. bool "Enable QSPI DMA support"
  92. default n
  93. menuconfig BSP_USING_I2C1
  94. bool "Enable I2C1 BUS (software simulation)"
  95. default n
  96. select RT_USING_I2C
  97. select RT_USING_I2C_BITOPS
  98. select RT_USING_PIN
  99. if BSP_USING_I2C1
  100. config BSP_I2C1_SCL_PIN
  101. int "i2c1 scl pin number"
  102. range 1 176
  103. default 15
  104. config BSP_I2C1_SDA_PIN
  105. int "I2C1 sda pin number"
  106. range 1 176
  107. default 16
  108. endif
  109. menuconfig BSP_USING_I2C2
  110. bool "Enable I2C2 BUS (software simulation)"
  111. default n
  112. select RT_USING_I2C
  113. select RT_USING_I2C_BITOPS
  114. select RT_USING_PIN
  115. if BSP_USING_I2C2
  116. config BSP_I2C2_SCL_PIN
  117. int "i2c2 scl pin number"
  118. range 1 176
  119. default 47
  120. config BSP_I2C2_SDA_PIN
  121. int "I2C2 sda pin number"
  122. range 1 176
  123. default 48
  124. endif
  125. menuconfig BSP_USING_I2C3
  126. bool "Enable I2C3 BUS (software simulation)"
  127. default n
  128. select RT_USING_I2CS
  129. select RT_USING_I2C_BITOPS
  130. select RT_USING_PIN
  131. if BSP_USING_I2C3
  132. config BSP_I2C3_SCL_PIN
  133. int "i2c3 scl pin number"
  134. range 1 176
  135. default 92
  136. config BSP_I2C3_SDA_PIN
  137. int "I2C3 sda pin number"
  138. range 1 176
  139. default 93
  140. endif
  141. menuconfig BSP_USING_TIM
  142. bool "Enable timer"
  143. default n
  144. select RT_USING_HWTIMER
  145. if BSP_USING_TIM
  146. config BSP_USING_TIM15
  147. bool "Enable TIM15"
  148. default n
  149. config BSP_USING_TIM16
  150. bool "Enable TIM16"
  151. default n
  152. config BSP_USING_TIM17
  153. bool "Enable TIM17"
  154. default n
  155. endif
  156. menuconfig BSP_USING_PWM
  157. bool "Enable pwm"
  158. default n
  159. select RT_USING_PWM
  160. if BSP_USING_PWM
  161. menuconfig BSP_USING_PWM4
  162. bool "Enable timer4 output pwm"
  163. default n
  164. if BSP_USING_PWM4
  165. config BSP_USING_PWM4_CH2
  166. bool "Enable PWM4 channel2"
  167. default n
  168. config BSP_USING_PWM4_CH3
  169. bool "Enable PWM4 channel3"
  170. default n
  171. endif
  172. endif
  173. menuconfig BSP_USING_ADC
  174. bool "Enable ADC"
  175. default n
  176. select RT_USING_ADC
  177. if BSP_USING_ADC
  178. config BSP_USING_ADC1
  179. bool "Enable ADC1"
  180. default n
  181. endif
  182. config BSP_USING_ONCHIP_RTC
  183. bool "Enable RTC"
  184. select RT_USING_RTC
  185. select RT_USING_LIBC
  186. default n
  187. config BSP_USING_WDT
  188. bool "Enable Watchdog Timer"
  189. select RT_USING_WDT
  190. default n
  191. endmenu
  192. menu "Board extended module Drivers"
  193. endmenu
  194. endmenu