Kconfig 3.7 KB

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