Kconfig 6.2 KB

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