Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. menu "Hardware Drivers Config"
  2. config SOC_GD32VF103V
  3. bool
  4. select SOC_SERIES_GD32VF103V
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_UART_CONSOLE
  8. bool "Enable UART CONSOLE"
  9. select BSP_USING_UART
  10. select BSP_USING_UART4
  11. default y
  12. endmenu
  13. menu "On-chip Peripheral Drivers"
  14. menuconfig BSP_USING_UART
  15. bool "Enable UART"
  16. default y
  17. select RT_USING_SERIAL
  18. if BSP_USING_UART
  19. config BSP_USING_UART0
  20. bool "Enable UART0"
  21. default n
  22. config BSP_USING_UART1
  23. bool "Enable UART1"
  24. default n
  25. config BSP_USING_UART2
  26. bool "Enable UART2"
  27. default n
  28. config BSP_USING_UART3
  29. bool "Enable UART3"
  30. default n
  31. config BSP_USING_UART4
  32. bool "Enable UART4"
  33. default n
  34. endif
  35. menuconfig BSP_USING_I2C
  36. bool "Enable I2C"
  37. default n
  38. select RT_USING_I2C
  39. if BSP_USING_I2C
  40. config BSP_USING_I2C0
  41. bool "Enable I2C0"
  42. default n
  43. config BSP_USING_I2C1
  44. bool "Enable I2C1"
  45. default n
  46. endif
  47. menuconfig BSP_USING_SPI
  48. bool "Enable SPI"
  49. default n
  50. select RT_USING_SPI
  51. if BSP_USING_SPI
  52. config BSP_USING_SPI0
  53. bool "Enable SPI0"
  54. default n
  55. config BSP_USING_SPI1
  56. bool "Enable SPI1"
  57. default n
  58. config BSP_USING_SPI2
  59. bool "Enable SPI2"
  60. default n
  61. endif
  62. menuconfig BSP_USING_HWTIMER
  63. bool "Enable TIMER"
  64. default n
  65. select RT_USING_HWTIMER
  66. if BSP_USING_HWTIMER
  67. config BSP_USING_HWTIMER0
  68. bool "Enable TIMER0"
  69. default n
  70. config BSP_USING_HWTIMER1
  71. bool "Enable TIMER1"
  72. default n
  73. config BSP_USING_HWTIMER2
  74. bool "Enable TIMER2"
  75. default n
  76. config BSP_USING_HWTIMER3
  77. bool "Enable TIMER3"
  78. default n
  79. config BSP_USING_HWTIMER4
  80. bool "Enable TIMER4"
  81. default n
  82. config BSP_USING_HWTIMER5
  83. bool "Enable TIMER5"
  84. default n
  85. config BSP_USING_HWTIMER6
  86. bool "Enable TIMER6"
  87. default n
  88. endif
  89. menuconfig BSP_USING_ADC
  90. bool "Enable ADC"
  91. default n
  92. select RT_USING_ADC
  93. if BSP_USING_ADC
  94. config BSP_USING_ADC0
  95. bool "Enable ADC0"
  96. default n
  97. config BSP_USING_ADC1
  98. bool "Enable ADC1"
  99. default n
  100. endif
  101. menuconfig BSP_USING_WDT
  102. bool "Enable WDT"
  103. default n
  104. select RT_USING_WDT
  105. menuconfig BSP_USING_RTC
  106. bool "Enable RTC"
  107. default n
  108. select RT_USING_RTC
  109. menuconfig BSP_USING_PWM
  110. bool "Enable PWM"
  111. default n
  112. select RT_USING_PWM
  113. if BSP_USING_PWM
  114. config BSP_USING_PWM0
  115. bool "Enable PWM0"
  116. default n
  117. config BSP_USING_PWM1
  118. bool "Enable PWM1"
  119. default n
  120. config BSP_USING_PWM2
  121. bool "Enable PWM2"
  122. default n
  123. config BSP_USING_PWM3
  124. bool "Enable PWM3"
  125. default n
  126. config BSP_USING_PWM4
  127. bool "Enable PWM4"
  128. default n
  129. endif
  130. endmenu
  131. menu "Board extended module Drivers"
  132. endmenu
  133. endmenu