Kconfig 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. menu "Hardware Drivers Config"
  2. config SOC_SERIES_GD32F10x
  3. bool
  4. default y
  5. config SOC_GD32105V
  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. menuconfig BSP_USING_ADC
  99. bool "Enable ADC"
  100. default n
  101. select RT_USING_ADC
  102. if BSP_USING_ADC
  103. config BSP_USING_ADC0
  104. bool "Enable ADC0"
  105. default n
  106. config BSP_USING_ADC1
  107. bool "Enable ADC1"
  108. default n
  109. endif
  110. menuconfig BSP_USING_TIM
  111. bool "Enable timer"
  112. default n
  113. select RT_USING_HWTIMER
  114. if BSP_USING_TIM
  115. config BSP_USING_TIM10
  116. bool "Enable TIM10"
  117. default n
  118. config BSP_USING_TIM11
  119. bool "Enable TIM11"
  120. default n
  121. config BSP_USING_TIM12
  122. bool "Enable TIM13"
  123. default n
  124. endif
  125. menuconfig BSP_USING_ONCHIP_RTC
  126. bool "Enable RTC"
  127. select RT_USING_RTC
  128. default n
  129. if BSP_USING_ONCHIP_RTC
  130. choice
  131. prompt "Select clock source"
  132. default BSP_RTC_USING_LSE
  133. config BSP_RTC_USING_LSE
  134. bool "RTC USING LSE"
  135. config BSP_RTC_USING_LSI
  136. bool "RTC USING LSI"
  137. endchoice
  138. endif
  139. config BSP_USING_WDT
  140. bool "Enable Watchdog Timer"
  141. select RT_USING_WDT
  142. default n
  143. config BSP_USING_SDIO
  144. bool "Enable SDIO"
  145. select RT_USING_SDIO
  146. select RT_USING_DFS
  147. default n
  148. config BSP_USING_USBD
  149. bool "Enable USB Device"
  150. select RT_USING_USB_DEVICE
  151. default n
  152. menuconfig BSP_USING_USBH
  153. bool "Enable USB Host"
  154. select RT_USING_USB_HOST
  155. default n
  156. if BSP_USING_USBH
  157. menuconfig RT_USBH_MSTORAGE
  158. bool "Enable Udisk Drivers"
  159. default n
  160. if RT_USBH_MSTORAGE
  161. config UDISK_MOUNTPOINT
  162. string "Udisk mount dir"
  163. default "/"
  164. endif
  165. endif
  166. source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
  167. endmenu
  168. menu "Board extended module Drivers"
  169. endmenu
  170. endmenu