Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_GD32F10x
  3. bool
  4. default y
  5. config SOC_GD32105R
  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_UART0
  24. bool "Enable UART0"
  25. default n
  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 y
  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. config BSP_USING_UART4
  56. bool "Enable UART4"
  57. default n
  58. config BSP_UART4_RX_USING_DMA
  59. bool "Enable UART4 RX DMA"
  60. depends on BSP_USING_UART4
  61. select RT_SERIAL_USING_DMA
  62. default n
  63. endif
  64. menuconfig BSP_USING_ADC
  65. bool "Enable ADC"
  66. default n
  67. select RT_USING_ADC
  68. if BSP_USING_ADC
  69. config BSP_USING_ADC0
  70. bool "using adc0"
  71. default n
  72. config BSP_USING_ADC1
  73. bool "using adc1"
  74. default n
  75. endif
  76. menuconfig BSP_USING_SPI
  77. bool "Enable SPI BUS"
  78. default n
  79. select RT_USING_SPI
  80. if BSP_USING_SPI
  81. config BSP_USING_SPI0
  82. bool "Enable SPI0 BUS"
  83. default n
  84. config BSP_USING_SPI1
  85. bool "Enable SPI1 BUS"
  86. default n
  87. config BSP_USING_SPI2
  88. bool "Enable SPI2 BUS"
  89. default n
  90. endif
  91. menuconfig BSP_USING_I2C1
  92. bool "Enable I2C1 BUS (software simulation)"
  93. default n
  94. select RT_USING_I2C
  95. select RT_USING_I2C_BITOPS
  96. select RT_USING_PIN
  97. if BSP_USING_I2C1
  98. config BSP_I2C1_SCL_PIN
  99. int "i2c1 scl pin number"
  100. range 1 216
  101. default 24
  102. config BSP_I2C1_SDA_PIN
  103. int "I2C1 sda pin number"
  104. range 1 216
  105. default 25
  106. endif
  107. menuconfig BSP_USING_TIM
  108. bool "Enable timer"
  109. default n
  110. select RT_USING_HWTIMER
  111. if BSP_USING_TIM
  112. config BSP_USING_TIM10
  113. bool "Enable TIM10"
  114. default n
  115. config BSP_USING_TIM11
  116. bool "Enable TIM11"
  117. default n
  118. config BSP_USING_TIM12
  119. bool "Enable TIM12"
  120. default n
  121. config BSP_USING_TIM13
  122. bool "Enable TIM13"
  123. default n
  124. endif
  125. config BSP_USING_WDT
  126. bool "Enable Watchdog Timer"
  127. select RT_USING_WDT
  128. default n
  129. config BSP_USING_RTC
  130. bool "using internal rtc"
  131. default n
  132. select RT_USING_RTC
  133. source "../libraries/gd32_drivers/Kconfig"
  134. endmenu
  135. menu "Board extended module Drivers"
  136. endmenu
  137. endmenu