Kconfig 5.2 KB

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