Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_GD32H7xx
  3. bool
  4. default y
  5. config SOC_GD32H759I
  6. bool
  7. select SOC_SERIES_GD32H7xx
  8. select RT_USING_COMPONENTS_INIT
  9. select RT_USING_USER_MAIN
  10. default y
  11. menu "Onboard Peripheral Drivers"
  12. endmenu
  13. menu "On-chip Peripheral Drivers"
  14. config BSP_USING_GPIO
  15. bool "Enable GPIO"
  16. select RT_USING_PIN
  17. default y
  18. menuconfig BSP_USING_UART
  19. bool "Enable UART"
  20. default y
  21. select RT_USING_SERIAL
  22. if BSP_USING_UART
  23. config BSP_USING_UART0
  24. bool "Enable UART0"
  25. default y
  26. config BSP_UART0_RX_USING_DMA
  27. bool "Enable UART0 RX DMA"
  28. depends on BSP_USING_UART0
  29. select RT_SERIAL_USING_DMA
  30. default n
  31. config BSP_USING_UART1
  32. bool "Enable UART1"
  33. default n
  34. config BSP_UART1_RX_USING_DMA
  35. bool "Enable UART1 RX DMA"
  36. depends on BSP_USING_UART1
  37. select RT_SERIAL_USING_DMA
  38. default n
  39. config BSP_USING_UART2
  40. bool "Enable UART2"
  41. default n
  42. config BSP_UART2_RX_USING_DMA
  43. bool "Enable UART2 RX DMA"
  44. depends on BSP_USING_UART2
  45. select RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_USING_UART3
  48. bool "Enable UART3"
  49. default n
  50. config BSP_UART3_RX_USING_DMA
  51. bool "Enable UART3 RX DMA"
  52. depends on BSP_USING_UART3
  53. select RT_SERIAL_USING_DMA
  54. default n
  55. endif
  56. menuconfig BSP_USING_I2C
  57. bool "Enable I2C"
  58. default n
  59. if BSP_USING_I2C
  60. menuconfig BSP_USING_HARD_I2C
  61. bool "Enable Hardware I2C"
  62. default n
  63. select RT_USING_I2C
  64. if BSP_USING_HARD_I2C
  65. config BSP_USING_HARD_I2C0
  66. bool "Enable I2C0 Hardware BUS"
  67. default n
  68. config BSP_USING_HARD_I2C1
  69. bool "Enable I2C1 Hardware BUS"
  70. default n
  71. config BSP_USING_HARD_I2C2
  72. bool "Enable I2C2 Hardware BUS"
  73. default n
  74. config BSP_USING_HARD_I2C3
  75. bool "Enable I2C3 Hardware BUS"
  76. default n
  77. config BSP_USING_HARD_I2C4
  78. bool "Enable I2C4 Hardware BUS"
  79. default n
  80. config BSP_USING_HARD_I2C5
  81. bool "Enable I2C5 Hardware BUS"
  82. default n
  83. endif
  84. endif
  85. menuconfig BSP_USING_SPI
  86. bool "Enable SPI BUS"
  87. default n
  88. select RT_USING_SPI
  89. if BSP_USING_SPI
  90. config BSP_USING_SPI0
  91. bool "Enable SPI0 BUS"
  92. default n
  93. config BSP_USING_SPI1
  94. bool "Enable SPI1 BUS"
  95. default n
  96. config BSP_USING_SPI2
  97. bool "Enable SPI2 BUS"
  98. default n
  99. config BSP_USING_SPI3
  100. bool "Enable SPI3 BUS"
  101. default n
  102. config BSP_USING_SPI4
  103. bool "Enable SPI4 BUS"
  104. default n
  105. config BSP_USING_SPI5
  106. bool "Enable SPI5 BUS"
  107. default n
  108. endif
  109. source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
  110. endmenu
  111. menu "Board extended module Drivers"
  112. endmenu
  113. endmenu