Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. config BSP_USING_GPIO
  12. bool "Enable GPIO"
  13. select RT_USING_PIN
  14. default y
  15. menuconfig BSP_USING_UART
  16. bool "Enable UART"
  17. default y
  18. select RT_USING_SERIAL
  19. if BSP_USING_UART
  20. config BSP_USING_UART1
  21. bool "Enable UART1 (FinSH , symbol UART2 on board)"
  22. default y
  23. config BSP_UART1_RX_USING_DMA
  24. bool "Enable UART1 RX DMA"
  25. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  26. default n
  27. config BSP_USING_UART3
  28. bool "Enable UART3 (DBUS)"
  29. default n
  30. config BSP_UART3_RX_USING_DMA
  31. bool "Enable UART3 RX DMA"
  32. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  33. default n
  34. config BSP_USING_UART6
  35. bool "Enable UART6"
  36. default n
  37. config BSP_UART6_RX_USING_DMA
  38. bool "Enable UART6 RX DMA"
  39. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  40. default n
  41. endif
  42. menuconfig BSP_USING_CAN
  43. bool "Enable CAN"
  44. default n
  45. select RT_USING_CAN
  46. if BSP_USING_CAN
  47. config BSP_USING_CAN1
  48. bool "using CAN1 (2pin)"
  49. default n
  50. config BSP_USING_CAN2
  51. bool "using CAN2 (4pin)"
  52. default n
  53. endif
  54. menuconfig BSP_USING_PWM
  55. bool "Enable PWM"
  56. default n
  57. select RT_USING_PWM
  58. if BSP_USING_PWM
  59. menuconfig BSP_USING_PWM1
  60. bool "Enable timer1 output PWM"
  61. default n
  62. if BSP_USING_PWM1
  63. config BSP_USING_PWM1_CH1
  64. bool "Enable PWM1 channel1"
  65. default n
  66. config BSP_USING_PWM1_CH2
  67. bool "Enable PWM1 channel2"
  68. default n
  69. config BSP_USING_PWM1_CH3
  70. bool "Enable PWM1 channel3"
  71. default n
  72. config BSP_USING_PWM1_CH4
  73. bool "Enable PWM1 channel4"
  74. default n
  75. endif
  76. menuconfig BSP_USING_PWM4
  77. bool "Enable timer4 output PWM"
  78. default n
  79. if BSP_USING_PWM4
  80. config BSP_USING_PWM4_CH3
  81. bool "Enable PWM4 channel3 (buzzer)"
  82. default n
  83. endif
  84. menuconfig BSP_USING_PWM8
  85. bool "Enable timer8 output PWM"
  86. default n
  87. if BSP_USING_PWM8
  88. config BSP_USING_PWM8_CH1
  89. bool "Enable PWM8 channel1"
  90. default n
  91. config BSP_USING_PWM8_CH2
  92. bool "Enable PWM8 channel2"
  93. default n
  94. config BSP_USING_PWM8_CH3
  95. bool "Enable PWM8 channel3"
  96. default n
  97. endif
  98. endif
  99. menuconfig BSP_USING_ADC
  100. bool "Enable ADC"
  101. default n
  102. select RT_USING_ADC
  103. if BSP_USING_ADC
  104. config BSP_USING_ADC3
  105. bool "Enable ADC3"
  106. default n
  107. endif
  108. menuconfig BSP_USING_SPI
  109. bool "Enable SPI BUS"
  110. default n
  111. select RT_USING_SPI
  112. if BSP_USING_SPI
  113. config BSP_USING_SPI2
  114. bool "Enable SPI2 BUS"
  115. default n
  116. config BSP_SPI2_TX_USING_DMA
  117. bool "Enable SPI2 TX DMA"
  118. depends on BSP_USING_SPI2
  119. default n
  120. config BSP_SPI2_RX_USING_DMA
  121. bool "Enable SPI2 RX DMA"
  122. depends on BSP_USING_SPI2
  123. select BSP_SPI2_TX_USING_DMA
  124. default n
  125. endif
  126. menuconfig BSP_USING_I2C1
  127. bool "Enable I2C1 BUS (software simulation)"
  128. default n
  129. select RT_USING_I2C
  130. select RT_USING_I2C_BITOPS
  131. select RT_USING_PIN
  132. if BSP_USING_I2C1
  133. config BSP_I2C1_SCL_PIN
  134. int "i2c1 scl pin number"
  135. default 81
  136. config BSP_I2C1_SDA_PIN
  137. int "I2C1 sda pin number"
  138. default 80
  139. endif
  140. source "../libraries/HAL_Drivers/Kconfig"
  141. endmenu
  142. menu "Board extended module Drivers"
  143. endmenu
  144. endmenu