Kconfig 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. imply RTDUINO_USING_SERVO
  42. imply RTDUINO_USING_WIRE
  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_USING_UART6
  56. bool "Enable UART6 (debug usart)"
  57. default y
  58. config BSP_UART6_RX_USING_DMA
  59. bool "Enable UART6 RX DMA"
  60. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  61. default n
  62. config BSP_USING_UART3
  63. bool "Enable UART3"
  64. default n
  65. config BSP_UART3_RX_USING_DMA
  66. bool "Enable UART3 RX DMA"
  67. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  68. default n
  69. config BSP_USING_UART7
  70. bool "Enable UART7"
  71. default n
  72. config BSP_UART7_RX_USING_DMA
  73. bool "Enable UART7 RX DMA"
  74. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  75. default n
  76. config BSP_USING_UART8
  77. bool "Enable UART8"
  78. default n
  79. config BSP_UART8_RX_USING_DMA
  80. bool "Enable UART8 RX DMA"
  81. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  82. default n
  83. config BSP_USING_UART1
  84. bool "Enable UART1 (DBUS)"
  85. default n
  86. config BSP_UART1_RX_USING_DMA
  87. bool "Enable UART1 RX DMA"
  88. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  89. default n
  90. endif
  91. menuconfig BSP_USING_CAN
  92. bool "Enable CAN"
  93. default n
  94. select RT_USING_CAN
  95. if BSP_USING_CAN
  96. config BSP_USING_CAN1
  97. bool "using CAN1"
  98. default n
  99. config BSP_USING_CAN2
  100. bool "using CAN2"
  101. default n
  102. endif
  103. config BSP_USING_SDIO
  104. bool "Enable SDIO"
  105. select RT_USING_SDIO
  106. select RT_USING_DFS
  107. default n
  108. menuconfig BSP_USING_ADC
  109. bool "Enable ADC"
  110. default n
  111. select RT_USING_ADC
  112. if BSP_USING_ADC
  113. config BSP_USING_ADC1
  114. bool "Enable ADC1"
  115. default n
  116. endif
  117. menuconfig BSP_USING_I2C
  118. bool "Enable I2C BUS"
  119. default n
  120. select RT_USING_I2C
  121. select RT_USING_I2C_BITOPS
  122. select RT_USING_PIN
  123. if BSP_USING_I2C
  124. config BSP_USING_I2C1
  125. bool "Enable I2C1 Bus (User I2C)"
  126. default n
  127. if BSP_USING_I2C1
  128. comment "Notice: PE4 --> 68; PE5 --> 69"
  129. config BSP_I2C1_SCL_PIN
  130. int "i2c1 SCL pin number"
  131. range 1 176
  132. default 68
  133. config BSP_I2C1_SDA_PIN
  134. int "i2c1 SDA pin number"
  135. range 1 176
  136. default 69
  137. endif
  138. endif
  139. menuconfig BSP_USING_PWM
  140. bool "Enable PWM"
  141. default n
  142. select RT_USING_PWM
  143. if BSP_USING_PWM
  144. menuconfig BSP_USING_PWM12
  145. bool "Enable timer12 output PWM"
  146. default n
  147. if BSP_USING_PWM12
  148. config BSP_USING_PWM12_CH1
  149. bool "Enable PWM12 channel1(buzzer) "
  150. default n
  151. endif
  152. menuconfig BSP_USING_PWM4
  153. bool "Enable timer4 output PWM"
  154. default n
  155. if BSP_USING_PWM4
  156. config BSP_USING_PWM4_CH1
  157. bool "Enable PWM4 channel1"
  158. default n
  159. config BSP_USING_PWM4_CH2
  160. bool "Enable PWM4 channel2"
  161. default n
  162. config BSP_USING_PWM4_CH3
  163. bool "Enable PWM4 channel3"
  164. default n
  165. config BSP_USING_PWM4_CH4
  166. bool "Enable PWM4 channel4"
  167. default n
  168. endif
  169. menuconfig BSP_USING_PWM5
  170. bool "Enable timer5 output PWM"
  171. default n
  172. if BSP_USING_PWM5
  173. config BSP_USING_PWM5_CH1
  174. bool "Enable PWM5 channel1"
  175. default n
  176. config BSP_USING_PWM5_CH2
  177. bool "Enable PWM5 channel2"
  178. default n
  179. config BSP_USING_PWM5_CH3
  180. bool "Enable PWM5 channel3"
  181. default n
  182. config BSP_USING_PWM5_CH4
  183. bool "Enable PWM5 channel4"
  184. default n
  185. endif
  186. menuconfig BSP_USING_PWM2
  187. bool "Enable timer2 output PWM"
  188. default n
  189. if BSP_USING_PWM2
  190. config BSP_USING_PWM2_CH1
  191. bool "Enable PWM2 channel1"
  192. default n
  193. config BSP_USING_PWM2_CH2
  194. bool "Enable PWM2 channel2"
  195. default n
  196. config BSP_USING_PWM2_CH3
  197. bool "Enable PWM2 channel3"
  198. default n
  199. config BSP_USING_PWM2_CH4
  200. bool "Enable PWM2 channel4"
  201. default n
  202. endif
  203. menuconfig BSP_USING_PWM8
  204. bool "Enable timer8 output PWM"
  205. default n
  206. if BSP_USING_PWM8
  207. config BSP_USING_PWM8_CH1
  208. bool "Enable PWM8 channel1"
  209. default n
  210. config BSP_USING_PWM8_CH2
  211. bool "Enable PWM8 channel2"
  212. default n
  213. config BSP_USING_PWM8_CH3
  214. bool "Enable PWM8 channel3"
  215. default n
  216. config BSP_USING_PWM8_CH4
  217. bool "Enable PWM8 channel4"
  218. default n
  219. endif
  220. endif
  221. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  222. endmenu
  223. menu "Board extended module Drivers"
  224. endmenu
  225. endmenu