Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_STLINK_TO_USART
  4. bool "Enable STLINK TO USART (uart2)"
  5. select BSP_USING_UART
  6. select BSP_USING_UART2
  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_PWM2
  17. select BSP_USING_PWM2_CH2
  18. select BSP_USING_PWM2_CH3
  19. select BSP_USING_PWM3
  20. select BSP_USING_PWM3_CH1
  21. select BSP_USING_PWM3_CH2
  22. select BSP_USING_PWM16
  23. select BSP_USING_PWM16_CH1
  24. select BSP_USING_PWM17
  25. select BSP_USING_PWM17_CH1
  26. select BSP_USING_I2C
  27. select BSP_USING_I2C1
  28. select BSP_USING_SPI
  29. select BSP_USING_SPI1
  30. select BSP_SPI1_TX_USING_DMA
  31. select BSP_SPI1_RX_USING_DMA
  32. select RTDUINO_USING_WIRE
  33. select RTDUINO_USING_SPI
  34. imply RTDUINO_USING_SERVO
  35. default n
  36. endmenu
  37. menu "On-chip Peripheral Drivers"
  38. config BSP_USING_GPIO
  39. bool "Enable GPIO"
  40. select RT_USING_PIN
  41. default y
  42. menuconfig BSP_USING_UART
  43. bool "Enable UART"
  44. default y
  45. select RT_USING_SERIAL
  46. if BSP_USING_UART
  47. config BSP_USING_UART1
  48. bool "Enable UART1"
  49. default n
  50. config BSP_UART1_RX_USING_DMA
  51. bool "Enable UART1 RX DMA"
  52. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  53. default n
  54. config BSP_USING_UART2
  55. bool "Enable UART2"
  56. default n
  57. config BSP_UART2_RX_USING_DMA
  58. bool "Enable UART2 RX DMA"
  59. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  60. default n
  61. endif
  62. menuconfig BSP_USING_ADC
  63. bool "Enable ADC"
  64. default n
  65. select RT_USING_ADC
  66. if BSP_USING_ADC
  67. config BSP_USING_ADC1
  68. bool "Enable ADC1"
  69. default n
  70. endif
  71. menuconfig BSP_USING_TIM
  72. bool "Enable timer"
  73. default n
  74. select RT_USING_HWTIMER
  75. if BSP_USING_TIM
  76. config BSP_USING_TIM7
  77. bool "Enable TIM7"
  78. default n
  79. endif
  80. menuconfig BSP_USING_PWM
  81. bool "Enable PWM"
  82. default n
  83. select RT_USING_PWM
  84. if BSP_USING_PWM
  85. menuconfig BSP_USING_PWM2
  86. bool "Enable timer2 output PWM"
  87. default n
  88. if BSP_USING_PWM2
  89. config BSP_USING_PWM2_CH2
  90. bool "Enable PWM2 channel2"
  91. default n
  92. config BSP_USING_PWM2_CH3
  93. bool "Enable PWM2 channel3"
  94. default n
  95. endif
  96. menuconfig BSP_USING_PWM3
  97. bool "Enable timer3 output PWM"
  98. default n
  99. if BSP_USING_PWM3
  100. config BSP_USING_PWM3_CH1
  101. bool "Enable PWM3 channel1"
  102. default n
  103. config BSP_USING_PWM3_CH2
  104. bool "Enable PWM3 channel2"
  105. default n
  106. endif
  107. menuconfig BSP_USING_PWM16
  108. bool "Enable timer16 output PWM"
  109. default n
  110. if BSP_USING_PWM16
  111. config BSP_USING_PWM16_CH1
  112. bool "Enable PWM16 channel1"
  113. default n
  114. endif
  115. menuconfig BSP_USING_PWM17
  116. bool "Enable timer17 output PWM"
  117. default n
  118. if BSP_USING_PWM17
  119. config BSP_USING_PWM17_CH1
  120. bool "Enable PWM17 channel1"
  121. default n
  122. endif
  123. endif
  124. menuconfig BSP_USING_I2C
  125. bool "Enable I2C BUS"
  126. default n
  127. select RT_USING_I2C
  128. select RT_USING_I2C_BITOPS
  129. select RT_USING_PIN
  130. if BSP_USING_I2C
  131. config BSP_USING_I2C1
  132. bool "Enable I2C1 Bus (User I2C)"
  133. default n
  134. if BSP_USING_I2C1
  135. comment "Notice: PB9 --> 25; PB8 --> 24"
  136. config BSP_I2C1_SCL_PIN
  137. int "i2c1 SCL pin number"
  138. range 1 176
  139. default 24
  140. config BSP_I2C1_SDA_PIN
  141. int "i2c1 SDA pin number"
  142. range 1 176
  143. default 25
  144. endif
  145. endif
  146. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  147. endmenu
  148. menu "Board extended module Drivers"
  149. endmenu
  150. endmenu