Skip to content

Commit 000216d

Browse files
committed
polish Kconfig
1 parent 99e92db commit 000216d

File tree

3 files changed

+18
-49
lines changed

3 files changed

+18
-49
lines changed

bsp/gd32/arm/gd32e230-lckfb/.config

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,10 @@ CONFIG_RT_USING_DEVICE_IPC=y
217217
CONFIG_RT_UNAMED_PIPE_NUMBER=64
218218
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
219219
CONFIG_RT_USING_SERIAL=y
220-
# CONFIG_RT_USING_SERIAL_V1 is not set
221-
CONFIG_RT_USING_SERIAL_V2=y
222-
# CONFIG_RT_SERIAL_BUF_STRATEGY_DROP is not set
223-
CONFIG_RT_SERIAL_BUF_STRATEGY_OVERWRITE=y
224-
CONFIG_RT_SERIAL_USING_DMA=y
220+
CONFIG_RT_USING_SERIAL_V1=y
221+
# CONFIG_RT_USING_SERIAL_V2 is not set
222+
# CONFIG_RT_SERIAL_USING_DMA is not set
223+
CONFIG_RT_SERIAL_RB_BUFSZ=64
225224
# CONFIG_RT_USING_SERIAL_BYPASS is not set
226225
# CONFIG_RT_USING_CAN is not set
227226
# CONFIG_RT_USING_CPUTIME is not set
@@ -1385,12 +1384,7 @@ CONFIG_SOC_SERIES_GD32E23x=y
13851384
#
13861385
# Hardware Drivers Config
13871386
#
1388-
1389-
#
1390-
# SOC Series
1391-
#
13921387
CONFIG_SOC_GD32E230C8T6=y
1393-
# end of SOC Series
13941388

13951389
#
13961390
# Onboard Peripheral Drivers
@@ -1405,10 +1399,8 @@ CONFIG_BSP_LED_PIN=45
14051399
CONFIG_BSP_USING_GPIO=y
14061400
CONFIG_BSP_USING_UART=y
14071401
CONFIG_BSP_USING_UART0=y
1408-
CONFIG_BSP_UART0_RX_USING_DMA=y
1409-
CONFIG_BSP_UART0_RX_BUFSIZE=64
1410-
CONFIG_BSP_UART0_TX_BUFSIZE=0
1411-
CONFIG_BSP_UART0_DMA_PING_BUFSIZE=32
1402+
# CONFIG_BSP_UART0_RX_USING_DMA is not set
1403+
# CONFIG_BSP_UART0_TX_USING_DMA is not set
14121404
# CONFIG_BSP_USING_UART1 is not set
14131405
# CONFIG_BSP_USING_SPI is not set
14141406

bsp/gd32/arm/gd32e230-lckfb/board/Kconfig

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,16 @@
22

33
menu "Hardware Drivers Config"
44

5-
menu "SOC Series"
6-
choice
7-
prompt "Select GD32 SoC Series"
8-
default SOC_SERIES_GD32E23x
9-
10-
config SOC_SERIES_GD32E23x
11-
bool "GD32E23x Series"
12-
13-
endchoice
14-
15-
if SOC_SERIES_GD32E23x
16-
choice
17-
prompt "Select GD32 SoC"
18-
default SOC_GD32E230C8T6
19-
20-
config SOC_GD32E230C8T6
21-
bool "GD32E230C8T6"
22-
select RT_USING_COMPONENTS_INIT
23-
select RT_USING_USER_MAIN
24-
25-
endchoice
26-
endif
27-
endmenu
28-
5+
config SOC_SERIES_GD32E23x
6+
bool
7+
default y
8+
9+
config SOC_GD32E230C8T6
10+
bool
11+
select SOC_SERIES_GD32E23x
12+
select RT_USING_COMPONENTS_INIT
13+
select RT_USING_USER_MAIN
14+
default y
2915

3016
menu "Onboard Peripheral Drivers"
3117
menuconfig BSP_USING_LED

bsp/gd32/arm/gd32e230-lckfb/rtconfig.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@
126126
#define RT_USING_DEVICE_IPC
127127
#define RT_UNAMED_PIPE_NUMBER 64
128128
#define RT_USING_SERIAL
129-
#define RT_USING_SERIAL_V2
130-
#define RT_SERIAL_BUF_STRATEGY_OVERWRITE
131-
#define RT_SERIAL_USING_DMA
129+
#define RT_USING_SERIAL_V1
130+
#define RT_SERIAL_RB_BUFSZ 64
132131
#define RT_USING_PIN
133132
/* end of Device Drivers */
134133

@@ -387,10 +386,7 @@
387386

388387
/* Hardware Drivers Config */
389388

390-
/* SOC Series */
391-
392389
#define SOC_GD32E230C8T6
393-
/* end of SOC Series */
394390

395391
/* Onboard Peripheral Drivers */
396392

@@ -403,11 +399,6 @@
403399
#define BSP_USING_GPIO
404400
#define BSP_USING_UART
405401
#define BSP_USING_UART0
406-
#define BSP_UART0_RX_USING_DMA
407-
#define BSP_UART0_TX_USING_DMA
408-
#define BSP_UART0_RX_BUFSIZE 64
409-
#define BSP_UART0_TX_BUFSIZE 32
410-
#define BSP_UART0_DMA_PING_BUFSIZE 32
411402

412403
/* I2C Configuration */
413404

0 commit comments

Comments
 (0)