Kconfig 6.0 KB

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