Kconfig 7.9 KB

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