Kconfig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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_PWM
  16. select BSP_USING_PWM14
  17. select BSP_USING_PWM4
  18. select BSP_USING_PWM1
  19. select BSP_USING_PWM1_CH3
  20. select BSP_USING_PWM1_CH2
  21. select BSP_USING_PWM1_CH1
  22. select BSP_USING_PWM4_CH4
  23. select BSP_USING_PWM4_CH3
  24. select BSP_USING_PWM14_CH1
  25. select BSP_USING_I2C
  26. select BSP_USING_I2C1
  27. select BSP_USING_SPI
  28. select BSP_USING_SPI1
  29. select BSP_SPI1_TX_USING_DMA
  30. select BSP_SPI1_RX_USING_DMA
  31. imply RTDUINO_USING_SERVO
  32. imply RTDUINO_USING_WIRE
  33. imply RTDUINO_USING_SPI
  34. default n
  35. endmenu
  36. menu "On-chip Peripheral Drivers"
  37. config BSP_USING_GPIO
  38. bool "Enable GPIO"
  39. select RT_USING_PIN
  40. default y
  41. menuconfig BSP_USING_UART
  42. bool "Enable UART"
  43. default y
  44. select RT_USING_SERIAL
  45. if BSP_USING_UART
  46. config BSP_USING_UART2
  47. bool "Enable UART2"
  48. default y
  49. config BSP_UART2_RX_USING_DMA
  50. bool "Enable UART2 RX DMA"
  51. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_USING_UART3
  54. bool "Enable UART3"
  55. default y
  56. config BSP_UART3_RX_USING_DMA
  57. bool "Enable UART3 RX DMA"
  58. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  59. default n
  60. endif
  61. menuconfig BSP_USING_ADC
  62. bool "Enable ADC"
  63. default n
  64. select RT_USING_ADC
  65. if BSP_USING_ADC
  66. config BSP_USING_ADC1
  67. bool "Enable ADC1"
  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. endif
  89. menuconfig BSP_USING_PWM4
  90. bool "Enable timer4 output PWM"
  91. default n
  92. if BSP_USING_PWM4
  93. config BSP_USING_PWM4_CH3
  94. bool "Enable PWM3 channel3"
  95. default n
  96. config BSP_USING_PWM4_CH4
  97. bool "Enable PWM4 channel4"
  98. default n
  99. endif
  100. menuconfig BSP_USING_PWM14
  101. bool "Enable timer14 output PWM"
  102. default n
  103. if BSP_USING_PWM14
  104. config BSP_USING_PWM14_CH1
  105. bool "Enable PWM14 channel1"
  106. default n
  107. endif
  108. endif
  109. menuconfig BSP_USING_I2C
  110. bool "Enable I2C BUS"
  111. default n
  112. select RT_USING_I2C
  113. select RT_USING_I2C_BITOPS
  114. select RT_USING_PIN
  115. if BSP_USING_I2C
  116. config BSP_USING_I2C1
  117. bool "Enable I2C1 Bus (User I2C)"
  118. default n
  119. if BSP_USING_I2C1
  120. comment "Notice: PB9 --> 25; PB8 --> 24"
  121. config BSP_I2C1_SCL_PIN
  122. int "i2c1 SCL pin number"
  123. range 1 176
  124. default 24
  125. config BSP_I2C1_SDA_PIN
  126. int "i2c1 SDA pin number"
  127. range 1 176
  128. default 25
  129. endif
  130. endif
  131. menuconfig BSP_USING_SPI
  132. bool "Enable SPI BUS"
  133. default n
  134. select RT_USING_SPI
  135. if BSP_USING_SPI
  136. config BSP_USING_SPI1
  137. bool "Enable SPI1 BUS"
  138. default n
  139. config BSP_SPI1_TX_USING_DMA
  140. bool "Enable SPI1 TX DMA"
  141. depends on BSP_USING_SPI1
  142. default n
  143. config BSP_SPI1_RX_USING_DMA
  144. bool "Enable SPI1 RX DMA"
  145. depends on BSP_USING_SPI1
  146. select BSP_SPI1_TX_USING_DMA
  147. default n
  148. endif
  149. config BSP_USING_ON_CHIP_FLASH
  150. bool "Enable on-chip FLASH"
  151. default n
  152. config BSP_USING_USBD
  153. bool "Enable OTGFS as USB device"
  154. select RT_USING_USB_DEVICE
  155. select BSP_USBD_TYPE_FS
  156. default n
  157. endmenu
  158. menu "Board extended module Drivers"
  159. endmenu
  160. endmenu