Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 "Compatible with Arduino Ecosystem (RTduino)"
  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. 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 n
  46. select RT_USING_SERIAL
  47. if BSP_USING_UART
  48. config BSP_USING_UART2
  49. bool "Enable UART2"
  50. default n
  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. endif
  56. menuconfig BSP_USING_ADC
  57. bool "Enable ADC"
  58. default n
  59. select RT_USING_ADC
  60. if BSP_USING_ADC
  61. config BSP_USING_ADC1
  62. bool "Enable ADC1"
  63. default n
  64. endif
  65. menuconfig BSP_USING_TIM
  66. bool "Enable timer"
  67. default n
  68. select RT_USING_HWTIMER
  69. if BSP_USING_TIM
  70. config BSP_USING_TIM11
  71. bool "Enable TIM11"
  72. default n
  73. endif
  74. menuconfig BSP_USING_PWM
  75. bool "Enable PWM"
  76. default n
  77. select RT_USING_PWM
  78. if BSP_USING_PWM
  79. menuconfig BSP_USING_PWM1
  80. bool "Enable timer1 output PWM"
  81. default n
  82. if BSP_USING_PWM1
  83. config BSP_USING_PWM1_CH1
  84. bool "Enable PWM1 channel1"
  85. default n
  86. config BSP_USING_PWM1_CH4
  87. bool "Enable PWM1 channel4"
  88. default n
  89. endif
  90. menuconfig BSP_USING_PWM2
  91. bool "Enable timer2 output PWM"
  92. default n
  93. if BSP_USING_PWM2
  94. config BSP_USING_PWM2_CH2
  95. bool "Enable PWM2 channel2"
  96. default n
  97. config BSP_USING_PWM2_CH3
  98. bool "Enable PWM2 channel3"
  99. default n
  100. endif
  101. menuconfig BSP_USING_PWM3
  102. bool "Enable timer3 output PWM"
  103. default n
  104. if BSP_USING_PWM3
  105. config BSP_USING_PWM3_CH1
  106. bool "Enable PWM3 channel1"
  107. default n
  108. config BSP_USING_PWM3_CH2
  109. bool "Enable PWM3 channel2"
  110. default n
  111. endif
  112. menuconfig BSP_USING_PWM4
  113. bool "Enable timer4 output PWM"
  114. default n
  115. if BSP_USING_PWM4
  116. config BSP_USING_PWM4_CH1
  117. bool "Enable PWM4 channel1"
  118. default n
  119. endif
  120. endif
  121. menuconfig BSP_USING_SPI
  122. bool "Enable SPI BUS"
  123. default n
  124. select RT_USING_SPI
  125. if BSP_USING_SPI
  126. config BSP_USING_SPI1
  127. bool "Enable SPI1 BUS"
  128. default n
  129. config BSP_SPI1_TX_USING_DMA
  130. bool "Enable SPI1 TX DMA"
  131. depends on BSP_USING_SPI1
  132. default n
  133. config BSP_SPI1_RX_USING_DMA
  134. bool "Enable SPI1 RX DMA"
  135. depends on BSP_USING_SPI1
  136. select BSP_SPI1_TX_USING_DMA
  137. default n
  138. endif
  139. menuconfig BSP_USING_I2C
  140. bool "Enable I2C BUS"
  141. default n
  142. select RT_USING_I2C
  143. select RT_USING_I2C_BITOPS
  144. select RT_USING_PIN
  145. if BSP_USING_I2C
  146. config BSP_USING_I2C1
  147. bool "Enable I2C1 Bus (User I2C)"
  148. default n
  149. if BSP_USING_I2C1
  150. comment "Notice: PB9 --> 25; PB8 --> 24"
  151. config BSP_I2C1_SCL_PIN
  152. int "i2c1 SCL pin number"
  153. range 1 176
  154. default 24
  155. config BSP_I2C1_SDA_PIN
  156. int "i2c1 SDA pin number"
  157. range 1 176
  158. default 25
  159. endif
  160. endif
  161. source "../libraries/HAL_Drivers/Kconfig"
  162. endmenu
  163. menu "Board extended module Drivers"
  164. endmenu
  165. endmenu