Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32L433CC
  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. default n
  56. menuconfig BSP_USING_SPI
  57. bool "Enable SPI BUS"
  58. default n
  59. select RT_USING_SPI
  60. if BSP_USING_SPI
  61. config BSP_USING_SPI1
  62. bool "Enable SPI1 BUS"
  63. default n
  64. config BSP_SPI1_TX_USING_DMA
  65. bool "Enable SPI1 TX DMA"
  66. depends on BSP_USING_SPI1
  67. default n
  68. config BSP_SPI1_RX_USING_DMA
  69. bool "Enable SPI1 RX DMA"
  70. depends on BSP_USING_SPI1
  71. select BSP_SPI1_TX_USING_DMA
  72. default n
  73. config BSP_USING_SPI2
  74. bool "Enable SPI2 BUS"
  75. default n
  76. config BSP_SPI2_TX_USING_DMA
  77. bool "Enable SPI2 TX DMA"
  78. depends on BSP_USING_SPI2
  79. default n
  80. config BSP_SPI2_RX_USING_DMA
  81. bool "Enable SPI2 RX DMA"
  82. depends on BSP_USING_SPI2
  83. select BSP_SPI2_TX_USING_DMA
  84. default n
  85. endif
  86. menuconfig BSP_USING_I2C
  87. bool "Enable I2C BUS"
  88. default n
  89. select RT_USING_I2C
  90. select RT_USING_I2C_BITOPS
  91. select RT_USING_PIN
  92. if BSP_USING_I2C
  93. menuconfig BSP_USING_I2C2
  94. bool "Enable I2C2 BUS (software simulation)"
  95. default n
  96. if BSP_USING_I2C2
  97. config BSP_I2C2_SCL_PIN
  98. int "i2c2 scl pin number"
  99. range 1 176
  100. default 29
  101. config BSP_I2C2_SDA_PIN
  102. int "I2C2 sda pin number"
  103. range 1 176
  104. default 30
  105. endif
  106. menuconfig BSP_USING_I2C3
  107. bool "Enable I2C3 BUS (software simulation)"
  108. default n
  109. if BSP_USING_I2C3
  110. config BSP_I2C3_SCL_PIN
  111. int "i2c3 scl pin number"
  112. range 1 176
  113. default 32
  114. config BSP_I2C3_SDA_PIN
  115. int "I2C3 sda pin number"
  116. range 1 176
  117. default 33
  118. endif
  119. menuconfig BSP_USING_I2C4
  120. bool "Enable I2C4 BUS (software simulation)"
  121. default y
  122. if BSP_USING_I2C4
  123. config BSP_I2C4_SCL_PIN
  124. int "i2c4 scl pin number"
  125. range 1 176
  126. default 60
  127. config BSP_I2C4_SDA_PIN
  128. int "i2c4 sda pin number"
  129. range 1 176
  130. default 61
  131. endif
  132. endif
  133. config BSP_USING_SDIO
  134. bool "Enable sdio"
  135. select RT_USING_SDIO
  136. default n
  137. menuconfig BSP_USING_TIM
  138. bool "Enable timer"
  139. default n
  140. select RT_USING_HWTIMER
  141. if BSP_USING_TIM
  142. config BSP_USING_TIM15
  143. bool "Enable TIM15"
  144. default n
  145. config BSP_USING_TIM16
  146. bool "Enable TIM16"
  147. default n
  148. config BSP_USING_TIM17
  149. bool "Enable TIM17"
  150. default n
  151. endif
  152. menuconfig BSP_USING_PWM
  153. bool "Enable PWM"
  154. default n
  155. select RT_USING_PWM
  156. if BSP_USING_PWM
  157. menuconfig BSP_USING_PWM3
  158. bool "Enable timer3 output PWM"
  159. default n
  160. if BSP_USING_PWM3
  161. config BSP_USING_PWM3_CH2
  162. bool "Enable PWM3 channel2"
  163. default n
  164. config BSP_USING_PWM3_CH3
  165. bool "Enable PWM3 channel3"
  166. default n
  167. config BSP_USING_PWM3_CH4
  168. bool "Enable PWM3 channel4"
  169. default n
  170. endif
  171. endif
  172. config BSP_USING_ADC1
  173. bool "Enable ADC1"
  174. default n
  175. select RT_USING_ADC
  176. menuconfig BSP_USING_ONCHIP_RTC
  177. bool "Enable RTC"
  178. select RT_USING_RTC
  179. default n
  180. if BSP_USING_ONCHIP_RTC
  181. choice
  182. prompt "Select clock source"
  183. default BSP_RTC_USING_LSE
  184. config BSP_RTC_USING_LSE
  185. bool "RTC USING LSE"
  186. config BSP_RTC_USING_LSI
  187. bool "RTC USING LSI"
  188. endchoice
  189. endif
  190. config BSP_USING_WDT
  191. bool "Enable Watchdog Timer"
  192. select RT_USING_WDT
  193. default n
  194. source "../libraries/HAL_Drivers/Kconfig"
  195. endmenu
  196. menu "Board extended module Drivers"
  197. endmenu
  198. endmenu