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