Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_GD32F10x
  3. bool
  4. default y
  5. config SOC_GD32103V
  6. bool
  7. select SOC_SERIES_GD32F10x
  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_UART1
  24. bool "Enable UART1"
  25. default y
  26. config BSP_UART1_RX_USING_DMA
  27. bool "Enable UART1 RX DMA"
  28. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  29. default n
  30. endif
  31. menuconfig BSP_USING_SPI
  32. bool "Enable SPI BUS"
  33. default n
  34. select RT_USING_SPI
  35. if BSP_USING_SPI
  36. config BSP_USING_SPI1
  37. bool "Enable SPI1 BUS"
  38. default n
  39. config BSP_SPI1_TX_USING_DMA
  40. bool "Enable SPI1 TX DMA"
  41. depends on BSP_USING_SPI1
  42. default n
  43. config BSP_SPI1_RX_USING_DMA
  44. bool "Enable SPI1 RX DMA"
  45. depends on BSP_USING_SPI1
  46. select BSP_SPI1_TX_USING_DMA
  47. default n
  48. endif
  49. menuconfig BSP_USING_I2C1
  50. bool "Enable I2C1 BUS (software simulation)"
  51. default n
  52. select RT_USING_I2C
  53. select RT_USING_I2C_BITOPS
  54. select RT_USING_PIN
  55. if BSP_USING_I2C1
  56. config BSP_I2C1_SCL_PIN
  57. int "i2c1 scl pin number"
  58. range 1 216
  59. default 24
  60. config BSP_I2C1_SDA_PIN
  61. int "I2C1 sda pin number"
  62. range 1 216
  63. default 25
  64. endif
  65. config BSP_USING_WDT
  66. bool "Enable Watchdog Timer"
  67. select RT_USING_WDT
  68. default n
  69. config BSP_USING_RTC
  70. bool "Enable Internal RTC"
  71. select RT_USING_RTC
  72. default n
  73. menuconfig BSP_USING_HWTIMER
  74. bool "Enable hwtimer"
  75. default n
  76. select RT_USING_HWTIMER
  77. if BSP_USING_HWTIMER
  78. config BSP_USING_HWTIMER0
  79. bool "using hwtimer0"
  80. default n
  81. config BSP_USING_HWTIMER1
  82. bool "using hwtimer1"
  83. default n
  84. config BSP_USING_HWTIMER2
  85. bool "using hwtimer2"
  86. default n
  87. config BSP_USING_HWTIMER3
  88. bool "using hwtimer3"
  89. default n
  90. config BSP_USING_HWTIMER4
  91. bool "using hwtimer4"
  92. default n
  93. config BSP_USING_HWTIMER5
  94. bool "using hwtimer5"
  95. default n
  96. config BSP_USING_HWTIMER6
  97. bool "using hwtimer6"
  98. default n
  99. config BSP_USING_HWTIMER7
  100. bool "using hwtimer7"
  101. default n
  102. endif
  103. menuconfig BSP_USING_ADC
  104. bool "Enable ADC"
  105. default n
  106. select RT_USING_ADC
  107. if BSP_USING_ADC
  108. config BSP_USING_ADC0
  109. bool "using adc0"
  110. default n
  111. config BSP_USING_ADC1
  112. bool "using adc1"
  113. default n
  114. endif
  115. source "../libraries/gd32_drivers/Kconfig"
  116. endmenu
  117. menu "Board extended module Drivers"
  118. endmenu
  119. endmenu