Kconfig 5.0 KB

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