Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F405ZG
  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_SPI_FLASH
  10. bool "Enable SPI FLASH (W25Q64 spi2)"
  11. select BSP_USING_SPI
  12. select BSP_USING_SPI2
  13. select RT_USING_SFUD
  14. select RT_SFUD_USING_SFDP
  15. default n
  16. config BSP_USING_EEPROM
  17. bool "Enable I2C EEPROM (i2c1)"
  18. select BSP_USING_I2C
  19. select BSP_USING_I2C1
  20. default n
  21. config BSP_USING_RGB
  22. bool "Enable RGB LED (timer10/11/13 channel2)"
  23. select RT_USING_PWM
  24. select BSP_USING_PWM
  25. select BSP_USING_PWM10
  26. select BSP_USING_PWM10_CH1
  27. select BSP_USING_PWM11
  28. select BSP_USING_PWM11_CH1
  29. select BSP_USING_PWM13
  30. select BSP_USING_PWM13_CH1
  31. default n
  32. endmenu
  33. menu "On-chip Peripheral Drivers"
  34. config BSP_USING_GPIO
  35. bool "Enable GPIO"
  36. select RT_USING_PIN
  37. default y
  38. menuconfig BSP_USING_UART
  39. bool "Enable UART"
  40. default y
  41. select RT_USING_SERIAL
  42. if BSP_USING_UART
  43. config BSP_USING_UART1
  44. bool "Enable UART1"
  45. default y
  46. endif
  47. menuconfig BSP_USING_SPI
  48. bool "Enable SPI BUS"
  49. default n
  50. select RT_USING_SPI
  51. if BSP_USING_SPI
  52. config BSP_USING_SPI2
  53. bool "Enable SPI2 BUS"
  54. default n
  55. endif
  56. menuconfig BSP_USING_I2C
  57. bool "Enable I2C BUS"
  58. default n
  59. select RT_USING_I2C
  60. if BSP_USING_I2C
  61. config BSP_USING_I2C1
  62. bool "Enable I2C1 BUS"
  63. default n
  64. config BSP_USING_I2C2
  65. bool "Enable I2C2 BUS"
  66. default n
  67. endif
  68. menuconfig BSP_USING_TIM
  69. bool "Enable timer"
  70. default n
  71. select RT_USING_HWTIMER
  72. if BSP_USING_TIM
  73. config BSP_USING_TIM6
  74. bool "Enable TIM6"
  75. default n
  76. endif
  77. menuconfig BSP_USING_PWM
  78. bool "Enable PWM"
  79. default n
  80. select RT_USING_PWM
  81. if BSP_USING_PWM
  82. menuconfig BSP_USING_PWM10
  83. bool "Enable timer10 output PWM"
  84. default n
  85. if BSP_USING_PWM10
  86. config BSP_USING_PWM10_CH1
  87. bool "Enable PWM10 channel1"
  88. default n
  89. endif
  90. menuconfig BSP_USING_PWM11
  91. bool "Enable timer11 output PWM"
  92. default n
  93. if BSP_USING_PWM11
  94. config BSP_USING_PWM11_CH1
  95. bool "Enable PWM11 channel1"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM13
  99. bool "Enable timer13 output PWM"
  100. default n
  101. if BSP_USING_PWM13
  102. config BSP_USING_PWM13_CH1
  103. bool "Enable PWM13 channel1"
  104. default n
  105. endif
  106. endif
  107. source "../libraries/HAL_Drivers/Kconfig"
  108. endmenu
  109. menu "Board extended module Drivers"
  110. endmenu
  111. endmenu