Kconfig 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. 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. endif
  87. menuconfig BSP_USING_PWM2
  88. bool "Enable timer2 output PWM"
  89. default n
  90. if BSP_USING_PWM2
  91. config BSP_USING_PWM2_CH2
  92. bool "Enable PWM2 channel2"
  93. default n
  94. config BSP_USING_PWM2_CH3
  95. bool "Enable PWM2 channel3"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM3
  99. bool "Enable timer3 output PWM"
  100. default n
  101. if BSP_USING_PWM3
  102. config BSP_USING_PWM3_CH1
  103. bool "Enable PWM3 channel1"
  104. default n
  105. config BSP_USING_PWM3_CH2
  106. bool "Enable PWM3 channel2"
  107. default n
  108. endif
  109. menuconfig BSP_USING_PWM4
  110. bool "Enable timer4 output PWM"
  111. default n
  112. if BSP_USING_PWM4
  113. config BSP_USING_PWM4_CH1
  114. bool "Enable PWM4 channel1"
  115. default n
  116. endif
  117. endif
  118. menuconfig BSP_USING_SPI
  119. bool "Enable SPI BUS"
  120. default n
  121. select RT_USING_SPI
  122. if BSP_USING_SPI
  123. config BSP_USING_SPI1
  124. bool "Enable SPI1 BUS"
  125. default n
  126. config BSP_SPI1_TX_USING_DMA
  127. bool "Enable SPI1 TX DMA"
  128. depends on BSP_USING_SPI1
  129. default n
  130. config BSP_SPI1_RX_USING_DMA
  131. bool "Enable SPI1 RX DMA"
  132. depends on BSP_USING_SPI1
  133. select BSP_SPI1_TX_USING_DMA
  134. default n
  135. endif
  136. menuconfig BSP_USING_I2C
  137. bool "Enable I2C BUS"
  138. default n
  139. select RT_USING_I2C
  140. select RT_USING_I2C_BITOPS
  141. select RT_USING_PIN
  142. if BSP_USING_I2C
  143. config BSP_USING_I2C1
  144. bool "Enable I2C1 Bus (User I2C)"
  145. default n
  146. if BSP_USING_I2C1
  147. comment "Notice: PB9 --> 25; PB8 --> 24"
  148. config BSP_I2C1_SCL_PIN
  149. int "i2c1 SCL pin number"
  150. range 1 176
  151. default 24
  152. config BSP_I2C1_SDA_PIN
  153. int "i2c1 SDA pin number"
  154. range 1 176
  155. default 25
  156. endif
  157. endif
  158. source "../libraries/HAL_Drivers/Kconfig"
  159. endmenu
  160. menu "Board extended module Drivers"
  161. endmenu
  162. endmenu