1menu "Hardware Drivers Config" 2 3config SOC_SERIES_GD32F10x 4 bool 5 default y 6 7config SOC_GD32107V 8 bool 9 select SOC_SERIES_GD32F10x 10 select RT_USING_COMPONENTS_INIT 11 select RT_USING_USER_MAIN 12 default y 13 14menu "Onboard Peripheral Drivers" 15 16endmenu 17 18menu "On-chip Peripheral Drivers" 19 20 config BSP_USING_GPIO 21 bool "Enable GPIO" 22 select RT_USING_PIN 23 default y 24 25 menuconfig BSP_USING_UART 26 bool "Enable UART" 27 default y 28 select RT_USING_SERIAL 29 if BSP_USING_UART 30 config BSP_USING_UART0 31 bool "Enable UART0" 32 default n 33 34 config BSP_UART0_RX_USING_DMA 35 bool "Enable UART0 RX DMA" 36 depends on BSP_USING_UART0 37 select RT_SERIAL_USING_DMA 38 default n 39 40 config BSP_USING_UART1 41 bool "Enable UART1" 42 default y 43 44 config BSP_UART1_RX_USING_DMA 45 bool "Enable UART1 RX DMA" 46 depends on BSP_USING_UART1 47 select RT_SERIAL_USING_DMA 48 default n 49 50 config BSP_USING_UART2 51 bool "Enable UART2" 52 default n 53 54 config BSP_UART2_RX_USING_DMA 55 bool "Enable UART2 RX DMA" 56 depends on BSP_USING_UART2 57 select RT_SERIAL_USING_DMA 58 default n 59 60 config BSP_USING_UART3 61 bool "Enable UART3" 62 default n 63 64 config BSP_UART3_RX_USING_DMA 65 bool "Enable UART3 RX DMA" 66 depends on BSP_USING_UART3 67 select RT_SERIAL_USING_DMA 68 default n 69 70 config BSP_USING_UART4 71 bool "Enable UART4" 72 default n 73 74 config BSP_UART4_RX_USING_DMA 75 bool "Enable UART4 RX DMA" 76 depends on BSP_USING_UART4 77 select RT_SERIAL_USING_DMA 78 default n 79 endif 80 81 menuconfig BSP_USING_SPI 82 bool "Enable SPI BUS" 83 default n 84 select RT_USING_SPI 85 if BSP_USING_SPI 86 config BSP_USING_SPI1 87 bool "Enable SPI1 BUS" 88 default n 89 90 config BSP_SPI1_TX_USING_DMA 91 bool "Enable SPI1 TX DMA" 92 depends on BSP_USING_SPI1 93 default n 94 95 config BSP_SPI1_RX_USING_DMA 96 bool "Enable SPI1 RX DMA" 97 depends on BSP_USING_SPI1 98 select BSP_SPI1_TX_USING_DMA 99 default n 100 endif 101 102 menuconfig BSP_USING_I2C1 103 bool "Enable I2C1 BUS (software simulation)" 104 default n 105 select RT_USING_I2C 106 select RT_USING_I2C_BITOPS 107 select RT_USING_PIN 108 if BSP_USING_I2C1 109 config BSP_I2C1_SCL_PIN 110 int "i2c1 scl pin number" 111 range 1 216 112 default 24 113 config BSP_I2C1_SDA_PIN 114 int "I2C1 sda pin number" 115 range 1 216 116 default 25 117 endif 118 119 menuconfig BSP_USING_ADC 120 bool "Enable ADC" 121 default n 122 select RT_USING_ADC 123 if BSP_USING_ADC 124 config BSP_USING_ADC0 125 bool "Enable ADC0" 126 default n 127 128 config BSP_USING_ADC1 129 bool "Enable ADC1" 130 default n 131 endif 132 133 menuconfig BSP_USING_TIM 134 bool "Enable timer" 135 default n 136 select RT_USING_HWTIMER 137 if BSP_USING_TIM 138 config BSP_USING_TIM10 139 bool "Enable TIM10" 140 default n 141 142 config BSP_USING_TIM11 143 bool "Enable TIM11" 144 default n 145 146 config BSP_USING_TIM12 147 bool "Enable TIM13" 148 default n 149 endif 150 151 menuconfig BSP_USING_ONCHIP_RTC 152 bool "Enable RTC" 153 select RT_USING_RTC 154 default n 155 if BSP_USING_ONCHIP_RTC 156 choice 157 prompt "Select clock source" 158 default BSP_RTC_USING_LSE 159 160 config BSP_RTC_USING_LSE 161 bool "RTC USING LSE" 162 163 config BSP_RTC_USING_LSI 164 bool "RTC USING LSI" 165 endchoice 166 endif 167 168 config BSP_USING_WDT 169 bool "Enable Watchdog Timer" 170 select RT_USING_WDT 171 default n 172 173 config BSP_USING_SDIO 174 bool "Enable SDIO" 175 select RT_USING_SDIO 176 select RT_USING_DFS 177 default n 178 179 config BSP_USING_USBD 180 bool "Enable USB Device" 181 select RT_USING_USB_DEVICE 182 default n 183 184 menuconfig BSP_USING_USBH 185 bool "Enable USB Host" 186 select RT_USING_USB_HOST 187 default n 188 if BSP_USING_USBH 189 menuconfig RT_USBH_MSTORAGE 190 bool "Enable Udisk Drivers" 191 default n 192 if RT_USBH_MSTORAGE 193 config UDISK_MOUNTPOINT 194 string "Udisk mount dir" 195 default "/" 196 endif 197 endif 198 199 source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig" 200 201endmenu 202 203menu "Board extended module Drivers" 204 205endmenu 206 207endmenu 208