Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_SDCARD
  4. bool "Enable SDCARD (sdio)"
  5. select BSP_USING_SDIO
  6. select RT_USING_DFS
  7. select RT_USING_DFS_ELMFAT
  8. default n
  9. config BSP_USING_ARDUINO
  10. bool "Compatible with Arduino Ecosystem (RTduino)"
  11. select PKG_USING_RTDUINO
  12. select BSP_USING_STLINK_TO_USART
  13. select BSP_USING_GPIO
  14. select BSP_USING_ADC
  15. select BSP_USING_ADC1
  16. select BSP_USING_PWM
  17. select BSP_USING_PWM2
  18. select BSP_USING_PWM2_CH1
  19. select BSP_USING_PWM2_CH2
  20. select BSP_USING_PWM2_CH3
  21. select BSP_USING_PWM2_CH4
  22. select BSP_USING_PWM4
  23. select BSP_USING_PWM4_CH1
  24. select BSP_USING_PWM4_CH2
  25. select BSP_USING_PWM4_CH3
  26. select BSP_USING_PWM4_CH4
  27. select BSP_USING_PWM5
  28. select BSP_USING_PWM5_CH1
  29. select BSP_USING_PWM5_CH2
  30. select BSP_USING_PWM5_CH3
  31. select BSP_USING_PWM5_CH4
  32. select BSP_USING_PWM8
  33. select BSP_USING_PWM8_CH1
  34. select BSP_USING_PWM8_CH2
  35. select BSP_USING_PWM8_CH3
  36. select BSP_USING_PWM8_CH4
  37. select BSP_USING_PWM12
  38. select BSP_USING_PWM12_CH1
  39. select BSP_USING_I2C
  40. select BSP_USING_I2C1
  41. select RTDUINO_USING_WIRE
  42. imply RTDUINO_USING_SERVO
  43. default n
  44. endmenu
  45. menu "On-chip Peripheral Drivers"
  46. config BSP_USING_GPIO
  47. bool "Enable GPIO"
  48. select RT_USING_PIN
  49. default y
  50. menuconfig BSP_USING_UART
  51. bool "Enable UART"
  52. default y
  53. select RT_USING_SERIAL
  54. if BSP_USING_UART
  55. config BSP_STM32_UART_V1_TX_TIMEOUT
  56. int "UART TX timeout"
  57. default 2000
  58. depends on RT_USING_SERIAL_V1
  59. config BSP_USING_UART6
  60. bool "Enable UART6 (debug usart)"
  61. default y
  62. config BSP_UART6_RX_USING_DMA
  63. bool "Enable UART6 RX DMA"
  64. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  65. default n
  66. config BSP_USING_UART3
  67. bool "Enable UART3"
  68. default n
  69. config BSP_UART3_RX_USING_DMA
  70. bool "Enable UART3 RX DMA"
  71. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  72. default n
  73. config BSP_USING_UART7
  74. bool "Enable UART7"
  75. default n
  76. config BSP_UART7_RX_USING_DMA
  77. bool "Enable UART7 RX DMA"
  78. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  79. default n
  80. config BSP_USING_UART8
  81. bool "Enable UART8"
  82. default n
  83. config BSP_UART8_RX_USING_DMA
  84. bool "Enable UART8 RX DMA"
  85. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  86. default n
  87. config BSP_USING_UART1
  88. bool "Enable UART1 (DBUS)"
  89. default n
  90. config BSP_UART1_RX_USING_DMA
  91. bool "Enable UART1 RX DMA"
  92. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  93. default n
  94. endif
  95. menuconfig BSP_USING_CAN
  96. bool "Enable CAN"
  97. default n
  98. select RT_USING_CAN
  99. if BSP_USING_CAN
  100. config BSP_USING_CAN1
  101. bool "using CAN1"
  102. default n
  103. config BSP_USING_CAN2
  104. bool "using CAN2"
  105. default n
  106. endif
  107. config BSP_USING_SDIO
  108. bool "Enable SDIO"
  109. select RT_USING_SDIO
  110. select RT_USING_DFS
  111. default n
  112. menuconfig BSP_USING_ADC
  113. bool "Enable ADC"
  114. default n
  115. select RT_USING_ADC
  116. if BSP_USING_ADC
  117. config BSP_USING_ADC1
  118. bool "Enable ADC1"
  119. default n
  120. endif
  121. menuconfig BSP_USING_I2C
  122. bool "Enable I2C BUS"
  123. default n
  124. select RT_USING_I2C
  125. select RT_USING_I2C_BITOPS
  126. select RT_USING_PIN
  127. if BSP_USING_I2C
  128. config BSP_USING_I2C1
  129. bool "Enable I2C1 Bus (User I2C)"
  130. default n
  131. if BSP_USING_I2C1
  132. comment "Notice: PE4 --> 68; PE5 --> 69"
  133. config BSP_I2C1_SCL_PIN
  134. int "i2c1 SCL pin number"
  135. range 1 176
  136. default 68
  137. config BSP_I2C1_SDA_PIN
  138. int "i2c1 SDA pin number"
  139. range 1 176
  140. default 69
  141. endif
  142. endif
  143. menuconfig BSP_USING_PWM
  144. bool "Enable PWM"
  145. default n
  146. select RT_USING_PWM
  147. if BSP_USING_PWM
  148. menuconfig BSP_USING_PWM12
  149. bool "Enable timer12 output PWM"
  150. default n
  151. if BSP_USING_PWM12
  152. config BSP_USING_PWM12_CH1
  153. bool "Enable PWM12 channel1(buzzer) "
  154. default n
  155. endif
  156. menuconfig BSP_USING_PWM4
  157. bool "Enable timer4 output PWM"
  158. default n
  159. if BSP_USING_PWM4
  160. config BSP_USING_PWM4_CH1
  161. bool "Enable PWM4 channel1"
  162. default n
  163. config BSP_USING_PWM4_CH2
  164. bool "Enable PWM4 channel2"
  165. default n
  166. config BSP_USING_PWM4_CH3
  167. bool "Enable PWM4 channel3"
  168. default n
  169. config BSP_USING_PWM4_CH4
  170. bool "Enable PWM4 channel4"
  171. default n
  172. endif
  173. menuconfig BSP_USING_PWM5
  174. bool "Enable timer5 output PWM"
  175. default n
  176. if BSP_USING_PWM5
  177. config BSP_USING_PWM5_CH1
  178. bool "Enable PWM5 channel1"
  179. default n
  180. config BSP_USING_PWM5_CH2
  181. bool "Enable PWM5 channel2"
  182. default n
  183. config BSP_USING_PWM5_CH3
  184. bool "Enable PWM5 channel3"
  185. default n
  186. config BSP_USING_PWM5_CH4
  187. bool "Enable PWM5 channel4"
  188. default n
  189. endif
  190. menuconfig BSP_USING_PWM2
  191. bool "Enable timer2 output PWM"
  192. default n
  193. if BSP_USING_PWM2
  194. config BSP_USING_PWM2_CH1
  195. bool "Enable PWM2 channel1"
  196. default n
  197. config BSP_USING_PWM2_CH2
  198. bool "Enable PWM2 channel2"
  199. default n
  200. config BSP_USING_PWM2_CH3
  201. bool "Enable PWM2 channel3"
  202. default n
  203. config BSP_USING_PWM2_CH4
  204. bool "Enable PWM2 channel4"
  205. default n
  206. endif
  207. menuconfig BSP_USING_PWM8
  208. bool "Enable timer8 output PWM"
  209. default n
  210. if BSP_USING_PWM8
  211. config BSP_USING_PWM8_CH1
  212. bool "Enable PWM8 channel1"
  213. default n
  214. config BSP_USING_PWM8_CH2
  215. bool "Enable PWM8 channel2"
  216. default n
  217. config BSP_USING_PWM8_CH3
  218. bool "Enable PWM8 channel3"
  219. default n
  220. config BSP_USING_PWM8_CH4
  221. bool "Enable PWM8 channel4"
  222. default n
  223. endif
  224. endif
  225. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  226. endmenu
  227. menu "Board extended module Drivers"
  228. endmenu
  229. endmenu