Kconfig 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F407IG
  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_ARDUINO
  10. bool "Compatible with Arduino Ecosystem (RTduino)"
  11. select PKG_USING_RTDUINO
  12. select BSP_USING_STLINK_TO_USART
  13. select BSP_USING_GPIO
  14. select BSP_USING_ADC
  15. select BSP_USING_ADC1
  16. select BSP_USING_PWM
  17. select BSP_USING_PWM1
  18. select BSP_USING_PWM1_CH1
  19. select BSP_USING_PWM1_CH2
  20. select BSP_USING_PWM1_CH3
  21. select BSP_USING_PWM1_CH4
  22. select BSP_USING_PWM8
  23. select BSP_USING_PWM8_CH1
  24. select BSP_USING_PWM8_CH2
  25. select BSP_USING_PWM8_CH3
  26. select BSP_USING_I2C
  27. select BSP_USING_I2C1
  28. imply RTDUINO_USING_SERVO
  29. imply RTDUINO_USING_WIRE
  30. default n
  31. endmenu
  32. menu "On-chip Peripheral Drivers"
  33. config BSP_USING_GPIO
  34. bool "Enable GPIO"
  35. select RT_USING_PIN
  36. default y
  37. menuconfig BSP_USING_UART
  38. bool "Enable UART"
  39. default y
  40. select RT_USING_SERIAL
  41. if BSP_USING_UART
  42. config BSP_USING_UART1
  43. bool "Enable UART1 (FinSH , symbol UART2 on board)"
  44. default y
  45. config BSP_UART1_RX_USING_DMA
  46. bool "Enable UART1 RX DMA"
  47. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  48. default n
  49. config BSP_USING_UART3
  50. bool "Enable UART3 (DBUS)"
  51. default n
  52. config BSP_UART3_RX_USING_DMA
  53. bool "Enable UART3 RX DMA"
  54. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  55. default n
  56. config BSP_USING_UART6
  57. bool "Enable UART6"
  58. default n
  59. config BSP_UART6_RX_USING_DMA
  60. bool "Enable UART6 RX DMA"
  61. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  62. default n
  63. endif
  64. menuconfig BSP_USING_CAN
  65. bool "Enable CAN"
  66. default n
  67. select RT_USING_CAN
  68. if BSP_USING_CAN
  69. config BSP_USING_CAN1
  70. bool "using CAN1 (2pin)"
  71. default n
  72. config BSP_USING_CAN2
  73. bool "using CAN2 (4pin)"
  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. config BSP_USING_PWM1_CH2
  89. bool "Enable PWM1 channel2"
  90. default n
  91. config BSP_USING_PWM1_CH3
  92. bool "Enable PWM1 channel3"
  93. default n
  94. config BSP_USING_PWM1_CH4
  95. bool "Enable PWM1 channel4"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM4
  99. bool "Enable timer4 output PWM"
  100. default n
  101. if BSP_USING_PWM4
  102. config BSP_USING_PWM4_CH3
  103. bool "Enable PWM4 channel3 (buzzer)"
  104. default n
  105. endif
  106. menuconfig BSP_USING_PWM5
  107. bool "Enable timer5 output PWM"
  108. default n
  109. if BSP_USING_PWM5
  110. config BSP_USING_PWM5_CH1
  111. bool "Enable PWM5 channel1(LED_B)"
  112. default n
  113. config BSP_USING_PWM5_CH2
  114. bool "Enable PWM5 channel2(LED_G)"
  115. default n
  116. config BSP_USING_PWM5_CH3
  117. bool "Enable PWM5 channel3(LED_R)"
  118. default n
  119. endif
  120. menuconfig BSP_USING_PWM8
  121. bool "Enable timer8 output PWM"
  122. default n
  123. if BSP_USING_PWM8
  124. config BSP_USING_PWM8_CH1
  125. bool "Enable PWM8 channel1"
  126. default n
  127. config BSP_USING_PWM8_CH2
  128. bool "Enable PWM8 channel2"
  129. default n
  130. config BSP_USING_PWM8_CH3
  131. bool "Enable PWM8 channel3"
  132. default n
  133. endif
  134. endif
  135. menuconfig BSP_USING_ADC
  136. bool "Enable ADC"
  137. default n
  138. select RT_USING_ADC
  139. if BSP_USING_ADC
  140. config BSP_USING_ADC1
  141. bool "Enable ADC1"
  142. default n
  143. config BSP_USING_ADC3
  144. bool "Enable ADC3"
  145. default n
  146. endif
  147. menuconfig BSP_USING_SPI
  148. bool "Enable SPI BUS"
  149. default n
  150. select RT_USING_SPI
  151. if BSP_USING_SPI
  152. config BSP_USING_SPI2
  153. bool "Enable SPI2 BUS"
  154. default n
  155. config BSP_SPI2_TX_USING_DMA
  156. bool "Enable SPI2 TX DMA"
  157. depends on BSP_USING_SPI2
  158. default n
  159. config BSP_SPI2_RX_USING_DMA
  160. bool "Enable SPI2 RX DMA"
  161. depends on BSP_USING_SPI2
  162. select BSP_SPI2_TX_USING_DMA
  163. default n
  164. endif
  165. menuconfig BSP_USING_I2C1
  166. bool "Enable I2C1 BUS (software simulation)"
  167. default n
  168. select RT_USING_I2C
  169. select RT_USING_I2C_BITOPS
  170. select RT_USING_PIN
  171. if BSP_USING_I2C1
  172. comment "Notice: PF0 --> 80; PF1 --> 81"
  173. config BSP_I2C1_SCL_PIN
  174. int "i2c1 scl pin number"
  175. default 81
  176. config BSP_I2C1_SDA_PIN
  177. int "I2C1 sda pin number"
  178. default 80
  179. endif
  180. source "../libraries/HAL_Drivers/Kconfig"
  181. endmenu
  182. menu "Board extended module Drivers"
  183. endmenu
  184. endmenu