Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F407ZG
  3. bool
  4. select SOC_SERIES_STM32F4
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (uart1)"
  9. select BSP_USING_UART1
  10. default y
  11. config BSP_USING_SPI_FLASH
  12. bool "Enable SPI FLASH (w25q128 spi1)"
  13. select BSP_USING_SPI1
  14. select RT_USING_SFUD
  15. select RT_SFUD_USING_SFDP
  16. default n
  17. config BSP_USING_COM3
  18. bool "Enable COM3 (uart3)"
  19. select BSP_USING_UART3
  20. default n
  21. config BSP_USING_EEPROM
  22. bool "Enable I2C EEPROM (i2c1)"
  23. select BSP_USING_I2C1
  24. default n
  25. config BSP_USING_ETH
  26. bool "Enable Ethernet"
  27. default n
  28. select RT_USING_LWIP
  29. if BSP_USING_ETH
  30. config EXTERNAL_PHY_ADDRESS
  31. hex
  32. default 0x00
  33. endif
  34. config BSP_USING_MPU6050
  35. bool "Enable MPU6050 (i2c1)"
  36. default n
  37. select BSP_USING_I2C1
  38. select PKG_USING_MPU6XXX
  39. config BSP_USING_SDCARD
  40. bool "Enable SDCARD (sdio)"
  41. select BSP_USING_SDIO
  42. select RT_USING_DFS
  43. select RT_USING_DFS_ELMFAT
  44. default n
  45. endmenu
  46. menu "On-chip Peripheral Drivers"
  47. config BSP_USING_GPIO
  48. bool "Enable GPIO"
  49. select RT_USING_PIN
  50. default y
  51. config BSP_USING_UART1
  52. bool "Enable UART1"
  53. select RT_USING_SERIAL
  54. default y
  55. config BSP_USING_UART2
  56. bool "Enable UART2"
  57. select RT_USING_SERIAL
  58. default n
  59. config BSP_USING_UART3
  60. bool "Enable UART3"
  61. select RT_USING_SERIAL
  62. default n
  63. config BSP_USING_UART6
  64. bool "Enable UART6"
  65. select RT_USING_SERIAL
  66. default n
  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. config BSP_USING_TIM13
  76. bool "Enable TIM13"
  77. default n
  78. config BSP_USING_TIM14
  79. bool "Enable TIM14"
  80. default n
  81. endif
  82. menuconfig BSP_USING_PWM
  83. bool "Enable pwm"
  84. default n
  85. select RT_USING_PWM
  86. if BSP_USING_PWM
  87. menuconfig BSP_USING_PWM2
  88. bool "Enable timer2 output pwm"
  89. default n
  90. if BSP_USING_PWM2
  91. config BSP_USING_PWM2_CH4
  92. bool "Enable PWM2 channel4"
  93. default n
  94. endif
  95. endif
  96. config BSP_USING_ON_CHIP_FLASH
  97. bool "Enable on-chip FLASH"
  98. default n
  99. config BSP_USING_SPI1
  100. bool "Enable SPI1 BUS"
  101. select RT_USING_SPI
  102. default y
  103. config BSP_USING_SPI2
  104. bool "Enable SPI2 BUS"
  105. select RT_USING_SPI
  106. default n
  107. config BSP_SPI_USING_DMA
  108. bool "Enable SPI DMA support"
  109. default n
  110. menuconfig BSP_USING_ADC
  111. bool "Enable ADC"
  112. default n
  113. select RT_USING_ADC
  114. if BSP_USING_ADC
  115. config BSP_USING_ADC1
  116. bool "Enable ADC1"
  117. default n
  118. config BSP_USING_ADC2
  119. bool "Enable ADC2"
  120. default n
  121. config BSP_USING_ADC3
  122. bool "Enable ADC3"
  123. default n
  124. endif
  125. menuconfig BSP_USING_I2C1
  126. bool "Enable I2C1 BUS (software simulation)"
  127. default y
  128. select RT_USING_I2C
  129. select RT_USING_I2C_BITOPS
  130. select RT_USING_PIN
  131. if BSP_USING_I2C1
  132. config BSP_I2C1_SCL_PIN
  133. int "i2c1 scl pin number"
  134. range 0 143
  135. default 24
  136. config BSP_I2C1_SDA_PIN
  137. int "I2C1 sda pin number"
  138. range 0 143
  139. default 25
  140. endif
  141. config BSP_USING_ONCHIP_RTC
  142. bool "Enable RTC"
  143. select RT_USING_RTC
  144. select RT_USING_LIBC
  145. default n
  146. config BSP_USING_WDT
  147. bool "Enable Watchdog Timer"
  148. select RT_USING_WDT
  149. default n
  150. config BSP_USING_SDIO
  151. bool "Enable SDIO"
  152. select RT_USING_SDIO
  153. select RT_USING_DFS
  154. default n
  155. endmenu
  156. menu "Board extended module Drivers"
  157. endmenu
  158. endmenu