Kconfig 5.0 KB

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