Kconfig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_ARDUINO
  4. bool "Compatible with Arduino Ecosystem (RTduino)"
  5. select PKG_USING_RTDUINO
  6. select BSP_USING_STLINK_TO_USART
  7. select BSP_USING_GPIO
  8. select BSP_USING_ADC
  9. select BSP_USING_ADC1
  10. select BSP_USING_PWM
  11. select BSP_USING_PWM1
  12. select BSP_USING_PWM1_CH1
  13. select BSP_USING_PWM1_CH2
  14. select BSP_USING_PWM1_CH3
  15. select BSP_USING_PWM1_CH4
  16. select BSP_USING_PWM8
  17. select BSP_USING_PWM8_CH1
  18. select BSP_USING_PWM8_CH2
  19. select BSP_USING_PWM8_CH3
  20. select BSP_USING_I2C
  21. select BSP_USING_I2C1
  22. select RTDUINO_USING_WIRE
  23. imply RTDUINO_USING_SERVO
  24. default n
  25. endmenu
  26. menu "On-chip Peripheral Drivers"
  27. config BSP_USING_GPIO
  28. bool "Enable GPIO"
  29. select RT_USING_PIN
  30. default y
  31. menuconfig BSP_USING_UART
  32. bool "Enable UART"
  33. default y
  34. select RT_USING_SERIAL
  35. if BSP_USING_UART
  36. config BSP_STM32_UART_V1_TX_TIMEOUT
  37. int "UART TX timeout"
  38. default 2000
  39. depends on RT_USING_SERIAL_V1
  40. config BSP_USING_UART1
  41. bool "Enable UART1 (FinSH , symbol UART2 on board)"
  42. default y
  43. config BSP_UART1_RX_USING_DMA
  44. bool "Enable UART1 RX DMA"
  45. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_USING_UART3
  48. bool "Enable UART3 (DBUS)"
  49. default n
  50. config BSP_UART3_RX_USING_DMA
  51. bool "Enable UART3 RX DMA"
  52. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  53. default n
  54. config BSP_USING_UART6
  55. bool "Enable UART6"
  56. default n
  57. config BSP_UART6_RX_USING_DMA
  58. bool "Enable UART6 RX DMA"
  59. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  60. default n
  61. endif
  62. menuconfig BSP_USING_CAN
  63. bool "Enable CAN"
  64. default n
  65. select RT_USING_CAN
  66. if BSP_USING_CAN
  67. config BSP_USING_CAN1
  68. bool "using CAN1 (2pin)"
  69. default n
  70. config BSP_USING_CAN2
  71. bool "using CAN2 (4pin)"
  72. default n
  73. endif
  74. menuconfig BSP_USING_PWM
  75. bool "Enable PWM"
  76. default n
  77. select RT_USING_PWM
  78. if BSP_USING_PWM
  79. menuconfig BSP_USING_PWM1
  80. bool "Enable timer1 output PWM"
  81. default n
  82. if BSP_USING_PWM1
  83. config BSP_USING_PWM1_CH1
  84. bool "Enable PWM1 channel1"
  85. default n
  86. config BSP_USING_PWM1_CH2
  87. bool "Enable PWM1 channel2"
  88. default n
  89. config BSP_USING_PWM1_CH3
  90. bool "Enable PWM1 channel3"
  91. default n
  92. config BSP_USING_PWM1_CH4
  93. bool "Enable PWM1 channel4"
  94. default n
  95. endif
  96. menuconfig BSP_USING_PWM4
  97. bool "Enable timer4 output PWM"
  98. default n
  99. if BSP_USING_PWM4
  100. config BSP_USING_PWM4_CH3
  101. bool "Enable PWM4 channel3 (buzzer)"
  102. default n
  103. endif
  104. menuconfig BSP_USING_PWM5
  105. bool "Enable timer5 output PWM"
  106. default n
  107. if BSP_USING_PWM5
  108. config BSP_USING_PWM5_CH1
  109. bool "Enable PWM5 channel1(LED_B)"
  110. default n
  111. config BSP_USING_PWM5_CH2
  112. bool "Enable PWM5 channel2(LED_G)"
  113. default n
  114. config BSP_USING_PWM5_CH3
  115. bool "Enable PWM5 channel3(LED_R)"
  116. default n
  117. endif
  118. menuconfig BSP_USING_PWM8
  119. bool "Enable timer8 output PWM"
  120. default n
  121. if BSP_USING_PWM8
  122. config BSP_USING_PWM8_CH1
  123. bool "Enable PWM8 channel1"
  124. default n
  125. config BSP_USING_PWM8_CH2
  126. bool "Enable PWM8 channel2"
  127. default n
  128. config BSP_USING_PWM8_CH3
  129. bool "Enable PWM8 channel3"
  130. default n
  131. endif
  132. endif
  133. menuconfig BSP_USING_ADC
  134. bool "Enable ADC"
  135. default n
  136. select RT_USING_ADC
  137. if BSP_USING_ADC
  138. config BSP_USING_ADC1
  139. bool "Enable ADC1"
  140. default n
  141. config BSP_USING_ADC3
  142. bool "Enable ADC3"
  143. default n
  144. endif
  145. menuconfig BSP_USING_SPI
  146. bool "Enable SPI BUS"
  147. default n
  148. select RT_USING_SPI
  149. if BSP_USING_SPI
  150. config BSP_USING_SPI2
  151. bool "Enable SPI2 BUS"
  152. default n
  153. config BSP_SPI2_TX_USING_DMA
  154. bool "Enable SPI2 TX DMA"
  155. depends on BSP_USING_SPI2
  156. default n
  157. config BSP_SPI2_RX_USING_DMA
  158. bool "Enable SPI2 RX DMA"
  159. depends on BSP_USING_SPI2
  160. select BSP_SPI2_TX_USING_DMA
  161. default n
  162. endif
  163. menuconfig BSP_USING_I2C1
  164. bool "Enable I2C1 BUS (software simulation)"
  165. default n
  166. select RT_USING_I2C
  167. select RT_USING_I2C_BITOPS
  168. select RT_USING_PIN
  169. if BSP_USING_I2C1
  170. comment "Notice: PF0 --> 80; PF1 --> 81"
  171. config BSP_I2C1_SCL_PIN
  172. int "i2c1 scl pin number"
  173. default 81
  174. config BSP_I2C1_SDA_PIN
  175. int "I2C1 sda pin number"
  176. default 80
  177. endif
  178. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  179. endmenu
  180. menu "Board extended module Drivers"
  181. endmenu
  182. endmenu