Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F410RB
  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_UART2
  21. bool "Enable UART2"
  22. default y
  23. config BSP_UART2_RX_USING_DMA
  24. bool "Enable UART2 RX DMA"
  25. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  26. default n
  27. config BSP_USING_UART6
  28. bool "Enable UART6"
  29. default n
  30. config BSP_UART6_RX_USING_DMA
  31. bool "Enable UART6 RX DMA"
  32. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  33. default n
  34. endif
  35. menuconfig BSP_USING_I2C1
  36. bool "Enable I2C1 BUS (software simulation)"
  37. default n
  38. select RT_USING_I2C
  39. select RT_USING_I2C_BITOPS
  40. select RT_USING_PIN
  41. if BSP_USING_I2C1
  42. comment "Notice: PB8 --> 24; PB9 --> 25"
  43. config BSP_I2C1_SCL_PIN
  44. int "i2c1 scl pin number"
  45. range 0 80
  46. default 24
  47. config BSP_I2C1_SDA_PIN
  48. int "I2C1 sda pin number"
  49. range 0 80
  50. default 25
  51. endif
  52. menuconfig BSP_USING_SPI
  53. bool "Enable SPI BUS"
  54. default n
  55. select RT_USING_SPI
  56. if BSP_USING_SPI
  57. config BSP_USING_SPI1
  58. bool "Enable SPI1 BUS"
  59. default n
  60. config BSP_SPI1_TX_USING_DMA
  61. bool "Enable SPI1 TX DMA"
  62. depends on BSP_USING_SPI1
  63. default n
  64. config BSP_SPI1_RX_USING_DMA
  65. bool "Enable SPI1 RX DMA"
  66. depends on BSP_USING_SPI1
  67. select BSP_SPI1_TX_USING_DMA
  68. default n
  69. endif
  70. menuconfig BSP_USING_PWM
  71. bool "Enable pwm"
  72. default n
  73. select RT_USING_PWM
  74. if BSP_USING_PWM
  75. menuconfig BSP_USING_PWM3
  76. bool "Enable timer3 output pwm"
  77. default n
  78. if BSP_USING_PWM3
  79. config BSP_USING_PWM3_CH1
  80. bool "Enable PWM3 channel1 (PA6)"
  81. default n
  82. config BSP_USING_PWM3_CH2
  83. bool "Enable PWM3 channel2 (PA7)"
  84. default n
  85. config BSP_USING_PWM3_CH3
  86. bool "Enable PWM3 channel3 (PB0)"
  87. default n
  88. config BSP_USING_PWM3_CH4
  89. bool "Enable PWM3 channel4 (PB1)"
  90. default n
  91. endif
  92. endif
  93. menuconfig BSP_USING_ONCHIP_RTC
  94. bool "Enable RTC"
  95. select RT_USING_RTC
  96. select RT_USING_LIBC
  97. default n
  98. if BSP_USING_ONCHIP_RTC
  99. choice
  100. prompt "Select clock source"
  101. default BSP_RTC_USING_LSE
  102. config BSP_RTC_USING_LSE
  103. bool "RTC USING LSE"
  104. config BSP_RTC_USING_LSI
  105. bool "RTC USING LSI"
  106. endchoice
  107. endif
  108. config BSP_USING_ON_CHIP_FLASH
  109. bool "Enable on-chip FLASH"
  110. default n
  111. source "../libraries/HAL_Drivers/Kconfig"
  112. endmenu
  113. menu "Board extended module Drivers"
  114. endmenu
  115. endmenu