Kconfig 6.5 KB

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