Kconfig 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. endmenu
  40. menu "On-chip Peripheral Drivers"
  41. config BSP_USING_GPIO
  42. bool "Enable GPIO"
  43. select RT_USING_PIN
  44. default y
  45. config BSP_USING_UART1
  46. bool "Enable UART1"
  47. select RT_USING_SERIAL
  48. default y
  49. config BSP_USING_UART2
  50. bool "Enable UART2"
  51. select RT_USING_SERIAL
  52. default n
  53. config BSP_USING_UART3
  54. bool "Enable UART3"
  55. select RT_USING_SERIAL
  56. default n
  57. config BSP_USING_UART6
  58. bool "Enable UART6"
  59. select RT_USING_SERIAL
  60. default n
  61. config BSP_USING_ON_CHIP_FLASH
  62. bool "Enable on-chip FLASH"
  63. default n
  64. config BSP_UART_USING_DMA_RX
  65. bool "Enable UART RX DMA support"
  66. default n
  67. config BSP_USING_SPI1
  68. bool "Enable SPI1 BUS"
  69. select RT_USING_SPI
  70. default y
  71. config BSP_USING_SPI2
  72. bool "Enable SPI2 BUS"
  73. select RT_USING_SPI
  74. default n
  75. config BSP_USING_SPI3
  76. bool "Enable SPI3 BUS"
  77. select RT_USING_SPI
  78. default n
  79. config BSP_SPI_USING_DMA
  80. bool "Enable SPI DMA support"
  81. default n
  82. menuconfig BSP_USING_ADC
  83. bool "Enable ADC"
  84. default n
  85. select RT_USING_ADC
  86. if BSP_USING_ADC
  87. config BSP_USING_ADC1
  88. bool "Enable ADC1"
  89. default n
  90. config BSP_USING_ADC2
  91. bool "Enable ADC2"
  92. default n
  93. config BSP_USING_ADC3
  94. bool "Enable ADC3"
  95. default n
  96. endif
  97. menuconfig BSP_USING_I2C1
  98. bool "Enable I2C1 BUS (software simulation)"
  99. default y
  100. select RT_USING_I2C
  101. select RT_USING_I2C_BITOPS
  102. select RT_USING_PIN
  103. if BSP_USING_I2C1
  104. config BSP_I2C1_SCL_PIN
  105. int "i2c1 scl pin number"
  106. range 0 143
  107. default 24
  108. config BSP_I2C1_SDA_PIN
  109. int "I2C1 sda pin number"
  110. range 0 143
  111. default 25
  112. endif
  113. config BSP_USING_ONCHIP_RTC
  114. bool "Enable RTC"
  115. select RT_USING_RTC
  116. select RT_USING_LIBC
  117. default n
  118. config BSP_USING_WDT
  119. bool "Enable Watchdog Timer"
  120. select RT_USING_WDT
  121. default n
  122. endmenu
  123. menu "Board extended module Drivers"
  124. endmenu
  125. endmenu