Kconfig 5.9 KB

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