Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. menu "Hardware Drivers Config"
  2. menu "SOC Series"
  3. menuconfig SOC_SERIES_GD32E50x
  4. bool "Enable GD32E50x"
  5. default y
  6. select SERIES_GD32E50x
  7. if SOC_SERIES_GD32E50x
  8. config SOC_GD32503V
  9. bool "Enable GD32503V"
  10. select GD32503V
  11. select RT_USING_COMPONENTS_INIT
  12. select RT_USING_USER_MAIN
  13. default y
  14. endif
  15. endmenu
  16. menu "Onboard Peripheral Drivers"
  17. endmenu
  18. menu "On-chip Peripheral Drivers"
  19. config BSP_USING_GPIO
  20. bool "Enable GPIO"
  21. select RT_USING_PIN
  22. default y
  23. menuconfig BSP_USING_UART
  24. bool "Enable UART"
  25. default y
  26. select RT_USING_SERIAL
  27. if BSP_USING_UART
  28. config BSP_USING_UART0
  29. bool "Enable UART0"
  30. default n
  31. config BSP_UART0_RX_USING_DMA
  32. bool "Enable UART0 RX DMA"
  33. depends on BSP_USING_UART0
  34. select RT_SERIAL_USING_DMA
  35. default n
  36. config BSP_USING_UART1
  37. bool "Enable UART1"
  38. default y
  39. config BSP_UART1_RX_USING_DMA
  40. bool "Enable UART1 RX DMA"
  41. depends on BSP_USING_UART1
  42. select RT_SERIAL_USING_DMA
  43. default n
  44. config BSP_USING_UART2
  45. bool "Enable UART2"
  46. default n
  47. config BSP_UART2_RX_USING_DMA
  48. bool "Enable UART2 RX DMA"
  49. depends on BSP_USING_UART2
  50. select RT_SERIAL_USING_DMA
  51. default n
  52. config BSP_USING_UART3
  53. bool "Enable UART3"
  54. default n
  55. config BSP_UART3_RX_USING_DMA
  56. bool "Enable UART3 RX DMA"
  57. depends on BSP_USING_UART3
  58. select RT_SERIAL_USING_DMA
  59. default n
  60. config BSP_USING_UART4
  61. bool "Enable UART4"
  62. default n
  63. config BSP_UART4_RX_USING_DMA
  64. bool "Enable UART4 RX DMA"
  65. depends on BSP_USING_UART4
  66. select RT_SERIAL_USING_DMA
  67. default n
  68. config BSP_USING_UART5
  69. bool "Enable UART5"
  70. default n
  71. config BSP_UART5_RX_USING_DMA
  72. bool "Enable UART5 RX DMA"
  73. depends on BSP_USING_UART5
  74. select RT_SERIAL_USING_DMA
  75. default n
  76. endif
  77. menuconfig BSP_USING_SPI
  78. bool "Enable SPI BUS"
  79. default n
  80. select RT_USING_SPI
  81. if BSP_USING_SPI
  82. config BSP_USING_SPI1
  83. bool "Enable SPI1 BUS"
  84. default n
  85. config BSP_SPI1_TX_USING_DMA
  86. bool "Enable SPI1 TX DMA"
  87. depends on BSP_USING_SPI1
  88. default n
  89. config BSP_SPI1_RX_USING_DMA
  90. bool "Enable SPI1 RX DMA"
  91. depends on BSP_USING_SPI1
  92. select BSP_SPI1_TX_USING_DMA
  93. default n
  94. endif
  95. menuconfig BSP_USING_ADC
  96. bool "Enable ADC"
  97. default n
  98. select RT_USING_ADC
  99. if BSP_USING_ADC
  100. config BSP_USING_ADC0
  101. bool "Enable ADC0"
  102. default n
  103. config BSP_USING_ADC1
  104. bool "Enable ADC1"
  105. default n
  106. config BSP_USING_ADC2
  107. bool "Enable ADC2"
  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. config BSP_USING_ALARM
  131. bool "Enable RTC alarm"
  132. select RT_USING_ALARM
  133. default n
  134. if BSP_USING_ALARM
  135. choice
  136. prompt "Select rtc alarm device"
  137. default BSP_USING_ALARM0
  138. config BSP_USING_ALARM0
  139. bool "Enable RTC Alarm0"
  140. config BSP_USING_ALARM1
  141. bool "Enable RTC Alarm1"
  142. endchoice
  143. endif
  144. endif
  145. config BSP_USING_WDT
  146. bool "Enable Watchdog Timer"
  147. select RT_USING_WDT
  148. default n
  149. config BSP_USING_SDIO
  150. bool "Enable SDIO"
  151. select RT_USING_SDIO
  152. select RT_USING_DFS
  153. default n
  154. config BSP_USING_USBD
  155. bool "Enable USB Device"
  156. select RT_USING_USB_DEVICE
  157. default n
  158. menuconfig BSP_USING_USBH
  159. bool "Enable USB Host"
  160. select RT_USING_USB_HOST
  161. default n
  162. if BSP_USING_USBH
  163. menuconfig RT_USBH_MSTORAGE
  164. bool "Enable Udisk Drivers"
  165. default n
  166. if RT_USBH_MSTORAGE
  167. config UDISK_MOUNTPOINT
  168. string "Udisk mount dir"
  169. default "/"
  170. endif
  171. endif
  172. source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
  173. endmenu
  174. menu "Board extended module Drivers"
  175. endmenu
  176. endmenu