Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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_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_SPI
  65. bool "Enable SPI BUS"
  66. default n
  67. select RT_USING_SPI
  68. if BSP_USING_SPI
  69. config BSP_USING_SPI1
  70. bool "Enable SPI1 BUS"
  71. default n
  72. config BSP_SPI1_TX_USING_DMA
  73. bool "Enable SPI1 TX DMA"
  74. depends on BSP_USING_SPI1
  75. default n
  76. config BSP_SPI1_RX_USING_DMA
  77. bool "Enable SPI1 RX DMA"
  78. depends on BSP_USING_SPI1
  79. select BSP_SPI1_TX_USING_DMA
  80. default n
  81. endif
  82. menuconfig BSP_USING_I2C1
  83. bool "Enable I2C1 BUS (software simulation)"
  84. default n
  85. select RT_USING_I2C
  86. select RT_USING_I2C_BITOPS
  87. select RT_USING_PIN
  88. if BSP_USING_I2C1
  89. config BSP_I2C1_SCL_PIN
  90. int "i2c1 scl pin number"
  91. range 1 216
  92. default 24
  93. config BSP_I2C1_SDA_PIN
  94. int "I2C1 sda pin number"
  95. range 1 216
  96. default 25
  97. endif
  98. config BSP_USING_WDT
  99. bool "Enable Watchdog Timer"
  100. select RT_USING_WDT
  101. default n
  102. config BSP_USING_RTC
  103. bool "Enable Internal RTC"
  104. select RT_USING_RTC
  105. default n
  106. menuconfig BSP_USING_HWTIMER
  107. bool "Enable hwtimer"
  108. default n
  109. select RT_USING_HWTIMER
  110. if BSP_USING_HWTIMER
  111. config BSP_USING_HWTIMER0
  112. bool "using hwtimer0"
  113. default n
  114. config BSP_USING_HWTIMER1
  115. bool "using hwtimer1"
  116. default n
  117. config BSP_USING_HWTIMER2
  118. bool "using hwtimer2"
  119. default n
  120. config BSP_USING_HWTIMER3
  121. bool "using hwtimer3"
  122. default n
  123. config BSP_USING_HWTIMER4
  124. bool "using hwtimer4"
  125. default n
  126. config BSP_USING_HWTIMER5
  127. bool "using hwtimer5"
  128. default n
  129. config BSP_USING_HWTIMER6
  130. bool "using hwtimer6"
  131. default n
  132. config BSP_USING_HWTIMER7
  133. bool "using hwtimer7"
  134. default n
  135. endif
  136. menuconfig BSP_USING_ADC
  137. bool "Enable ADC"
  138. default n
  139. select RT_USING_ADC
  140. if BSP_USING_ADC
  141. config BSP_USING_ADC0
  142. bool "using adc0"
  143. default n
  144. config BSP_USING_ADC1
  145. bool "using adc1"
  146. default n
  147. endif
  148. source "../libraries/gd32_drivers/Kconfig"
  149. endmenu
  150. menu "Board extended module Drivers"
  151. endmenu
  152. endmenu