Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F411RE
  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"
  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_UART2
  28. bool "Enable UART2"
  29. default n
  30. config BSP_UART2_RX_USING_DMA
  31. bool "Enable UART2 RX DMA"
  32. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  33. default n
  34. if !BSP_USING_USBD
  35. config BSP_USING_UART6
  36. bool "Enable UART6"
  37. default n
  38. config BSP_UART6_RX_USING_DMA
  39. bool "Enable UART6 RX DMA"
  40. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  41. default n
  42. endif
  43. endif
  44. menuconfig BSP_USING_I2C1
  45. bool "Enable I2C1 BUS (software simulation)"
  46. default n
  47. select RT_USING_I2C
  48. select RT_USING_I2C_BITOPS
  49. select RT_USING_PIN
  50. if BSP_USING_I2C1
  51. comment "Notice: PB6 --> 22; PB7 --> 23"
  52. config BSP_I2C1_SCL_PIN
  53. int "i2c1 scl pin number"
  54. range 0 48
  55. default 22
  56. config BSP_I2C1_SDA_PIN
  57. int "I2C1 sda pin number"
  58. range 0 48
  59. default 23
  60. endif
  61. menuconfig BSP_USING_SPI
  62. bool "Enable SPI BUS"
  63. default n
  64. select RT_USING_SPI
  65. if BSP_USING_SPI
  66. config BSP_USING_SPI1
  67. bool "Enable SPI1 BUS"
  68. default n
  69. config BSP_SPI1_TX_USING_DMA
  70. bool "Enable SPI1 TX DMA"
  71. depends on BSP_USING_SPI1
  72. default n
  73. config BSP_SPI1_RX_USING_DMA
  74. bool "Enable SPI1 RX DMA"
  75. depends on BSP_USING_SPI1
  76. select BSP_SPI1_TX_USING_DMA
  77. default n
  78. endif
  79. menuconfig BSP_USING_TIM
  80. bool "Enable timer"
  81. default n
  82. select RT_USING_HWTIMER
  83. if BSP_USING_TIM
  84. config BSP_USING_TIM10
  85. bool "Enable TIM10"
  86. default n
  87. config BSP_USING_TIM11
  88. bool "Enable TIM11"
  89. default n
  90. endif
  91. config BSP_USING_ON_CHIP_FLASH
  92. bool "Enable on-chip FLASH"
  93. default n
  94. config BSP_USING_USBD
  95. bool "Enable USB Device"
  96. select RT_USING_USB_DEVICE
  97. default n
  98. source "../libraries/HAL_Drivers/Kconfig"
  99. endmenu
  100. menu "Board extended module Drivers"
  101. endmenu
  102. endmenu