Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_STLINK_TO_USART
  4. bool "Enable STLINK TO USART (uart3)"
  5. select BSP_USING_UART
  6. select BSP_USING_UART3
  7. default y
  8. config BSP_USING_ARDUINO
  9. bool "Compatible with Arduino Ecosystem (RTduino)"
  10. select PKG_USING_RTDUINO
  11. select BSP_USING_STLINK_TO_USART
  12. select BSP_USING_GPIO
  13. select BSP_USING_ADC
  14. select BSP_USING_ADC1
  15. select BSP_USING_TIM
  16. select BSP_USING_TIM6
  17. select BSP_USING_PWM
  18. select BSP_USING_PWM14
  19. select BSP_USING_PWM4
  20. select BSP_USING_PWM1
  21. select BSP_USING_PWM1_CH3
  22. select BSP_USING_PWM1_CH2
  23. select BSP_USING_PWM1_CH1
  24. select BSP_USING_PWM4_CH4
  25. select BSP_USING_PWM4_CH3
  26. select BSP_USING_PWM14_CH1
  27. select BSP_USING_I2C
  28. select BSP_USING_I2C1
  29. select BSP_USING_SPI
  30. select BSP_USING_SPI1
  31. select BSP_SPI1_TX_USING_DMA
  32. select BSP_SPI1_RX_USING_DMA
  33. imply RTDUINO_USING_SERVO
  34. imply RTDUINO_USING_WIRE
  35. imply RTDUINO_USING_SPI
  36. default n
  37. endmenu
  38. menu "On-chip Peripheral Drivers"
  39. config BSP_USING_GPIO
  40. bool "Enable GPIO"
  41. select RT_USING_PIN
  42. default y
  43. menuconfig BSP_USING_UART
  44. bool "Enable UART"
  45. default y
  46. select RT_USING_SERIAL
  47. if BSP_USING_UART
  48. config BSP_USING_UART2
  49. bool "Enable UART2"
  50. default y
  51. config BSP_UART2_RX_USING_DMA
  52. bool "Enable UART2 RX DMA"
  53. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  54. default n
  55. config BSP_USING_UART3
  56. bool "Enable UART3"
  57. default y
  58. config BSP_UART3_RX_USING_DMA
  59. bool "Enable UART3 RX DMA"
  60. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  61. default n
  62. endif
  63. menuconfig BSP_USING_ADC
  64. bool "Enable ADC"
  65. default n
  66. select RT_USING_ADC
  67. if BSP_USING_ADC
  68. config BSP_USING_ADC1
  69. bool "Enable ADC1"
  70. default n
  71. endif
  72. menuconfig BSP_USING_PWM
  73. bool "Enable PWM"
  74. default n
  75. select RT_USING_PWM
  76. if BSP_USING_PWM
  77. menuconfig BSP_USING_PWM1
  78. bool "Enable timer1 output PWM"
  79. default n
  80. if BSP_USING_PWM1
  81. config BSP_USING_PWM1_CH1
  82. bool "Enable PWM1 channel1"
  83. default n
  84. config BSP_USING_PWM1_CH2
  85. bool "Enable PWM1 channel2"
  86. default n
  87. config BSP_USING_PWM1_CH3
  88. bool "Enable PWM1 channel3"
  89. default n
  90. endif
  91. menuconfig BSP_USING_PWM4
  92. bool "Enable timer4 output PWM"
  93. default n
  94. if BSP_USING_PWM4
  95. config BSP_USING_PWM4_CH3
  96. bool "Enable PWM3 channel3"
  97. default n
  98. config BSP_USING_PWM4_CH4
  99. bool "Enable PWM4 channel4"
  100. default n
  101. endif
  102. menuconfig BSP_USING_PWM14
  103. bool "Enable timer14 output PWM"
  104. default n
  105. if BSP_USING_PWM14
  106. config BSP_USING_PWM14_CH1
  107. bool "Enable PWM14 channel1"
  108. default n
  109. endif
  110. endif
  111. menuconfig BSP_USING_TIM
  112. bool "Enable timer"
  113. default n
  114. select RT_USING_HWTIMER
  115. if BSP_USING_TIM
  116. config BSP_USING_TIM6
  117. bool "Enable TIM6"
  118. default n
  119. endif
  120. menuconfig BSP_USING_I2C
  121. bool "Enable I2C BUS"
  122. default n
  123. select RT_USING_I2C
  124. select RT_USING_I2C_BITOPS
  125. select RT_USING_PIN
  126. if BSP_USING_I2C
  127. config BSP_USING_I2C1
  128. bool "Enable I2C1 Bus (User I2C)"
  129. default n
  130. if BSP_USING_I2C1
  131. comment "Notice: PB9 --> 25; PB8 --> 24"
  132. config BSP_I2C1_SCL_PIN
  133. int "i2c1 SCL pin number"
  134. range 1 176
  135. default 24
  136. config BSP_I2C1_SDA_PIN
  137. int "i2c1 SDA pin number"
  138. range 1 176
  139. default 25
  140. endif
  141. endif
  142. menuconfig BSP_USING_SPI
  143. bool "Enable SPI BUS"
  144. default n
  145. select RT_USING_SPI
  146. if BSP_USING_SPI
  147. config BSP_USING_SPI1
  148. bool "Enable SPI1 BUS"
  149. default n
  150. config BSP_SPI1_TX_USING_DMA
  151. bool "Enable SPI1 TX DMA"
  152. depends on BSP_USING_SPI1
  153. default n
  154. config BSP_SPI1_RX_USING_DMA
  155. bool "Enable SPI1 RX DMA"
  156. depends on BSP_USING_SPI1
  157. select BSP_SPI1_TX_USING_DMA
  158. default n
  159. endif
  160. config BSP_USING_ON_CHIP_FLASH
  161. bool "Enable on-chip FLASH"
  162. default n
  163. config BSP_USING_USBD
  164. bool "Enable OTGFS as USB device"
  165. select RT_USING_USB_DEVICE
  166. select BSP_USBD_TYPE_FS
  167. default n
  168. endmenu
  169. menu "Board extended module Drivers"
  170. endmenu
  171. endmenu