diff --git a/bsp/gd32/arm/gd32103c-eval/.config b/bsp/gd32/arm/gd32103c-eval/.config
index 5c11ef98df8..683660ae4ab 100644
--- a/bsp/gd32/arm/gd32103c-eval/.config
+++ b/bsp/gd32/arm/gd32103c-eval/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -631,6 +629,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -725,6 +726,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -887,6 +889,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -935,6 +943,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F10x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32103V=y
+CONFIG_SOC_GD32F103VC=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32103V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32103c-eval/board/Kconfig b/bsp/gd32/arm/gd32103c-eval/board/Kconfig
index 2e98cae740f..46de28e3606 100644
--- a/bsp/gd32/arm/gd32103c-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32103c-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F10x
bool
default y
-config SOC_GD32103V
+config SOC_GD32F103VC
bool
select SOC_SERIES_GD32F10x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32103c-eval/project.ewp b/bsp/gd32/arm/gd32103c-eval/project.ewp
index 2218268e137..1167c385eb3 100644
--- a/bsp/gd32/arm/gd32103c-eval/project.ewp
+++ b/bsp/gd32/arm/gd32103c-eval/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F10X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\.
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\gd32_drivers
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F10X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\.
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\gd32_drivers
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\IAR\startup_gd32f10x_hd.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2056,13 +2057,13 @@
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2122,17 +2123,20 @@
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\IAR\startup_gd32f10x_hd.s
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32103c-eval/project.uvoptx b/bsp/gd32/arm/gd32103c-eval/project.uvoptx
index 54472cf0d44..bb6f1ddba66 100644
--- a/bsp/gd32/arm/gd32103c-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32103c-eval/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -169,798 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_hd.s
- startup_gd32f10x_hd.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- system_gd32f10x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- gd32f10x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- gd32f10x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- gd32f10x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
- gd32f10x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
- gd32f10x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32103c-eval/project.uvprojx b/bsp/gd32/arm/gd32103c-eval/project.uvprojx
index 1d9741e48f6..3890fcd53f1 100644
--- a/bsp/gd32/arm/gd32103c-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32103c-eval/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F103VC
GigaDevice
- GigaDevice.GD32F10x_DFP.2.0.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F10x_DFP.2.0.1
+ http://www.keil.com/pack/
IRAM(0x20000000,0x0000C000) IROM(0x08000000,0x00040000) CPUTYPE("Cortex-M3") CLOCK(8000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F10x_HD -FS08000000 -FL040000 -FP0($$Device:GD32F103VC$Flash\GD32F10x_HD.FLM))
0
$$Device:GD32F103VC$Device\Include\gd32f10x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F103VC$SVD\GD32F10x\GD32F10x_HD.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -114,7 +111,7 @@
DCM.DLL
-pCM3
SARMCM3.DLL
-
+
TCM.DLL
-pCM3
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M3"
-
+
0
0
0
@@ -186,7 +183,6 @@
0
0
0
- 0
0
0
8
@@ -310,7 +306,7 @@
0x0
-
+
1
@@ -337,10 +333,10 @@
0
0
-
- USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, GD32F10X_HD, RT_USING_LIBC, __RTTHREAD__, RT_USING_ARMLIBC
-
- ..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include;board;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;packages\gd32-arm-cmsis-latest\GD32F10x;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;applications;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;..\..\..\..\include;.;..\libraries\gd32_drivers
+
+ __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, USE_STDPERIPH_DRIVER, RT_USING_ARMLIBC, GD32F10X_HD, RT_USING_LIBC
+
+ ..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-cmsis-latest\GD32F10x;.;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\include;..\..\..\..\components\net\utest;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\libc\posix\ipc;board;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\smp_call;..\..\..\..\libcpu\arm\cortex-m3;applications;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\eventfd
@@ -355,10 +351,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +366,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +395,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +454,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +685,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1141,20 +709,26 @@
1
..\..\..\..\components\finsh\msh_parse.c
+
+
cmd.c
1
..\..\..\..\components\finsh\cmd.c
+
+
- msh.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\shell.c
+
+
- shell.c
+ msh.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh.c
@@ -1166,836 +740,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2007,29 +1024,37 @@
klibc
- rt_vsnprintf_tiny.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstring.c
+
+
- kerrno.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
- kstring.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kerrno.c
+
+
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
+
+
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
@@ -2041,21 +1066,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1104,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_hd.s
+
+
system_gd32f10x.c
1
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
+
+
gd32f10x_exti.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+
+
gd32f10x_gpio.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+
+
gd32f10x_misc.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+
+
gd32f10x_rcu.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
gd32f10x_usart.c
1
@@ -2103,34 +1148,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32103c-eval/rtconfig.h b/bsp/gd32/arm/gd32103c-eval/rtconfig.h
index a41ca8e7a02..6f274cf9a2a 100644
--- a/bsp/gd32/arm/gd32103c-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32103c-eval/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32103V
+#define SOC_GD32F103VC
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32105c-eval/.config b/bsp/gd32/arm/gd32105c-eval/.config
index ebd66c0f6d6..c466b309a61 100644
--- a/bsp/gd32/arm/gd32105c-eval/.config
+++ b/bsp/gd32/arm/gd32105c-eval/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -631,6 +629,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -725,6 +726,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -887,6 +889,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -935,6 +943,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F10x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32105V=y
+CONFIG_SOC_GD32F105VC=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32105V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32105c-eval/board/Kconfig b/bsp/gd32/arm/gd32105c-eval/board/Kconfig
index 85d4a8c223f..c2c937003e0 100644
--- a/bsp/gd32/arm/gd32105c-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32105c-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F10x
bool
default y
-config SOC_GD32105V
+config SOC_GD32F105VC
bool
select SOC_SERIES_GD32F10x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32105c-eval/project.ewp b/bsp/gd32/arm/gd32105c-eval/project.ewp
index cbee7433c15..dbbfa75c87a 100644
--- a/bsp/gd32/arm/gd32105c-eval/project.ewp
+++ b/bsp/gd32/arm/gd32105c-eval/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,26 +303,28 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\applications
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,26 +1277,28 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\applications
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2053,16 +2054,16 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
@@ -2116,23 +2117,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32105c-eval/project.uvoptx b/bsp/gd32/arm/gd32105c-eval/project.uvoptx
index 0014eeff31c..956bfbef1eb 100644
--- a/bsp/gd32/arm/gd32105c-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32105c-eval/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -174,798 +174,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
- startup_gd32f10x_cl.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- system_gd32f10x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- gd32f10x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- gd32f10x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- gd32f10x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
- gd32f10x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
- gd32f10x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32105c-eval/project.uvprojx b/bsp/gd32/arm/gd32105c-eval/project.uvprojx
index 18cbd38760c..cda09691f8b 100644
--- a/bsp/gd32/arm/gd32105c-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32105c-eval/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F105VC
GigaDevice
- GigaDevice.GD32F10x_DFP.2.0.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F10x_DFP.2.0.2
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x00018000) IROM(0x08000000,0x00040000) CPUTYPE("Cortex-M3") CLOCK(25000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F10x_CL -FS08000000 -FL040000 -FP0($$Device:GD32F105VC$Flash\GD32F10x_CL.FLM))
0
$$Device:GD32F105VC$Device\Include\gd32f10x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F105VC$SVD\GD32F10x\GD32F10x_CL.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -114,7 +111,7 @@
DCM.DLL
-pCM3
SARMCM3.DLL
-
+
TCM.DLL
-pCM3
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M3"
-
+
0
0
0
@@ -186,7 +183,6 @@
0
0
0
- 0
0
0
8
@@ -310,7 +306,7 @@
0x0
-
+
1
@@ -337,10 +333,10 @@
0
0
-
- GD32F10X_CL, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, __STDC_LIMIT_MACROS, RT_USING_LIBC, RT_USING_ARMLIBC
-
- ..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\compilers\common\include;board;..\..\..\..\components\drivers\include;.;applications;..\..\..\..\components\drivers\include;..\..\..\..\include;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-cmsis-latest\GD32F10x;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\smp_call;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
+
+ RT_USING_ARMLIBC, __RTTHREAD__, __STDC_LIMIT_MACROS, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER, GD32F10X_CL
+
+ ..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\..\..\..\components\net\utest;.;..\..\..\..\libcpu\arm\common;packages\gd32-arm-cmsis-latest\GD32F10x;..\..\..\..\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;applications;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\phy;..\..\..\..\components\finsh;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\posix\ipc;..\libraries\gd32_drivers;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\poll
@@ -355,10 +351,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +366,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +395,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +454,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +685,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1137,24 +705,30 @@
Finsh
- shell.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh_parse.c
+
+
- msh.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
- msh_parse.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\shell.c
+
+
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
@@ -1166,836 +740,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2006,32 +1023,40 @@
klibc
-
- kerrno.c
- 1
- ..\..\..\..\src\klibc\kerrno.c
-
-
- kstdio.c
- 1
- ..\..\..\..\src\klibc\kstdio.c
-
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
+
+
kstring.c
1
..\..\..\..\src\klibc\kstring.c
+
+
rt_vsnprintf_tiny.c
1
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
+ kstdio.c
+ 1
+ ..\..\..\..\src\klibc\kstdio.c
+
+
+
+
+ kerrno.c
+ 1
+ ..\..\..\..\src\klibc\kerrno.c
+
+
libcpu
@@ -2041,21 +1066,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1104,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
+
+
system_gd32f10x.c
1
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
+
+
gd32f10x_exti.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+
+
gd32f10x_gpio.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+
+
gd32f10x_misc.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+
+
gd32f10x_rcu.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
gd32f10x_usart.c
1
@@ -2103,34 +1148,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32105c-eval/rtconfig.h b/bsp/gd32/arm/gd32105c-eval/rtconfig.h
index 60c25d5d94c..a61b1305ce7 100644
--- a/bsp/gd32/arm/gd32105c-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32105c-eval/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32105V
+#define SOC_GD32F105VC
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32105r-start/.config b/bsp/gd32/arm/gd32105r-start/.config
index 30ef78ee279..51ad9f0d0fe 100644
--- a/bsp/gd32/arm/gd32105r-start/.config
+++ b/bsp/gd32/arm/gd32105r-start/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -631,6 +629,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -725,6 +726,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -887,6 +889,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -935,6 +943,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F10x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32105R=y
+CONFIG_SOC_GD32F105RC=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32105R=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32105r-start/board/Kconfig b/bsp/gd32/arm/gd32105r-start/board/Kconfig
index 347dfd6c49e..6147acac5d4 100644
--- a/bsp/gd32/arm/gd32105r-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32105r-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F10x
bool
default y
-config SOC_GD32105R
+config SOC_GD32F105RC
bool
select SOC_SERIES_GD32F10x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_ADC
diff --git a/bsp/gd32/arm/gd32105r-start/project.ewp b/bsp/gd32/arm/gd32105r-start/project.ewp
index 50b8bae43c4..8c3c247a1d6 100644
--- a/bsp/gd32/arm/gd32105r-start/project.ewp
+++ b/bsp/gd32/arm/gd32105r-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\.
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\.
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\.
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\.
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2056,13 +2057,13 @@
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
@@ -2116,23 +2117,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32105r-start/rtconfig.h b/bsp/gd32/arm/gd32105r-start/rtconfig.h
index e16f6e4f57d..001df2a1e6e 100644
--- a/bsp/gd32/arm/gd32105r-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32105r-start/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32105R
+#define SOC_GD32F105RC
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32107c-eval/.config b/bsp/gd32/arm/gd32107c-eval/.config
index 65e6f85b8a3..85fea02a72f 100644
--- a/bsp/gd32/arm/gd32107c-eval/.config
+++ b/bsp/gd32/arm/gd32107c-eval/.config
@@ -353,8 +353,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -637,6 +635,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -731,6 +732,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -893,6 +895,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -941,6 +949,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1412,7 +1421,7 @@ CONFIG_SOC_SERIES_GD32F10x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32107V=y
+CONFIG_SOC_GD32F107VC=y
#
# Onboard Peripheral Drivers
@@ -1423,12 +1432,15 @@ CONFIG_SOC_GD32107V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
CONFIG_BSP_USING_SPI=y
CONFIG_BSP_USING_SPI1=y
# CONFIG_BSP_SPI1_TX_USING_DMA is not set
diff --git a/bsp/gd32/arm/gd32107c-eval/board/Kconfig b/bsp/gd32/arm/gd32107c-eval/board/Kconfig
index 638e44e45c0..e3538ec93d7 100644
--- a/bsp/gd32/arm/gd32107c-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32107c-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F10x
bool
default y
-config SOC_GD32107V
+config SOC_GD32F107VC
bool
select SOC_SERIES_GD32F10x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32107c-eval/project.ewp b/bsp/gd32/arm/gd32107c-eval/project.ewp
index 887f04c4adc..bf99c9a6f43 100644
--- a/bsp/gd32/arm/gd32107c-eval/project.ewp
+++ b/bsp/gd32/arm/gd32107c-eval/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,28 +303,30 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
$PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\spi
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\applications
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\drivers\spi
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\net\utest
CCStdIncCheck
@@ -1138,13 +1140,13 @@
CCDefines
NDEBUG
+ GD32F10X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F10X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1276,28 +1278,30 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include
$PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\spi
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\applications
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\drivers\spi
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\net\utest
CCStdIncCheck
@@ -2048,9 +2052,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2064,7 +2065,7 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
@@ -2073,7 +2074,7 @@
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2127,23 +2128,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2160,30 +2164,36 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\IAR\startup_gd32f10x_cl.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
- $PROJ_DIR$\..\libraries\GD32F10x_Firmware_Library\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32107c-eval/project.uvoptx b/bsp/gd32/arm/gd32107c-eval/project.uvoptx
index 2c5471dd4fa..5ec438907ec 100644
--- a/bsp/gd32/arm/gd32107c-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32107c-eval/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -169,846 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
- 3
- 22
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\spi\dev_spi.c
- dev_spi.c
- 0
- 0
-
-
- 3
- 23
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\spi\dev_spi_core.c
- dev_spi_core.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 24
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 25
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 26
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_spi.c
- drv_spi.c
- 0
- 0
-
-
- 4
- 27
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 52
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 54
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 55
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 56
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 57
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
- startup_gd32f10x_cl.s
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
- system_gd32f10x.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
- gd32f10x_exti.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
- gd32f10x_gpio.c
- 0
- 0
-
-
- 9
- 61
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
- gd32f10x_misc.c
- 0
- 0
-
-
- 9
- 62
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
- gd32f10x_rcu.c
- 0
- 0
-
-
- 9
- 63
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
- gd32f10x_spi.c
- 0
- 0
-
-
- 9
- 64
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
- gd32f10x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32107c-eval/project.uvprojx b/bsp/gd32/arm/gd32107c-eval/project.uvprojx
index ba4c065667d..5e6953b90f3 100644
--- a/bsp/gd32/arm/gd32107c-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32107c-eval/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F107VC
GigaDevice
- GigaDevice.GD32F10x_DFP.2.0.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F10x_DFP.2.0.1
+ http://www.keil.com/pack/
IRAM(0x20000000,0x00018000) IROM(0x08000000,0x00040000) CPUTYPE("Cortex-M3") CLOCK(25000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F10x_CL -FS08000000 -FL040000 -FP0($$Device:GD32F107VC$Flash\GD32F10x_CL.FLM))
0
$$Device:GD32F107VC$Device\Include\gd32f10x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F107VC$SVD\GD32F10x\GD32F10x_CL.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -114,7 +111,7 @@
DCM.DLL
-pCM3
SARMCM3.DLL
-
+
TCM.DLL
-pCM3
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M3"
-
+
0
0
0
@@ -186,7 +183,6 @@
0
0
0
- 0
0
0
8
@@ -310,7 +306,7 @@
0x0
-
+
1
@@ -337,10 +333,10 @@
0
0
-
- __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, GD32F10X_CL, RT_USING_LIBC, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARMLIBC
-
- ..\..\..\..\components\libc\compilers\common\extension;.;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\finsh;..\..\..\..\components\libc\posix\io\epoll;packages\gd32-arm-cmsis-latest\GD32F10x;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;board;applications;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\spi;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;..\..\..\..\components\drivers\include;..\..\..\..\include;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\ipc
+
+ __STDC_LIMIT_MACROS, GD32F10X_CL, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER, RT_USING_LIBC, __RTTHREAD__, RT_USING_ARMLIBC
+
+ ..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;.;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\libraries\gd32_drivers;board;..\..\..\..\components\net\utest;..\..\..\..\components\libc\compilers\common\include;..\libraries\gd32_drivers\config;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\spi;..\..\..\..\components\libc\posix\io\epoll;applications;..\..\..\..\include;..\..\..\..\components\finsh;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\phy;packages\gd32-arm-cmsis-latest\GD32F10x;..\..\..\..\components\libc\posix\io\eventfd;packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Include
@@ -355,10 +351,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +366,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +395,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,780 +454,260 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_spi.c
1
..\..\..\..\components\drivers\spi\dev_spi.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_spi_core.c
1
..\..\..\..\components\drivers\spi\dev_spi_core.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1233,16 +723,22 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_spi.c
1
..\libraries\gd32_drivers\drv_spi.c
+
+
drv_usart.c
1
@@ -1258,16 +754,22 @@
1
..\..\..\..\components\finsh\shell.c
+
+
- cmd.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_parse.c
+
+
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
msh.c
1
@@ -1283,836 +785,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2123,32 +1068,40 @@
klibc
-
- kstdio.c
- 1
- ..\..\..\..\src\klibc\kstdio.c
-
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
-
- kstring.c
- 1
- ..\..\..\..\src\klibc\kstring.c
-
+
+
rt_vsnprintf_tiny.c
1
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
kerrno.c
1
..\..\..\..\src\klibc\kerrno.c
+
+
+ kstdio.c
+ 1
+ ..\..\..\..\src\klibc\kstdio.c
+
+
+
+
+ kstring.c
+ 1
+ ..\..\..\..\src\klibc\kstring.c
+
+
libcpu
@@ -2158,21 +1111,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
cpuport.c
1
@@ -2188,36 +1149,50 @@
2
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
+
+
system_gd32f10x.c
1
packages\gd32-arm-cmsis-latest\GD32F10x\GD\GD32F10x\Source\system_gd32f10x.c
+
+
gd32f10x_exti.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+
+
gd32f10x_gpio.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+
+
gd32f10x_misc.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+
+
gd32f10x_rcu.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
gd32f10x_spi.c
1
packages\gd32-arm-series-latest\GD32F10x\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
+
+
gd32f10x_usart.c
1
@@ -2225,34 +1200,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32107c-eval/rtconfig.h b/bsp/gd32/arm/gd32107c-eval/rtconfig.h
index 56a0f35cfe1..4c97feb96e1 100644
--- a/bsp/gd32/arm/gd32107c-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32107c-eval/rtconfig.h
@@ -322,6 +322,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -406,7 +410,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32107V
+#define SOC_GD32F107VC
/* Onboard Peripheral Drivers */
@@ -414,7 +418,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_SPI
#define BSP_USING_SPI1
#define BSP_USING_GD_DBG
diff --git a/bsp/gd32/arm/gd32205r-start/.config b/bsp/gd32/arm/gd32205r-start/.config
index b15b043a6df..3c00ad19e63 100644
--- a/bsp/gd32/arm/gd32205r-start/.config
+++ b/bsp/gd32/arm/gd32205r-start/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -631,6 +629,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -725,6 +726,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -887,6 +889,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -935,6 +943,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F20x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32205R=y
+CONFIG_SOC_GD32F205RC=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32205R=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32205r-start/board/Kconfig b/bsp/gd32/arm/gd32205r-start/board/Kconfig
index 79a13026102..895e03a7239 100644
--- a/bsp/gd32/arm/gd32205r-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32205r-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F20x
bool
default y
-config SOC_GD32205R
+config SOC_GD32F205RC
bool
select SOC_SERIES_GD32F20x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32205r-start/project.ewp b/bsp/gd32/arm/gd32205r-start/project.ewp
index 7fa8891c799..f5d5cb1975e 100644
--- a/bsp/gd32/arm/gd32205r-start/project.ewp
+++ b/bsp/gd32/arm/gd32205r-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F20X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F20X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Include
- $PROJ_DIR$\.
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F20X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F20X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Include
- $PROJ_DIR$\.
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Source\IAR\startup_gd32f20x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2052,9 +2053,6 @@
Finsh
-
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
-
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
@@ -2064,6 +2062,9 @@
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+
Kernel
@@ -2116,23 +2117,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\IAR\startup_gd32f20x_cl.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Source\system_gd32f20x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32205r-start/project.uvoptx b/bsp/gd32/arm/gd32205r-start/project.uvoptx
index 9224a92b1d2..e96a1012d77 100644
--- a/bsp/gd32/arm/gd32205r-start/project.uvoptx
+++ b/bsp/gd32/arm/gd32205r-start/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -169,798 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\ARM\startup_gd32f20x_cl.s
- startup_gd32f20x_cl.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
- system_gd32f20x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
- gd32f20x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
- gd32f20x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
- gd32f20x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
- gd32f20x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
- gd32f20x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32205r-start/project.uvprojx b/bsp/gd32/arm/gd32205r-start/project.uvprojx
index e1f456d16da..ad720bfbe88 100644
--- a/bsp/gd32/arm/gd32205r-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32205r-start/project.uvprojx
@@ -1,46 +1,42 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
0
GD32F205RC
GigaDevice
- GigaDevice.GD32F20x_DFP.2.2.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F20x_DFP.2.2.0
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x020000) IROM(0x08000000,0x040000) CPUTYPE("Cortex-M3") CLOCK(25000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F20x_CL -FS08000000 -FL040000 -FP0($$Device:GD32F205RC$Flash\GD32F20x_CL.FLM))
0
$$Device:GD32F205RC$Device\Include\gd32f20x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F205RC$SVD\GD32F20x_CL.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +58,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +68,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +79,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +100,8 @@
0
0
3
-
-
+
+
1
@@ -114,7 +110,7 @@
DCM.DLL
-pCM3
SARMCM3.DLL
-
+
TCM.DLL
-pCM3
@@ -138,11 +134,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +171,7 @@
0
0
"Cortex-M3"
-
+
0
0
0
@@ -186,7 +182,6 @@
0
0
0
- 0
0
0
8
@@ -310,7 +305,7 @@
0x0
-
+
1
@@ -337,10 +332,10 @@
0
0
-
- USE_STDPERIPH_DRIVER, GD32F20X_CL, __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, RT_USING_ARMLIBC, RT_USING_LIBC
-
- ..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\phy;board;..\..\..\..\components\libc\posix\io\epoll;packages\gd32-arm-cmsis-latest\GD32F20x;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include;.;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\libc\posix\ipc;applications;..\libraries\gd32_drivers;..\..\..\..\components\finsh;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;..\..\..\..\include
+
+ RT_USING_LIBC, RT_USING_ARMLIBC, GD32F20X_CL, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER, __STDC_LIMIT_MACROS, __RTTHREAD__
+
+ ..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-cmsis-latest\GD32F20x;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\finsh;packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include;..\..\..\..\components\libc\posix\io\epoll;board;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include;applications;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\net\utest;..\libraries\gd32_drivers;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\include;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;.;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\include
@@ -355,10 +350,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +365,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +394,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +453,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +684,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1141,16 +708,22 @@
1
..\..\..\..\components\finsh\cmd.c
+
+
- msh_parse.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\shell.c
+
+
- shell.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh_parse.c
+
+
msh.c
1
@@ -1166,836 +739,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2007,29 +1023,37 @@
klibc
- kstring.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kerrno.c
+
+
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
+
+
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
- rt_vsnprintf_tiny.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
- kerrno.c
+ kstring.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstring.c
@@ -2041,21 +1065,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1103,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\ARM\startup_gd32f20x_cl.s
+
+
system_gd32f20x.c
1
packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
+
+
gd32f20x_exti.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
+
+
gd32f20x_gpio.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
+
+
gd32f20x_misc.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
+
+
gd32f20x_rcu.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
+
+
gd32f20x_usart.c
1
@@ -2103,34 +1147,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32205r-start/rtconfig.h b/bsp/gd32/arm/gd32205r-start/rtconfig.h
index 4cce310d25b..1dbaa1ecf1c 100644
--- a/bsp/gd32/arm/gd32205r-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32205r-start/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32205R
+#define SOC_GD32F205RC
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32207i-eval/.config b/bsp/gd32/arm/gd32207i-eval/.config
index 27851b8437e..df977995f01 100644
--- a/bsp/gd32/arm/gd32207i-eval/.config
+++ b/bsp/gd32/arm/gd32207i-eval/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -631,6 +629,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -725,6 +726,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -887,6 +889,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -935,6 +943,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F20x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32207I=y
+CONFIG_SOC_GD32F207IK=y
#
# Onboard Peripheral Drivers
@@ -1417,16 +1426,15 @@ CONFIG_SOC_GD32207I=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
+# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
-# CONFIG_BSP_USING_UART6 is not set
-# CONFIG_BSP_USING_UART7 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32207i-eval/board/Kconfig b/bsp/gd32/arm/gd32207i-eval/board/Kconfig
index 5cdf7230838..a0d39cf53c4 100644
--- a/bsp/gd32/arm/gd32207i-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32207i-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F20x
bool
default y
-config SOC_GD32207I
+config SOC_GD32F207IK
bool
select SOC_SERIES_GD32F20x
select RT_USING_COMPONENTS_INIT
@@ -25,87 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART6
- bool "Enable UART6"
- default n
-
- config BSP_UART6_RX_USING_DMA
- bool "Enable UART6 RX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART7
- bool "Enable UART7"
- default n
-
- config BSP_UART7_RX_USING_DMA
- bool "Enable UART7 RX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32207i-eval/project.ewp b/bsp/gd32/arm/gd32207i-eval/project.ewp
index d16181a6b9f..00bb48f37df 100644
--- a/bsp/gd32/arm/gd32207i-eval/project.ewp
+++ b/bsp/gd32/arm/gd32207i-eval/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F20X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F20X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS
$PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\.
- $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F20X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F20X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m3
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS
$PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\.
- $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Source\IAR\startup_gd32f20x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2053,16 +2054,16 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
@@ -2119,20 +2120,23 @@
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\IAR\startup_gd32f20x_cl.s
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\CMSIS\GD\GD32F20x\Source\system_gd32f20x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
- $PROJ_DIR$\..\libraries\GD32F20x_Firmware_Library\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32207i-eval/project.uvoptx b/bsp/gd32/arm/gd32207i-eval/project.uvoptx
index 80edae96b41..d6cce1a318c 100644
--- a/bsp/gd32/arm/gd32207i-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32207i-eval/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -169,798 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m3\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\ARM\startup_gd32f20x_cl.s
- startup_gd32f20x_cl.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
- system_gd32f20x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
- gd32f20x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
- gd32f20x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
- gd32f20x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
- gd32f20x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_usart.c
- gd32f20x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32207i-eval/project.uvprojx b/bsp/gd32/arm/gd32207i-eval/project.uvprojx
index 469a1d10986..a5fb60363f4 100644
--- a/bsp/gd32/arm/gd32207i-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32207i-eval/project.uvprojx
@@ -1,46 +1,42 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
0
GD32F207IK
GigaDevice
- GigaDevice.GD32F20x_DFP.2.2.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F20x_DFP.2.2.2
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x040000) IROM(0x08000000,0x0300000) CPUTYPE("Cortex-M3") CLOCK(12000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F20x_CL -FS08000000 -FL0300000 -FP0($$Device:GD32F207IK$Flash\GD32F20x_CL.FLM))
0
$$Device:GD32F207IK$Device\Include\gd32f20x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F207IK$SVD\GD32F20x_CL.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +58,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +68,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +79,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +100,8 @@
0
0
3
-
-
+
+
1
@@ -114,7 +110,7 @@
DCM.DLL
-pCM3
SARMCM3.DLL
-
+
TCM.DLL
-pCM3
@@ -138,11 +134,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +171,7 @@
0
0
"Cortex-M3"
-
+
0
0
0
@@ -186,7 +182,6 @@
0
0
0
- 0
0
0
8
@@ -310,7 +305,7 @@
0x0
-
+
1
@@ -337,10 +332,10 @@
0
0
-
- RT_USING_ARMLIBC, RT_USING_LIBC, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, GD32F20X_CL, __RTTHREAD__
-
- ..\..\..\..\components\libc\posix\io\epoll;board;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\phy;packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;..\..\..\..\components\drivers\smp_call;..\..\..\..\include;.;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-cmsis-latest\GD32F20x;..\..\..\..\libcpu\arm\cortex-m3;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;applications;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\libraries\gd32_drivers
+
+ RT_USING_ARMLIBC, GD32F20X_CL, __RTTHREAD__, __STDC_LIMIT_MACROS, USE_STDPERIPH_DRIVER, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
+
+ ..\..\..\..\components\drivers\include;..\..\..\..\components\net\utest;..\..\..\..\libcpu\arm\cortex-m3;packages\gd32-arm-cmsis-latest\GD32F20x;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;applications;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\epoll;.;..\libraries\gd32_drivers;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Include;..\..\..\..\components\drivers\phy;board;packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Include;..\..\..\..\include;..\..\..\..\libcpu\arm\common;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\posix\io\poll
@@ -355,10 +350,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +365,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +394,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +453,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +684,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1141,16 +708,22 @@
1
..\..\..\..\components\finsh\cmd.c
+
+
msh.c
1
..\..\..\..\components\finsh\msh.c
+
+
shell.c
1
..\..\..\..\components\finsh\shell.c
+
+
msh_parse.c
1
@@ -1166,836 +739,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2005,31 +1021,39 @@
klibc
+
+
+ rt_vsscanf.c
+ 1
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+
+
rt_vsnprintf_tiny.c
1
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
- kerrno.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
kstring.c
1
..\..\..\..\src\klibc\kstring.c
+
+
- rt_vsscanf.c
- 1
- ..\..\..\..\src\klibc\rt_vsscanf.c
-
-
- kstdio.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\kerrno.c
@@ -2041,21 +1065,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1103,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\ARM\startup_gd32f20x_cl.s
+
+
system_gd32f20x.c
1
packages\gd32-arm-cmsis-latest\GD32F20x\GD\GD32F20x\Source\system_gd32f20x.c
+
+
gd32f20x_exti.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_exti.c
+
+
gd32f20x_gpio.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_gpio.c
+
+
gd32f20x_misc.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_misc.c
+
+
gd32f20x_rcu.c
1
packages\gd32-arm-series-latest\GD32F20x\GD32F20x_standard_peripheral\Source\gd32f20x_rcu.c
+
+
gd32f20x_usart.c
1
@@ -2103,34 +1147,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32207i-eval/rtconfig.h b/bsp/gd32/arm/gd32207i-eval/rtconfig.h
index a9148f85ef8..39f54ab5cab 100644
--- a/bsp/gd32/arm/gd32207i-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32207i-eval/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32207I
+#define SOC_GD32F207IK
/* Onboard Peripheral Drivers */
@@ -413,8 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
-#define BSP_USING_UART1
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32303c-start/.config b/bsp/gd32/arm/gd32303c-start/.config
index 8464b0d6bc8..35d33c698e3 100644
--- a/bsp/gd32/arm/gd32303c-start/.config
+++ b/bsp/gd32/arm/gd32303c-start/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -632,6 +630,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -726,6 +727,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -888,6 +890,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -936,6 +944,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F30x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32303C=y
+CONFIG_SOC_GD32F303CG=y
#
# Onboard Peripheral Drivers
@@ -1417,8 +1426,15 @@ CONFIG_SOC_GD32303C=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
+# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
+# CONFIG_BSP_USING_UART2 is not set
+# CONFIG_BSP_USING_UART3 is not set
CONFIG_BSP_USING_GD_DBG=y
# end of On-chip Peripheral Drivers
diff --git a/bsp/gd32/arm/gd32303c-start/board/Kconfig b/bsp/gd32/arm/gd32303c-start/board/Kconfig
index 31c2637150c..65c4f89968d 100644
--- a/bsp/gd32/arm/gd32303c-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32303c-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F30x
bool
default y
-config SOC_GD32303C
+config SOC_GD32F303CG
bool
select SOC_SERIES_GD32F30x
select RT_USING_COMPONENTS_INIT
@@ -25,19 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
+ default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART2
+ bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART3
+ bool "Enable UART3"
+ default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
diff --git a/bsp/gd32/arm/gd32303c-start/project.ewp b/bsp/gd32/arm/gd32303c-start/project.ewp
index b330f3516cb..5ac547e390a 100644
--- a/bsp/gd32/arm/gd32303c-start/project.ewp
+++ b/bsp/gd32/arm/gd32303c-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F30X_XD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_XD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F30X_XD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_XD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\IAR\startup_gd32f30x_xd.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2056,10 +2057,10 @@
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2116,23 +2117,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\IAR\startup_gd32f30x_xd.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\system_gd32f30x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32303c-start/project.uvoptx b/bsp/gd32/arm/gd32303c-start/project.uvoptx
index 82d92e9134e..9906d20af8f 100644
--- a/bsp/gd32/arm/gd32303c-start/project.uvoptx
+++ b/bsp/gd32/arm/gd32303c-start/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -174,798 +174,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\ARM\startup_gd32f30x_xd.s
- startup_gd32f30x_xd.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- system_gd32f30x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- gd32f30x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- gd32f30x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- gd32f30x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
- gd32f30x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
- gd32f30x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32303c-start/project.uvprojx b/bsp/gd32/arm/gd32303c-start/project.uvprojx
index 6db0b58dd9b..e0935ae54a4 100644
--- a/bsp/gd32/arm/gd32303c-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32303c-start/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F303CG
GigaDevice
- GigaDevice.GD32F30x_DFP.2.2.1
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F30x_DFP.2.2.0
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x018000) IROM(0x08000000,0x0100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F30x_XD -FS08000000 -FL0100000 -FP0($$Device:GD32F303CG$Flash\GD32F30x_XD.FLM))
0
$$Device:GD32F303CG$Device\Include\gd32f30x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F303CG$SVD\GD32F30x_XD.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -185,8 +182,6 @@
0
2
0
- 0
- 0
0
0
8
@@ -310,7 +305,7 @@
0x0
-
+
1
@@ -337,10 +332,10 @@
0
0
-
- USE_STDPERIPH_DRIVER, GD32F30X_XD, RT_USING_ARMLIBC, __RTTHREAD__, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS
-
- ..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;..\..\..\..\include;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\libraries\gd32_drivers;board;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\drivers\include;.;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;applications;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
+
+ USE_STDPERIPH_DRIVER, __STDC_LIMIT_MACROS, __RTTHREAD__, GD32F30X_XD, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_ARMLIBC, RT_USING_LIBC
+
+ board;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\eventfd;.;..\..\..\..\include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\net\utest;..\..\..\..\components\libc\posix\io\epoll;applications;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\libcpu\arm\common;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh
@@ -353,12 +348,12 @@
0
0
0
- 4
+ 0
-
-
-
-
+
+
+
+
@@ -370,13 +365,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +394,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +453,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +684,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1137,24 +704,30 @@
Finsh
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
+
+
shell.c
1
..\..\..\..\components\finsh\shell.c
+
+
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -1166,836 +739,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2007,30 +1023,38 @@
klibc
- kstring.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
- kstdio.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\kerrno.c
+
+
+
+ kstring.c
+ 1
+ ..\..\..\..\src\klibc\kstring.c
+
+
+
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
+
+
rt_vsnprintf_tiny.c
1
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
- kerrno.c
- 1
- ..\..\..\..\src\klibc\kerrno.c
-
@@ -2041,21 +1065,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1103,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\ARM\startup_gd32f30x_xd.s
+
+
system_gd32f30x.c
1
packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
+
+
gd32f30x_exti.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+
+
gd32f30x_gpio.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+
+
gd32f30x_misc.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+
+
gd32f30x_rcu.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+
+
gd32f30x_usart.c
1
@@ -2103,24 +1147,19 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
diff --git a/bsp/gd32/arm/gd32303c-start/rtconfig.h b/bsp/gd32/arm/gd32303c-start/rtconfig.h
index 1491c062299..73f9fde9743 100644
--- a/bsp/gd32/arm/gd32303c-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32303c-start/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32303C
+#define SOC_GD32F303CG
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32303e-eval/.config b/bsp/gd32/arm/gd32303e-eval/.config
index 51d4ff90e52..f08a0f20df4 100644
--- a/bsp/gd32/arm/gd32303e-eval/.config
+++ b/bsp/gd32/arm/gd32303e-eval/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -632,6 +630,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -726,6 +727,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -888,6 +890,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -936,6 +944,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F30x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32303Z=y
+CONFIG_SOC_GD32F303ZE=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32303Z=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32303e-eval/board/Kconfig b/bsp/gd32/arm/gd32303e-eval/board/Kconfig
index c0c2bfe04ff..f46897be953 100644
--- a/bsp/gd32/arm/gd32303e-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32303e-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F30x
bool
default y
-config SOC_GD32303Z
+config SOC_GD32F303ZE
bool
select SOC_SERIES_GD32F30x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32303e-eval/project.ewp b/bsp/gd32/arm/gd32303e-eval/project.ewp
index 6de805663e9..0b797637cdb 100644
--- a/bsp/gd32/arm/gd32303e-eval/project.ewp
+++ b/bsp/gd32/arm/gd32303e-eval/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F30X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,26 +303,28 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
- $PROJ_DIR$\applications
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F30X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,26 +1277,28 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
- $PROJ_DIR$\applications
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\IAR\startup_gd32f30x_hd.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2053,13 +2054,13 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
@@ -2116,23 +2117,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\IAR\startup_gd32f30x_hd.s
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\system_gd32f30x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32303e-eval/project.uvprojx b/bsp/gd32/arm/gd32303e-eval/project.uvprojx
index b4251aed973..0c176030e0a 100644
--- a/bsp/gd32/arm/gd32303e-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32303e-eval/project.uvprojx
@@ -334,9 +334,9 @@
0
- RT_USING_LIBC, GD32F30X_HD, USE_STDPERIPH_DRIVER, RT_USING_ARMLIBC, __RTTHREAD__, __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND
+ GD32F30X_HD, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER, __STDC_LIMIT_MACROS, RT_USING_LIBC, RT_USING_ARMLIBC
- ..\..\..\..\components\libc\posix\io\epoll;.;applications;..\..\..\..\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\ipc;board;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\finsh;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include
+ packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\include;applications;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\net\utest;..\..\..\..\components\drivers\include;board;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;.;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\smp_call;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers
@@ -705,9 +705,9 @@
Finsh
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
@@ -719,16 +719,16 @@
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -1024,37 +1024,37 @@
klibc
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- kstring.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kstdio.c
- kerrno.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsnprintf_tiny.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kerrno.c
- rt_vsscanf.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kstring.c
diff --git a/bsp/gd32/arm/gd32303e-eval/rtconfig.h b/bsp/gd32/arm/gd32303e-eval/rtconfig.h
index f4ccf941b7e..cfc5b84e88e 100644
--- a/bsp/gd32/arm/gd32303e-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32303e-eval/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32303Z
+#define SOC_GD32F303ZE
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32305r-start/.config b/bsp/gd32/arm/gd32305r-start/.config
index db21d4b5ec6..d843bc94710 100644
--- a/bsp/gd32/arm/gd32305r-start/.config
+++ b/bsp/gd32/arm/gd32305r-start/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -632,6 +630,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -726,6 +727,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -888,6 +890,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -936,6 +944,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F30x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32305R=y
+CONFIG_SOC_GD32F305RC=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32305R=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32305r-start/board/Kconfig b/bsp/gd32/arm/gd32305r-start/board/Kconfig
index ffa545e232c..ce44b26f8fc 100644
--- a/bsp/gd32/arm/gd32305r-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32305r-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F30x
bool
default y
-config SOC_GD32305R
+config SOC_GD32F305RC
bool
select SOC_SERIES_GD32F30x
select RT_USING_COMPONENTS_INIT
@@ -25,57 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32305r-start/project.ewp b/bsp/gd32/arm/gd32305r-start/project.ewp
index fc6da089f94..8758d0ad749 100644
--- a/bsp/gd32/arm/gd32305r-start/project.ewp
+++ b/bsp/gd32/arm/gd32305r-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F30X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
$PROJ_DIR$\applications
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F30X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
$PROJ_DIR$\applications
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\IAR\startup_gd32f30x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2053,7 +2054,7 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
@@ -2062,7 +2063,7 @@
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2115,24 +2116,27 @@
klibc
-
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\IAR\startup_gd32f30x_cl.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\system_gd32f30x.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32305r-start/project.uvoptx b/bsp/gd32/arm/gd32305r-start/project.uvoptx
index d3ff2abebbe..9a597f52302 100644
--- a/bsp/gd32/arm/gd32305r-start/project.uvoptx
+++ b/bsp/gd32/arm/gd32305r-start/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -77,7 +77,7 @@
0
1
- 255
+ 0
0
1
@@ -169,798 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\ARM\startup_gd32f30x_cl.s
- startup_gd32f30x_cl.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- system_gd32f30x.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- gd32f30x_exti.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- gd32f30x_gpio.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- gd32f30x_misc.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
- gd32f30x_rcu.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
- gd32f30x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32305r-start/project.uvprojx b/bsp/gd32/arm/gd32305r-start/project.uvprojx
index 5d961089803..aae13df901a 100644
--- a/bsp/gd32/arm/gd32305r-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32305r-start/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F305RC
GigaDevice
- GigaDevice.GD32F30x_DFP.2.2.1
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F30x_DFP.2.1.0
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x018000) IROM(0x08000000,0x040000) CPUTYPE("Cortex-M4") FPU2 CLOCK(25000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F30x_CL -FS08000000 -FL040000 -FP0($$Device:GD32F305RC$Flash\GD32F30x_CL.FLM))
0
$$Device:GD32F305RC$Device\Include\gd32f30x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F305RC$SVD\GD32F30x_CL.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -186,7 +183,6 @@
2
0
0
- 0
0
0
8
@@ -310,7 +306,7 @@
0x0
-
+
1
@@ -337,10 +333,10 @@
0
0
-
- __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_LIBC, __RTTHREAD__, USE_STDPERIPH_DRIVER, __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, GD32F30X_CL
-
- ..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\libcpu\arm\common;..\libraries\gd32_drivers;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;board;..\..\..\..\components\drivers\include;..\..\..\..\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F30x;.;applications;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\finsh;..\..\..\..\components\libc\compilers\common\extension
+
+ USE_STDPERIPH_DRIVER, GD32F30X_CL, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, RT_USING_LIBC, __RTTHREAD__, RT_USING_ARMLIBC
+
+ packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\phy;board;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\net\utest;..\..\..\..\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;applications;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;.
@@ -355,10 +351,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +366,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +395,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +454,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +685,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1137,20 +705,26 @@
Finsh
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
+
+
- msh.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
shell.c
1
..\..\..\..\components\finsh\shell.c
+
+
msh_parse.c
1
@@ -1166,836 +740,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2011,25 +1028,33 @@
1
..\..\..\..\src\klibc\kstdio.c
+
+
- rt_vsscanf.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kerrno.c
+
+
kstring.c
1
..\..\..\..\src\klibc\kstring.c
+
+
- rt_vsnprintf_tiny.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+
+
- kerrno.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
@@ -2041,21 +1066,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2071,31 +1104,43 @@
2
packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\ARM\startup_gd32f30x_cl.s
+
+
system_gd32f30x.c
1
packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
+
+
gd32f30x_exti.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+
+
gd32f30x_gpio.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+
+
gd32f30x_misc.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+
+
gd32f30x_rcu.c
1
packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+
+
gd32f30x_usart.c
1
@@ -2103,34 +1148,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32305r-start/rtconfig.h b/bsp/gd32/arm/gd32305r-start/rtconfig.h
index 7d7441e3533..b00e6115f42 100644
--- a/bsp/gd32/arm/gd32305r-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32305r-start/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32305R
+#define SOC_GD32F305RC
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32307e-start/.config b/bsp/gd32/arm/gd32307e-start/.config
index 8c4d8561595..66c0a56702a 100644
--- a/bsp/gd32/arm/gd32307e-start/.config
+++ b/bsp/gd32/arm/gd32307e-start/.config
@@ -347,8 +347,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -632,6 +630,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -726,6 +727,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -888,6 +890,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -936,6 +944,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1406,7 +1415,7 @@ CONFIG_SOC_SERIES_GD32F30x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32307E=y
+CONFIG_SOC_GD32F307VE=y
#
# Onboard Peripheral Drivers
@@ -1417,12 +1426,15 @@ CONFIG_SOC_GD32307E=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32307e-start/board/Kconfig b/bsp/gd32/arm/gd32307e-start/board/Kconfig
index cfc1432f4f8..d04e13d66b5 100644
--- a/bsp/gd32/arm/gd32307e-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32307e-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F30x
bool
default y
-config SOC_GD32307E
+config SOC_GD32F307VE
bool
select SOC_SERIES_GD32F30x
select RT_USING_COMPONENTS_INIT
@@ -25,58 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32307e-start/project.ewp b/bsp/gd32/arm/gd32307e-start/project.ewp
index c52fd858fed..b51276d28bc 100644
--- a/bsp/gd32/arm/gd32307e-start/project.ewp
+++ b/bsp/gd32/arm/gd32307e-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F30X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\board
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F30X_CL
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F30X_CL
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\board
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x
CCStdIncCheck
@@ -2040,9 +2044,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\IAR\startup_gd32f30x_cl.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2052,6 +2053,9 @@
Finsh
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
@@ -2061,9 +2065,6 @@
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
-
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
-
Kernel
@@ -2115,24 +2116,27 @@
klibc
-
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
-
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2149,27 +2153,33 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\CMSIS\GD\GD32F30x\Source\system_gd32f30x.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\IAR\startup_gd32f30x_cl.s
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Source\system_gd32f30x.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
- $PROJ_DIR$\..\libraries\GD32F30x_Firmware_Library\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32307e-start/project.uvprojx b/bsp/gd32/arm/gd32307e-start/project.uvprojx
index af4a0253e23..ef9827c8772 100644
--- a/bsp/gd32/arm/gd32307e-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32307e-start/project.uvprojx
@@ -334,9 +334,9 @@
0
- GD32F30X_CL, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_LIBC, RT_USING_ARMLIBC, __RTTHREAD__, __STDC_LIMIT_MACROS
+ RT_USING_LIBC, RT_USING_ARMLIBC, GD32F30X_CL, __STDC_LIMIT_MACROS, __RTTHREAD__, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND
- packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\..\..\..\libcpu\arm\common;..\..\..\..\include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\cortex-m4;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\phy;applications;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\posix\io\epoll;..\libraries\gd32_drivers;.;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\finsh;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;board;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include
+ applications;..\..\..\..\components\libc\posix\io\eventfd;packages\gd32-arm-series-latest\GD32F30x\GD32F30x_standard_peripheral\Include;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F30x\GD\GD32F30x\Include;..\libraries\gd32_drivers;board;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;.;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\net\utest;..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F30x;..\..\..\..\include
@@ -705,16 +705,16 @@
Finsh
- shell.c
+ cmd.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\cmd.c
- cmd.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -726,9 +726,9 @@
- msh_parse.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\shell.c
@@ -1031,16 +1031,16 @@
- rt_vsnprintf_tiny.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
diff --git a/bsp/gd32/arm/gd32307e-start/rtconfig.h b/bsp/gd32/arm/gd32307e-start/rtconfig.h
index 3dc0cd6acd7..3c8865e39e1 100644
--- a/bsp/gd32/arm/gd32307e-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32307e-start/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32307E
+#define SOC_GD32F307VE
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32407v-lckfb/.config b/bsp/gd32/arm/gd32407v-lckfb/.config
index b467df2f25a..44c994a2b14 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/.config
+++ b/bsp/gd32/arm/gd32407v-lckfb/.config
@@ -351,8 +351,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -636,6 +634,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -730,6 +731,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -892,6 +894,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -940,6 +948,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1410,7 +1419,7 @@ CONFIG_SOC_SERIES_GD32F4xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32407V=y
+CONFIG_SOC_GD32F407VE=y
#
# Onboard Peripheral Drivers
@@ -1423,14 +1432,15 @@ CONFIG_SOC_GD32407V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF7"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32407v-lckfb/board/Kconfig b/bsp/gd32/arm/gd32407v-lckfb/board/Kconfig
index e2a75bc043c..b9281dffebf 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/board/Kconfig
+++ b/bsp/gd32/arm/gd32407v-lckfb/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F4xx
bool
default y
-config SOC_GD32407V
+config SOC_GD32F407VE
bool
select SOC_SERIES_GD32F4xx
select RT_USING_COMPONENTS_INIT
@@ -45,211 +45,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enable UART0"
- default n
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
- config BSP_USING_UART1
- bool "Enable UART1"
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART1
+ bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 32
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 32
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 32
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.ewp b/bsp/gd32/arm/gd32407v-lckfb/project.ewp
index a04cae5c25e..036e4a66c1b 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.ewp
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.ewp
@@ -166,14 +166,14 @@
1
CCDefines
+ GD32F407
+ LCKFB_SKYSTART_GD32F407V
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F407
- LCKFB_SKYSTART_GD32F407V
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -304,27 +304,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\board
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\.
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\include
CCStdIncCheck
@@ -1138,14 +1140,14 @@
CCDefines
NDEBUG
+ GD32F407
+ LCKFB_SKYSTART_GD32F407V
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F407
- LCKFB_SKYSTART_GD32F407V
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1277,27 +1279,29 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\board
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\.
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\include
CCStdIncCheck
@@ -2051,9 +2055,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2064,16 +2065,16 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2127,23 +2128,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
-
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
-
$PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2160,36 +2164,42 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx b/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
index f652a9542ea..bf22d03cbda 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
@@ -73,7 +73,7 @@
0
- 1
+ 0
0
1
@@ -174,870 +174,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_bit_ops.c
- dev_i2c_bit_ops.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_core.c
- dev_i2c_core.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_dev.c
- dev_i2c_dev.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 22
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 23
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 24
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 25
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 26
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 27
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 52
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 54
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 55
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 56
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 57
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
- startup_gd32f4xx.s
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- system_gd32f4xx.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- gd32f4xx_dma.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- gd32f4xx_exti.c
- 0
- 0
-
-
- 9
- 61
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- gd32f4xx_gpio.c
- 0
- 0
-
-
- 9
- 62
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
- gd32f4xx_i2c.c
- 0
- 0
-
-
- 9
- 63
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- gd32f4xx_misc.c
- 0
- 0
-
-
- 9
- 64
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- gd32f4xx_rcu.c
- 0
- 0
-
-
- 9
- 65
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- gd32f4xx_syscfg.c
- 0
- 0
-
-
- 9
- 66
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
- gd32f4xx_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx b/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
index c4e33c74cf6..fd2e39c5ee3 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
@@ -1,10 +1,7 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
@@ -19,28 +16,28 @@
GigaDevice.GD32F4xx_DFP.3.0.4
https://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x020000) IRAM2(0x10000000,0x010000) IROM(0x08000000,0x080000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F4xx_512KB -FS08000000 -FL080000 -FP0($$Device:GD32F407VE$Flash\GD32F4xx_512KB.FLM))
0
$$Device:GD32F407VE$Device\F4XX\Include\gd32f4xx.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F407VE$SVD\GD32F4xx.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -310,7 +307,7 @@
0x10000
-
+
1
@@ -337,10 +334,10 @@
0
0
-
- GD32F407, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, USE_STDPERIPH_DRIVER, __RTTHREAD__, LCKFB_SKYSTART_GD32F407V, RT_USING_LIBC
-
- ..\..\..\..\components\libc\posix\ipc;..\..\..\..\libcpu\arm\common;board;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\smp_call;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;.;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\include;packages\gd32-arm-cmsis-latest\GD32F4xx;..\libraries\gd32_drivers;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;applications
+
+ RT_USING_LIBC, RT_USING_ARMLIBC, __RTTHREAD__, USE_STDPERIPH_DRIVER, __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND, GD32F407, LCKFB_SKYSTART_GD32F407V
+
+ ..\..\..\..\components\drivers\include;applications;..\libraries\gd32_drivers\config;..\..\..\..\components\libc\posix\io\epoll;.;..\..\..\..\components\libc\posix\io\eventfd;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\finsh;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;..\..\..\..\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\net\utest;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\ipc;board;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include
@@ -355,10 +352,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +367,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +396,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,47 +455,8 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -495,52 +467,15 @@
+
+
dev_i2c_bit_ops.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_bit_ops.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -551,52 +486,15 @@
+
+
dev_i2c_core.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_core.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -607,52 +505,15 @@
+
+
dev_i2c_dev.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_dev.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -663,52 +524,15 @@
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -719,52 +543,15 @@
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -775,52 +562,15 @@
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -831,52 +581,15 @@
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -887,52 +600,15 @@
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -943,52 +619,15 @@
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -999,52 +638,15 @@
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1055,52 +657,15 @@
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1111,52 +676,15 @@
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1167,52 +695,15 @@
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1223,52 +714,15 @@
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1289,11 +743,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1309,20 +767,26 @@
1
..\..\..\..\components\finsh\shell.c
+
+
msh.c
1
..\..\..\..\components\finsh\msh.c
+
+
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
- cmd.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -1334,47 +798,8 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1385,52 +810,15 @@
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1441,52 +829,15 @@
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1497,52 +848,15 @@
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1553,52 +867,15 @@
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1609,52 +886,15 @@
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1665,52 +905,15 @@
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1721,52 +924,15 @@
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1777,52 +943,15 @@
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1833,52 +962,15 @@
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1889,52 +981,15 @@
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1945,52 +1000,15 @@
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -2001,52 +1019,15 @@
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -2057,52 +1038,15 @@
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -2113,52 +1057,15 @@
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -2173,31 +1080,39 @@
klibc
+
+
+ rt_vsnprintf_tiny.c
+ 1
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
kerrno.c
1
..\..\..\..\src\klibc\kerrno.c
+
+
kstdio.c
1
..\..\..\..\src\klibc\kstdio.c
+
+
- rt_vsscanf.c
- 1
- ..\..\..\..\src\klibc\rt_vsscanf.c
-
-
- rt_vsnprintf_tiny.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstring.c
+
+
- kstring.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
@@ -2209,21 +1124,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2239,46 +1162,64 @@
2
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
+
+
system_gd32f4xx.c
1
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
+
+
gd32f4xx_dma.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+
+
gd32f4xx_exti.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+
+
gd32f4xx_gpio.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+
+
gd32f4xx_i2c.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+
+
gd32f4xx_misc.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+
+
gd32f4xx_rcu.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+
+
gd32f4xx_syscfg.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+
+
gd32f4xx_usart.c
1
@@ -2286,26 +1227,21 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
@@ -2315,5 +1251,4 @@
-
diff --git a/bsp/gd32/arm/gd32407v-lckfb/rtconfig.h b/bsp/gd32/arm/gd32407v-lckfb/rtconfig.h
index 761682bbf83..0dc1823e3a7 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/rtconfig.h
+++ b/bsp/gd32/arm/gd32407v-lckfb/rtconfig.h
@@ -323,6 +323,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -407,7 +411,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32407V
+#define SOC_GD32F407VE
/* Onboard Peripheral Drivers */
@@ -417,7 +421,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32407v-start/.config b/bsp/gd32/arm/gd32407v-start/.config
index 56900a64a5b..2c3c123e742 100644
--- a/bsp/gd32/arm/gd32407v-start/.config
+++ b/bsp/gd32/arm/gd32407v-start/.config
@@ -351,8 +351,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -636,6 +634,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -730,6 +731,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -892,6 +894,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -940,6 +948,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1410,7 +1419,7 @@ CONFIG_SOC_SERIES_GD32F4xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32407V=y
+CONFIG_SOC_GD32F407VK=y
#
# Onboard Peripheral Drivers
@@ -1421,14 +1430,15 @@ CONFIG_SOC_GD32407V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
-# CONFIG_BSP_UART1_RX_USING_DMA is not set
-# CONFIG_BSP_UART1_TX_USING_DMA is not set
+CONFIG_BSP_UART1_TX_PIN="PA2"
+CONFIG_BSP_UART1_RX_PIN="PA3"
+CONFIG_BSP_UART1_AFIO="AF7"
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32407v-start/board/Kconfig b/bsp/gd32/arm/gd32407v-start/board/Kconfig
index dda538b604f..bf19a90c804 100644
--- a/bsp/gd32/arm/gd32407v-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32407v-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F4xx
bool
default y
-config SOC_GD32407V
+config SOC_GD32F407VK
bool
select SOC_SERIES_GD32F4xx
select RT_USING_COMPONENTS_INIT
@@ -25,211 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default n
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 32
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 32
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 32
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32407v-start/project.ewp b/bsp/gd32/arm/gd32407v-start/project.ewp
index 38b274bb842..44145b54ea7 100644
--- a/bsp/gd32/arm/gd32407v-start/project.ewp
+++ b/bsp/gd32/arm/gd32407v-start/project.ewp
@@ -166,13 +166,13 @@
1
CCDefines
+ GD32F407
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F407
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -303,27 +303,29 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\applications
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
CCStdIncCheck
@@ -1137,13 +1139,13 @@
CCDefines
NDEBUG
+ GD32F407
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32F407
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1275,27 +1277,29 @@
CCIncludePath2
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\.
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\applications
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
CCStdIncCheck
@@ -2049,14 +2053,9 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
-
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_usart.c
@@ -2064,13 +2063,13 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
@@ -2127,23 +2126,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2160,36 +2162,42 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32407v-start/project.uvoptx b/bsp/gd32/arm/gd32407v-start/project.uvoptx
index 0434632cd4f..263c23a06e8 100644
--- a/bsp/gd32/arm/gd32407v-start/project.uvoptx
+++ b/bsp/gd32/arm/gd32407v-start/project.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -169,870 +169,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_bit_ops.c
- dev_i2c_bit_ops.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_core.c
- dev_i2c_core.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\i2c\dev_i2c_dev.c
- dev_i2c_dev.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 22
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 23
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 24
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 25
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 26
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 27
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 52
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 54
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 55
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 56
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 57
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
- startup_gd32f4xx.s
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- system_gd32f4xx.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- gd32f4xx_dma.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- gd32f4xx_exti.c
- 0
- 0
-
-
- 9
- 61
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- gd32f4xx_gpio.c
- 0
- 0
-
-
- 9
- 62
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
- gd32f4xx_i2c.c
- 0
- 0
-
-
- 9
- 63
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- gd32f4xx_misc.c
- 0
- 0
-
-
- 9
- 64
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- gd32f4xx_rcu.c
- 0
- 0
-
-
- 9
- 65
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- gd32f4xx_syscfg.c
- 0
- 0
-
-
- 9
- 66
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
- gd32f4xx_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32407v-start/project.uvprojx b/bsp/gd32/arm/gd32407v-start/project.uvprojx
index cc881d3d863..c0036489355 100644
--- a/bsp/gd32/arm/gd32407v-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32407v-start/project.uvprojx
@@ -1,10 +1,7 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
@@ -19,28 +16,28 @@
GigaDevice.GD32F4xx_DFP.2.1.0
http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x020000) IRAM2(0x10000000,0x010000) IROM(0x08000000,0x300000) CPUTYPE("Cortex-M4") FPU2 CLOCK(25000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC800 -FN1 -FF0GD32F4xx_3MB -FS08000000 -FL0300000 -FP0($$Device:GD32F407VK$Flash\GD32F4xx_3MB.FLM))
0
$$Device:GD32F407VK$Device\F4XX\Include\gd32f4xx.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F407VK$SVD\GD32F4xx.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,8 +101,8 @@
0
0
3
-
-
+
+
1
@@ -138,11 +135,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -186,7 +183,6 @@
2
0
0
- 0
1
0
8
@@ -310,7 +306,7 @@
0x10000
-
+
1
@@ -337,10 +333,10 @@
0
0
-
- RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, GD32F407, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARMLIBC
-
- ..\..\..\..\components\drivers\include;board;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\finsh;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\libraries\gd32_drivers;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;..\..\..\..\include;applications;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\epoll;.;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\include
+
+ USE_STDPERIPH_DRIVER, RT_USING_ARMLIBC, __RTTHREAD__, RT_USING_LIBC, GD32F407, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS
+
+ ..\..\..\..\components\drivers\include;applications;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\drivers\phy;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\net\utest;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;.;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\posix\io\epoll;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\compilers\common\extension;..\libraries\gd32_drivers\config;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\include;board;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\finsh
@@ -355,10 +351,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +366,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +395,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,836 +454,279 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_i2c_bit_ops.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_bit_ops.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_i2c_core.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_core.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_i2c_dev.c
1
..\..\..\..\components\drivers\i2c\dev_i2c_dev.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1289,11 +742,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1309,16 +766,22 @@
1
..\..\..\..\components\finsh\shell.c
+
+
- msh_parse.c
+ msh.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\msh.c
+
+
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
+
+
cmd.c
1
@@ -1334,836 +797,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2175,29 +1081,37 @@
klibc
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
- kerrno.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
kstring.c
1
..\..\..\..\src\klibc\kstring.c
+
+
- rt_vsnprintf_tiny.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+
+
- rt_vsscanf.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kerrno.c
@@ -2209,21 +1123,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2239,46 +1161,64 @@
2
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
+
+
system_gd32f4xx.c
1
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
+
+
gd32f4xx_dma.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+
+
gd32f4xx_exti.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+
+
gd32f4xx_gpio.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+
+
gd32f4xx_i2c.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+
+
gd32f4xx_misc.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+
+
gd32f4xx_rcu.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+
+
gd32f4xx_syscfg.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+
+
gd32f4xx_usart.c
1
@@ -2286,34 +1226,33 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
<Project Info>
+
+
+
+
+
0
1
-
diff --git a/bsp/gd32/arm/gd32407v-start/rtconfig.h b/bsp/gd32/arm/gd32407v-start/rtconfig.h
index 74b3b3f65f3..339a74377d9 100644
--- a/bsp/gd32/arm/gd32407v-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32407v-start/rtconfig.h
@@ -323,6 +323,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -407,7 +411,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32407V
+#define SOC_GD32F407VK
/* Onboard Peripheral Drivers */
@@ -415,7 +419,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART1
+#define BSP_UART1_TX_PIN "PA2"
+#define BSP_UART1_RX_PIN "PA3"
+#define BSP_UART1_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32450z-eval/.config b/bsp/gd32/arm/gd32450z-eval/.config
index f46b9723d39..547c539e720 100644
--- a/bsp/gd32/arm/gd32450z-eval/.config
+++ b/bsp/gd32/arm/gd32450z-eval/.config
@@ -180,7 +180,7 @@ CONFIG_RT_USING_DEVICE=y
# CONFIG_RT_USING_THREADSAFE_PRINTF is not set
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
-CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
+CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
CONFIG_RT_VER_NUM=0x50201
# CONFIG_RT_USING_STDC_ATOMIC is not set
CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
@@ -363,8 +363,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -648,6 +646,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -742,6 +743,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -904,6 +906,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -952,6 +960,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1422,7 +1431,7 @@ CONFIG_SOC_SERIES_GD32F4xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32450Z=y
+CONFIG_SOC_GD32F450ZK=y
#
# Onboard Peripheral Drivers
@@ -1433,16 +1442,15 @@ CONFIG_SOC_GD32450Z=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
-# CONFIG_BSP_USING_UART6 is not set
-# CONFIG_BSP_USING_UART7 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32450z-eval/board/Kconfig b/bsp/gd32/arm/gd32450z-eval/board/Kconfig
index a75b84f92e8..c0a86c5def7 100644
--- a/bsp/gd32/arm/gd32450z-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32450z-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F4xx
bool
default y
-config SOC_GD32450Z
+config SOC_GD32F450ZK
bool
select SOC_SERIES_GD32F4xx
select RT_USING_COMPONENTS_INIT
@@ -25,279 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enable UART0"
- default n
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
- config BSP_USING_UART1
- bool "Enable UART1"
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART1
+ bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 32
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 32
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 32
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 32
-
- config BSP_USING_UART6
- bool "Enable UART6"
- default n
-
- config BSP_UART6_RX_USING_DMA
- bool "Enable UART6 RX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_TX_USING_DMA
- bool "Enable UART6 TX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_RX_BUFSIZE
- int "Set UART6 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART6_TX_BUFSIZE
- int "Set UART6 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART6_DMA_PING_BUFSIZE
- int "Set UART6 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART6_RX_USING_DMA
- default 32
-
- config BSP_USING_UART7
- bool "Enable UART7"
- default n
-
- config BSP_UART7_RX_USING_DMA
- bool "Enable UART7 RX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_TX_USING_DMA
- bool "Enable UART7 TX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_RX_BUFSIZE
- int "Set UART7 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART7_TX_BUFSIZE
- int "Set UART7 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART7_DMA_PING_BUFSIZE
- int "Set UART7 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART7_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32450z-eval/project.ewp b/bsp/gd32/arm/gd32450z-eval/project.ewp
index 1b2487273b3..3f5531b7a27 100644
--- a/bsp/gd32/arm/gd32450z-eval/project.ewp
+++ b/bsp/gd32/arm/gd32450z-eval/project.ewp
@@ -168,14 +168,14 @@
CCDefines
USE_STDPERIPH_DRIVER
GD32F4XX
+ GD32F450
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
_DLIB_FILE_DESCRIPTOR
- GD32F450
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -306,28 +306,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\board
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\applications
CCStdIncCheck
@@ -1141,14 +1143,14 @@
CCDefines
NDEBUG
+ GD32F450
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
_DLIB_FILE_DESCRIPTOR
- GD32F450
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1280,28 +1282,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\board
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\applications
CCStdIncCheck
@@ -2046,9 +2050,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2058,9 +2059,6 @@
Filesystem
-
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
-
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs.c
@@ -2070,24 +2068,27 @@
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
+
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
+
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
-
-
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+
Kernel
@@ -2139,9 +2140,6 @@
klibc
-
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
$PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
@@ -2149,14 +2147,20 @@
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2173,33 +2177,39 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32450z-eval/project.uvprojx b/bsp/gd32/arm/gd32450z-eval/project.uvprojx
index e2ce0d5a533..c6fa021836f 100644
--- a/bsp/gd32/arm/gd32450z-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32450z-eval/project.uvprojx
@@ -333,9 +333,9 @@
0
- __RTTHREAD__, GD32F450, __STDC_LIMIT_MACROS, USE_STDPERIPH_DRIVER, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_ARMLIBC
+ GD32F450, USE_STDPERIPH_DRIVER, RT_USING_LIBC, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, __STDC_LIMIT_MACROS
- ..\..\..\..\components\libc\compilers\common\include;.;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\epoll;..\libraries\gd32_drivers;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\common;..\..\..\..\include;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;..\..\..\..\components\dfs\dfs_v1\include;board;..\..\..\..\components\libc\posix\ipc;applications
+ ..\..\..\..\components\dfs\dfs_v1\include;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;board;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;..\..\..\..\libcpu\arm\common;..\..\..\..\include;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;.;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\libcpu\arm\cortex-m4;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;applications;..\..\..\..\components\net\utest;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\finsh;..\libraries\gd32_drivers\config;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\include
@@ -742,9 +742,9 @@
- dfs_posix.c
+ dfs_fs.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
@@ -761,9 +761,9 @@
- dfs_fs.c
+ dfs_posix.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
@@ -783,9 +783,9 @@
Finsh
- cmd.c
+ msh_file.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_file.c
@@ -797,16 +797,16 @@
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
- msh_file.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh_file.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -1109,37 +1109,37 @@
klibc
- rt_vsnprintf_tiny.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstring.c
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- kerrno.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
- kstring.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kerrno.c
- rt_vsscanf.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kstdio.c
diff --git a/bsp/gd32/arm/gd32450z-eval/rtconfig.h b/bsp/gd32/arm/gd32450z-eval/rtconfig.h
index 7a708263d95..190e8cb0cb8 100644
--- a/bsp/gd32/arm/gd32450z-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32450z-eval/rtconfig.h
@@ -104,7 +104,7 @@
#define RT_USING_DEVICE
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
-#define RT_CONSOLE_DEVICE_NAME "uart"
+#define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_VER_NUM 0x50201
#define RT_BACKTRACE_LEVEL_MAX_NR 32
/* end of RT-Thread Kernel */
@@ -328,6 +328,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -412,7 +416,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32450Z
+#define SOC_GD32F450ZK
/* Onboard Peripheral Drivers */
@@ -420,7 +424,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32470i-eval/.config b/bsp/gd32/arm/gd32470i-eval/.config
index e869deb23d3..90d231da200 100644
--- a/bsp/gd32/arm/gd32470i-eval/.config
+++ b/bsp/gd32/arm/gd32470i-eval/.config
@@ -348,8 +348,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -633,6 +631,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -727,6 +728,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -889,6 +891,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -937,6 +945,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1407,7 +1416,7 @@ CONFIG_SOC_SERIES_GD32F4xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32470Z=y
+CONFIG_SOC_GD32F470ZG=y
#
# Onboard Peripheral Drivers
@@ -1418,16 +1427,15 @@ CONFIG_SOC_GD32470Z=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
-# CONFIG_BSP_USING_UART6 is not set
-# CONFIG_BSP_USING_UART7 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32470i-eval/board/Kconfig b/bsp/gd32/arm/gd32470i-eval/board/Kconfig
index 290991f431d..5ab121f7dd3 100644
--- a/bsp/gd32/arm/gd32470i-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32470i-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F4xx
bool
default y
-config SOC_GD32470Z
+config SOC_GD32F470ZG
bool
select SOC_SERIES_GD32F4xx
select RT_USING_COMPONENTS_INIT
@@ -25,279 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enable UART0"
- default n
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
- config BSP_USING_UART1
- bool "Enable UART1"
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART1
+ bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 32
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 32
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 32
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 32
-
- config BSP_USING_UART6
- bool "Enable UART6"
- default n
-
- config BSP_UART6_RX_USING_DMA
- bool "Enable UART6 RX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_TX_USING_DMA
- bool "Enable UART6 TX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_RX_BUFSIZE
- int "Set UART6 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART6_TX_BUFSIZE
- int "Set UART6 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART6_DMA_PING_BUFSIZE
- int "Set UART6 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART6_RX_USING_DMA
- default 32
-
- config BSP_USING_UART7
- bool "Enable UART7"
- default n
-
- config BSP_UART7_RX_USING_DMA
- bool "Enable UART7 RX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_TX_USING_DMA
- bool "Enable UART7 TX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_RX_BUFSIZE
- int "Set UART7 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART7_TX_BUFSIZE
- int "Set UART7 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART7_DMA_PING_BUFSIZE
- int "Set UART7 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART7_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32470i-eval/project.ewp b/bsp/gd32/arm/gd32470i-eval/project.ewp
index cc2f18ae629..5617a241301 100644
--- a/bsp/gd32/arm/gd32470i-eval/project.ewp
+++ b/bsp/gd32/arm/gd32470i-eval/project.ewp
@@ -168,14 +168,13 @@
CCDefines
USE_STDPERIPH_DRIVER
GD32F4XX
+ GD32F470
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- _DLIB_FILE_DESCRIPTOR
- GD32F470
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -306,29 +305,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\applications
- $PROJ_DIR$\board\ports
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
$PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\board\ports
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
CCStdIncCheck
@@ -1142,14 +1142,13 @@
CCDefines
NDEBUG
+ GD32F470
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- _DLIB_FILE_DESCRIPTOR
- GD32F470
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1281,29 +1280,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\applications
- $PROJ_DIR$\board\ports
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
$PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\board\ports
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
CCStdIncCheck
@@ -2048,9 +2048,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2058,34 +2055,16 @@
$PROJ_DIR$\..\libraries\gd32_drivers\drv_usart.c
-
- Filesystem
-
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs.c
-
-
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
-
-
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
-
-
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
-
-
Finsh
-
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
-
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2142,23 +2121,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2175,33 +2157,39 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32470i-eval/project.uvoptx b/bsp/gd32/arm/gd32470i-eval/project.uvoptx
index ef9e7b0496c..14dde5e4db2 100644
--- a/bsp/gd32/arm/gd32470i-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32470i-eval/project.uvoptx
@@ -174,822 +174,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\atomic_arm.c
- atomic_arm.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 51
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 52
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 53
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 54
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
- startup_gd32f4xx.s
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- system_gd32f4xx.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- gd32f4xx_dma.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- gd32f4xx_exti.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- gd32f4xx_gpio.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- gd32f4xx_misc.c
- 0
- 0
-
-
- 9
- 60
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- gd32f4xx_rcu.c
- 0
- 0
-
-
- 9
- 61
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- gd32f4xx_syscfg.c
- 0
- 0
-
-
- 9
- 62
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
- gd32f4xx_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32470i-eval/project.uvprojx b/bsp/gd32/arm/gd32470i-eval/project.uvprojx
index 7f304d9b965..744ef329de1 100644
--- a/bsp/gd32/arm/gd32470i-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32470i-eval/project.uvprojx
@@ -1,10 +1,7 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
@@ -15,31 +12,31 @@
GD32F470ZG
GigaDevice
- GigaDevice.GD32F4xx_DFP.3.0.3
- https://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32F4xx_DFP.3.0.0
+ http://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x070000) IRAM2(0x10000000,0x010000) IROM(0x08000000,0x0100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F4xx_1MB -FS08000000 -FL0100000 -FP0($$Device:GD32F470ZG$Flash\GD32F4xx_1MB.FLM))
0
$$Device:GD32F470ZG$Device\F4XX\Include\gd32f4xx.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32F470ZG$SVD\GD32F4xx.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -61,8 +58,8 @@
0
0
-
-
+
+
0
0
0
@@ -71,8 +68,8 @@
0
0
-
-
+
+
0
0
0
@@ -82,14 +79,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -103,8 +100,8 @@
0
0
3
-
-
+
+
1
@@ -137,11 +134,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -174,7 +171,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -185,7 +182,6 @@
2
0
0
- 0
1
0
8
@@ -309,7 +305,7 @@
0x10000
-
+
1
@@ -336,10 +332,10 @@
0
0
-
- __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_LIBC, RT_USING_ARMLIBC, GD32F470
-
- board;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\phy;.;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\libcpu\arm\common;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\cortex-m4;board\ports;..\..\..\..\components\libc\posix\io\poll;applications
+
+ USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, __RTTHREAD__, RT_USING_LIBC, RT_USING_ARMLIBC, GD32F470
+
+ ..\..\..\..\components\finsh;..\libraries\gd32_drivers;applications;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\smp_call;..\..\..\..\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\drivers\include;board;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;.;..\libraries\gd32_drivers\config;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\net\utest;..\..\..\..\components\libc\posix\io\poll;board\ports;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include
@@ -354,10 +350,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -369,13 +365,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -398,36 +394,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -443,47 +453,8 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -494,52 +465,15 @@
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -550,52 +484,15 @@
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -606,52 +503,15 @@
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -662,52 +522,15 @@
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -718,52 +541,15 @@
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -774,52 +560,15 @@
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -830,52 +579,15 @@
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -886,52 +598,15 @@
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -942,52 +617,15 @@
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -998,52 +636,15 @@
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1054,52 +655,15 @@
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
@@ -1120,11 +684,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1136,24 +704,30 @@
Finsh
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
+
+
shell.c
1
..\..\..\..\components\finsh\shell.c
+
+
- msh_parse.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
@@ -1165,47 +739,8 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1216,52 +751,15 @@
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1272,52 +770,15 @@
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1328,52 +789,15 @@
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1384,52 +808,15 @@
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1440,52 +827,15 @@
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1496,52 +846,15 @@
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1552,52 +865,15 @@
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1608,52 +884,15 @@
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1664,52 +903,15 @@
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1720,52 +922,15 @@
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1776,52 +941,15 @@
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1832,108 +960,34 @@
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -1944,52 +998,15 @@
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
@@ -2006,29 +1023,37 @@
klibc
- rt_vsscanf.c
- 1
- ..\..\..\..\src\klibc\rt_vsscanf.c
-
-
- kstring.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
rt_vsnprintf_tiny.c
1
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
kerrno.c
1
..\..\..\..\src\klibc\kerrno.c
+
+
- kstdio.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+
+
+
+
+ kstring.c
+ 1
+ ..\..\..\..\src\klibc\kstring.c
@@ -2040,21 +1065,29 @@
1
..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
div0.c
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2070,41 +1103,57 @@
2
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
+
+
system_gd32f4xx.c
1
packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
+
+
gd32f4xx_dma.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+
+
gd32f4xx_exti.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+
+
gd32f4xx_gpio.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+
+
gd32f4xx_misc.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+
+
gd32f4xx_rcu.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+
+
gd32f4xx_syscfg.c
1
packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+
+
gd32f4xx_usart.c
1
@@ -2112,26 +1161,21 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
@@ -2141,5 +1185,4 @@
-
diff --git a/bsp/gd32/arm/gd32470i-eval/rtconfig.h b/bsp/gd32/arm/gd32470i-eval/rtconfig.h
index 0e2650344a7..a29e558b9fe 100644
--- a/bsp/gd32/arm/gd32470i-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32470i-eval/rtconfig.h
@@ -321,6 +321,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -405,7 +409,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32470Z
+#define SOC_GD32F470ZG
/* Onboard Peripheral Drivers */
@@ -413,7 +417,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32470z-lckfb/.config b/bsp/gd32/arm/gd32470z-lckfb/.config
index 4903b429efc..62ab51945f6 100644
--- a/bsp/gd32/arm/gd32470z-lckfb/.config
+++ b/bsp/gd32/arm/gd32470z-lckfb/.config
@@ -363,8 +363,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -648,6 +646,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -742,6 +743,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -904,6 +906,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -952,6 +960,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1422,7 +1431,7 @@ CONFIG_SOC_SERIES_GD32F4xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32470Z=y
+CONFIG_SOC_GD32F470ZG=y
#
# Onboard Peripheral Drivers
@@ -1433,16 +1442,15 @@ CONFIG_SOC_GD32470Z=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
-# CONFIG_BSP_USING_UART6 is not set
-# CONFIG_BSP_USING_UART7 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32470z-lckfb/board/Kconfig b/bsp/gd32/arm/gd32470z-lckfb/board/Kconfig
index 002adb84d79..2cf71f29b7c 100644
--- a/bsp/gd32/arm/gd32470z-lckfb/board/Kconfig
+++ b/bsp/gd32/arm/gd32470z-lckfb/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32F4xx
bool
default y
-config SOC_GD32470Z
+config SOC_GD32F470ZG
bool
select SOC_SERIES_GD32F4xx
select RT_USING_COMPONENTS_INIT
@@ -25,279 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enable UART0"
- default n
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
- config BSP_USING_UART1
- bool "Enable UART1"
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART1
+ bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 32
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 32
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 32
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 32
-
- config BSP_USING_UART6
- bool "Enable UART6"
- default n
-
- config BSP_UART6_RX_USING_DMA
- bool "Enable UART6 RX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_TX_USING_DMA
- bool "Enable UART6 TX DMA"
- depends on BSP_USING_UART6
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_RX_BUFSIZE
- int "Set UART6 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART6_TX_BUFSIZE
- int "Set UART6 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART6_DMA_PING_BUFSIZE
- int "Set UART6 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART6_RX_USING_DMA
- default 32
-
- config BSP_USING_UART7
- bool "Enable UART7"
- default n
-
- config BSP_UART7_RX_USING_DMA
- bool "Enable UART7 RX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_TX_USING_DMA
- bool "Enable UART7 TX DMA"
- depends on BSP_USING_UART7
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_RX_BUFSIZE
- int "Set UART7 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART7_TX_BUFSIZE
- int "Set UART7 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART7_DMA_PING_BUFSIZE
- int "Set UART7 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART7_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32470z-lckfb/project.ewp b/bsp/gd32/arm/gd32470z-lckfb/project.ewp
index cc2f18ae629..33327ec3e4a 100644
--- a/bsp/gd32/arm/gd32470z-lckfb/project.ewp
+++ b/bsp/gd32/arm/gd32470z-lckfb/project.ewp
@@ -168,14 +168,14 @@
CCDefines
USE_STDPERIPH_DRIVER
GD32F4XX
+ GD32F470
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
_DLIB_FILE_DESCRIPTOR
- GD32F470
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -306,28 +306,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\applications
- $PROJ_DIR$\board\ports
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\board\ports
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\drivers\include
@@ -1142,14 +1144,14 @@
CCDefines
NDEBUG
+ GD32F470
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
_DLIB_FILE_DESCRIPTOR
- GD32F470
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1281,28 +1283,30 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\applications
- $PROJ_DIR$\board\ports
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\board\ports
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\board
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Include
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Include
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\drivers\include
@@ -2048,9 +2052,6 @@
$PROJ_DIR$\board\board.c
-
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
@@ -2064,22 +2065,19 @@
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs.c
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
-
-
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
@@ -2088,7 +2086,10 @@
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
@@ -2142,23 +2143,26 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
libcpu
+
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common\atomic_arm.c
+
$PROJ_DIR$\..\..\..\..\libcpu\arm\common\div0.c
@@ -2175,33 +2179,39 @@
Libraries
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\IAR\startup_gd32f4xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Source\system_gd32f4xx.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
- $PROJ_DIR$\..\libraries\GD32F4xx_Firmware_Library\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32470z-lckfb/project.uvprojx b/bsp/gd32/arm/gd32470z-lckfb/project.uvprojx
index e517f09f51f..ca4bbb3b010 100644
--- a/bsp/gd32/arm/gd32470z-lckfb/project.uvprojx
+++ b/bsp/gd32/arm/gd32470z-lckfb/project.uvprojx
@@ -333,9 +333,9 @@
0
- __STDC_LIMIT_MACROS, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_ARMLIBC, GD32F470
+ USE_STDPERIPH_DRIVER, GD32F470, __STDC_LIMIT_MACROS, __RTTHREAD__, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_LIBC
- ..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\libcpu\arm\common;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\finsh;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;board;..\libraries\gd32_drivers;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\drivers\include;board\ports;..\..\..\..\libcpu\arm\cortex-m4;applications;..\..\..\..\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\drivers\include;.;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include
+ ..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\ipc;..\..\..\..\include;..\..\..\..\components\drivers\include;board;applications;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\net\utest;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\drivers\include;board\ports;.;..\..\..\..\components\drivers\phy;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\libc\posix\io\epoll;..\libraries\gd32_drivers\config
@@ -723,9 +723,9 @@
- dfs_posix.c
+ dfs.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs.c
@@ -742,9 +742,9 @@
- dfs.c
+ dfs_file.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
@@ -761,9 +761,9 @@
- dfs_file.c
+ dfs_posix.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
@@ -783,37 +783,37 @@
Finsh
- msh_file.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_file.c
+ ..\..\..\..\components\finsh\shell.c
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
- shell.c
+ cmd.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\cmd.c
- msh_parse.c
+ msh_file.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\msh_file.c
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
@@ -1109,9 +1109,9 @@
klibc
- kstring.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kstdio.c
@@ -1123,23 +1123,23 @@
- rt_vsscanf.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
+ kstring.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstring.c
- kstdio.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
diff --git a/bsp/gd32/arm/gd32470z-lckfb/rtconfig.h b/bsp/gd32/arm/gd32470z-lckfb/rtconfig.h
index 37dbe768525..bad10a43fb1 100644
--- a/bsp/gd32/arm/gd32470z-lckfb/rtconfig.h
+++ b/bsp/gd32/arm/gd32470z-lckfb/rtconfig.h
@@ -328,6 +328,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -412,7 +416,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32470Z
+#define SOC_GD32F470ZG
/* Onboard Peripheral Drivers */
@@ -420,7 +424,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32527I-eval/.config b/bsp/gd32/arm/gd32527I-eval/.config
index 4f3e737b50d..ad9d56ad49c 100644
--- a/bsp/gd32/arm/gd32527I-eval/.config
+++ b/bsp/gd32/arm/gd32527I-eval/.config
@@ -360,8 +360,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -643,6 +641,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -737,6 +738,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -899,6 +901,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -947,6 +955,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1417,7 +1426,7 @@ CONFIG_SOC_SERIES_GD32F5xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32527=y
+CONFIG_SOC_GD32F527IS=y
#
# Onboard Peripheral Drivers
@@ -1428,16 +1437,15 @@ CONFIG_SOC_GD32527=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF7"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
-# CONFIG_BSP_USING_UART6 is not set
-# CONFIG_BSP_USING_UART7 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32527I-eval/board/Kconfig b/bsp/gd32/arm/gd32527I-eval/board/Kconfig
index 32d0a579424..80604dcb9da 100644
--- a/bsp/gd32/arm/gd32527I-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32527I-eval/board/Kconfig
@@ -5,7 +5,7 @@ config SOC_SERIES_GD32F5xx
select ARCH_ARM_CORTEX_SECURE
default y
-config SOC_GD32527
+config SOC_GD32F527IS
bool
select SOC_SERIES_GD32F5xx
select RT_USING_COMPONENTS_INIT
@@ -26,263 +26,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 64
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
- default y
-
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 64
-
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_TX_USING_DMA
- bool "Enable UART2 TX DMA"
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART2_DMA_PING_BUFSIZE
- int "Set UART2 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
- default 64
-
- config BSP_UART2_RX_BUFSIZE
- int "Set UART2 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART2_TX_BUFSIZE
- int "Set UART2 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART2 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_TX_USING_DMA
- bool "Enable UART3 TX DMA"
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART3_DMA_PING_BUFSIZE
- int "Set UART3 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2 && BSP_UART3_RX_USING_DMA
- default 64
-
- config BSP_UART3_RX_BUFSIZE
- int "Set UART3 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART3_TX_BUFSIZE
- int "Set UART3 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART3 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_TX_USING_DMA
- bool "Enable UART4 TX DMA"
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART4_DMA_PING_BUFSIZE
- int "Set UART4 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
- default 64
-
- config BSP_UART4_RX_BUFSIZE
- int "Set UART4 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART4_TX_BUFSIZE
- int "Set UART4 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART4 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_TX_USING_DMA
- bool "Enable UART5 TX DMA"
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART5_DMA_PING_BUFSIZE
- int "Set UART5 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
- default 64
-
- config BSP_UART5_RX_BUFSIZE
- int "Set UART5 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART5_TX_BUFSIZE
- int "Set UART5 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART5 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART6
- bool "Enable UART6"
- default n
-
- config BSP_UART6_RX_USING_DMA
- bool "Enable UART6 RX DMA"
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_TX_USING_DMA
- bool "Enable UART6 TX DMA"
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART6_DMA_PING_BUFSIZE
- int "Set UART6 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2 && BSP_UART6_RX_USING_DMA
- default 64
-
- config BSP_UART6_RX_BUFSIZE
- int "Set UART6 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART6_TX_BUFSIZE
- int "Set UART6 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART6 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_USING_UART7
- bool "Enable UART7"
- default n
-
- config BSP_UART7_RX_USING_DMA
- bool "Enable UART7 RX DMA"
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_TX_USING_DMA
- bool "Enable UART7 TX DMA"
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2 && RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART7_DMA_PING_BUFSIZE
- int "Set UART7 RX DMA ping-pong buffer size"
- range 16 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2 && BSP_UART7_RX_USING_DMA
- default 64
-
- config BSP_UART7_RX_BUFSIZE
- int "Set UART7 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 128
-
- config BSP_UART7_TX_BUFSIZE
- int "Set UART7 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART7 && RT_USING_SERIAL_V2
- default 128
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32527I-eval/project.ewp b/bsp/gd32/arm/gd32527I-eval/project.ewp
index 23fddc06afc..8bd9caeb66a 100644
--- a/bsp/gd32/arm/gd32527I-eval/project.ewp
+++ b/bsp/gd32/arm/gd32527I-eval/project.ewp
@@ -169,6 +169,7 @@
USE_STDPERIPH_DRIVER
GD32F4XX
GD32F527
+ USE_STDPERIPH_DRIVER
__RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
@@ -305,25 +306,30 @@
CCIncludePath2
- $PROJ_DIR$\applications
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx
+ $PROJ_DIR$\.
+ $PROJ_DIR$\board
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m33
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
CCStdIncCheck
@@ -1138,6 +1144,7 @@
CCDefines
NDEBUG
GD32F527
+ USE_STDPERIPH_DRIVER
__RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
@@ -1275,25 +1282,30 @@
CCIncludePath2
- $PROJ_DIR$\applications
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx
+ $PROJ_DIR$\.
+ $PROJ_DIR$\board
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\.
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m33
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Include
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
CCStdIncCheck
@@ -2054,10 +2066,10 @@
$PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs.c
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs.c
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
@@ -2065,18 +2077,18 @@
$PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
-
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
-
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
+
Kernel
@@ -2132,16 +2144,16 @@
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
@@ -2168,6 +2180,39 @@
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m33\trustzone.c
+
+ Libraries
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\IAR\startup_gd32f5xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\system_gd32f5xx.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_dbg.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_dma.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_exti.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_gpio.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_misc.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_syscfg.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_usart.c
+
+
POSIX
diff --git a/bsp/gd32/arm/gd32527I-eval/project.uvprojx b/bsp/gd32/arm/gd32527I-eval/project.uvprojx
index 45737cc1d9c..60e8597b8e4 100644
--- a/bsp/gd32/arm/gd32527I-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32527I-eval/project.uvprojx
@@ -334,9 +334,9 @@
0
- __STDC_LIMIT_MACROS, RT_USING_LIBC, RT_USING_ARMLIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, GD32F527
+ __RTTHREAD__, RT_USING_LIBC, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, GD32F527, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND
- ..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\io\eventfd;.;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\finsh;..\..\..\..\components\libc\posix\ipc;applications;board;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\libcpu\arm\common;..\..\..\..\include;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\poll
+ ..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-cmsis-latest\GD32F5xx;.;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\finsh;applications;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\phy;..\libraries\gd32_drivers;board;..\..\..\..\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\components\net\utest;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\epoll;..\libraries\gd32_drivers\config
@@ -724,9 +724,9 @@
- dfs_file.c
+ dfs_posix.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
@@ -743,9 +743,9 @@
- dfs_fs.c
+ dfs_file.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c
@@ -762,9 +762,9 @@
- dfs_posix.c
+ dfs_fs.c
1
- ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c
+ ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c
@@ -791,30 +791,30 @@
- msh.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\shell.c
- msh_file.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh_file.c
+ ..\..\..\..\components\finsh\cmd.c
- shell.c
+ msh.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh.c
- cmd.c
+ msh_file.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_file.c
@@ -1110,16 +1110,16 @@
klibc
- rt_vsnprintf_tiny.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstring.c
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
@@ -1131,16 +1131,16 @@
- rt_vsscanf.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\kstdio.c
- kstring.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
@@ -1196,6 +1196,79 @@
+
+ Libraries
+
+
+ startup_gd32f5xx.s
+ 2
+ packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\ARM\startup_gd32f5xx.s
+
+
+
+
+ system_gd32f5xx.c
+ 1
+ packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\system_gd32f5xx.c
+
+
+
+
+ gd32f5xx_dbg.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_dbg.c
+
+
+
+
+ gd32f5xx_dma.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_dma.c
+
+
+
+
+ gd32f5xx_exti.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_exti.c
+
+
+
+
+ gd32f5xx_gpio.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_gpio.c
+
+
+
+
+ gd32f5xx_misc.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_misc.c
+
+
+
+
+ gd32f5xx_rcu.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_rcu.c
+
+
+
+
+ gd32f5xx_syscfg.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_syscfg.c
+
+
+
+
+ gd32f5xx_usart.c
+ 1
+ packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_usart.c
+
+
+
diff --git a/bsp/gd32/arm/gd32527I-eval/rtconfig.h b/bsp/gd32/arm/gd32527I-eval/rtconfig.h
index 02a2f6a09b3..e779587db45 100644
--- a/bsp/gd32/arm/gd32527I-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32527I-eval/rtconfig.h
@@ -325,6 +325,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -409,7 +413,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32527
+#define SOC_GD32F527IS
/* Onboard Peripheral Drivers */
@@ -417,7 +421,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32e230-lckfb/.config b/bsp/gd32/arm/gd32e230-lckfb/.config
index 1281cd8c1e4..27849666c05 100644
--- a/bsp/gd32/arm/gd32e230-lckfb/.config
+++ b/bsp/gd32/arm/gd32e230-lckfb/.config
@@ -327,8 +327,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -610,6 +608,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -704,6 +705,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -866,6 +868,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -914,6 +922,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1384,7 +1393,7 @@ CONFIG_SOC_SERIES_GD32E23x=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32E230C8T6=y
+CONFIG_SOC_GD32E230C8=y
#
# Onboard Peripheral Drivers
@@ -1398,10 +1407,15 @@ CONFIG_BSP_LED_PIN=45
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
-# CONFIG_BSP_UART0_TX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
# CONFIG_BSP_USING_UART1 is not set
+# CONFIG_BSP_USING_UART2 is not set
+# CONFIG_BSP_USING_UART3 is not set
# CONFIG_BSP_USING_SPI is not set
#
diff --git a/bsp/gd32/arm/gd32e230-lckfb/board/Kconfig b/bsp/gd32/arm/gd32e230-lckfb/board/Kconfig
index 356232d6246..81ab374ea0d 100644
--- a/bsp/gd32/arm/gd32e230-lckfb/board/Kconfig
+++ b/bsp/gd32/arm/gd32e230-lckfb/board/Kconfig
@@ -6,7 +6,7 @@ config SOC_SERIES_GD32E23x
bool
default y
-config SOC_GD32E230C8T6
+config SOC_GD32E230C8
bool
select SOC_SERIES_GD32E23x
select RT_USING_COMPONENTS_INIT
@@ -34,76 +34,200 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
- select RT_USING_SERIAL
default y
if BSP_USING_UART
- config BSP_USING_UART0
- bool "Enable UART0 for Console"
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
+ bool "Enable UART0"
default y
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_TX_USING_DMA
- bool "Enable UART0 TX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_UART0_RX_BUFSIZE
- int "Set UART0 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_TX_BUFSIZE
- int "Set UART0 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART0 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART0_DMA_PING_BUFSIZE
- int "Set UART0 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART0_RX_USING_DMA
- default 32
-
- config BSP_USING_UART1
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default n
-
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART2
+ bool "Enable UART2"
default n
-
- config BSP_UART1_TX_USING_DMA
- bool "Enable UART1 TX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART3
+ bool "Enable UART3"
default n
-
- config BSP_UART1_RX_BUFSIZE
- int "Set UART1 RX buffer size"
- range 64 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 64
-
- config BSP_UART1_TX_BUFSIZE
- int "Set UART1 TX buffer size"
- range 0 65535
- depends on BSP_USING_UART1 && RT_USING_SERIAL_V2
- default 0
-
- config BSP_UART1_DMA_PING_BUFSIZE
- int "Set UART1 RX DMA ping-pong buffer size"
- range 32 65535
- depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
- default 32
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32e230-lckfb/project.uvoptx b/bsp/gd32/arm/gd32e230-lckfb/project.uvoptx
new file mode 100644
index 00000000000..6714a9f7a2b
--- /dev/null
+++ b/bsp/gd32/arm/gd32e230-lckfb/project.uvoptx
@@ -0,0 +1,573 @@
+
+
+
+ 1.0
+
+ ### uVision Project, (C) Keil Software
+
+
+ *.c
+ *.s*; *.src; *.a*
+ *.obj; *.o
+ *.lib
+ *.txt; *.h; *.inc
+ *.plm
+ *.cpp
+ 0
+
+
+
+ 0
+ 0
+
+
+
+ GD32E230C_EVAL
+ 0x4
+ ARM-ADS
+
+ 12000000
+
+ 1
+ 1
+ 0
+ 1
+ 0
+
+
+ 1
+ 65535
+ 0
+ 0
+ 0
+
+
+ 79
+ 66
+ 8
+ .\list\
+
+
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+
+
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+
+
+ 1
+ 0
+ 1
+
+ 255
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 0
+ 1
+ 1
+ 0
+ 0
+ 1
+ 0
+ 0
+ 14
+
+
+
+
+
+
+
+
+
+
+ BIN\CMSIS_AGDI_V8M.DLL
+
+
+
+ 0
+ CMSIS_AGDI_V8M
+ -X"Any" -UAny -O206 -S0 -C0 -P00 -N00("ARM CoreSight SW-DP") -D00(0BF11477) -L00(0) -TO0 -TC10000000 -TP20 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0GD32E23x -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E23x.FLM)
+
+
+ 0
+ UL2V8M
+ -UAny -O206 -S0 -C0 -P00 -N00("ARM CoreSight SW-DP") -D00(0BF11477) -L00(0) -TO0 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0GD32E230.FLM -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E230.FLM)
+
+
+ 0
+ DLGUARM
+
+
+
+ 0
+ ARMRTXEVENTFLAGS
+ -L70 -Z18 -C0 -M0 -T1
+
+
+ 0
+ DLGTARM
+ (6010=-1,-1,-1,-1,0)(6018=-1,-1,-1,-1,0)(6019=-1,-1,-1,-1,0)(6008=-1,-1,-1,-1,0)(6009=-1,-1,-1,-1,0)(6014=-1,-1,-1,-1,0)(6015=-1,-1,-1,-1,0)(6003=-1,-1,-1,-1,0)(6000=-1,-1,-1,-1,0)
+
+
+ 0
+ ARMDBGFLAGS
+
+
+
+
+
+
+ 1
+ 0
+ 40015804
+ 0
+
+
+
+ 0
+
+
+ 0
+ 1
+ 1
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+ Application
+ 0
+ 0
+ 0
+ 0
+
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+ ..\main.c
+ main.c
+ 0
+ 0
+
+
+ 1
+ 2
+ 1
+ 0
+ 0
+ 0
+ ..\systick.c
+ systick.c
+ 0
+ 0
+
+
+ 1
+ 3
+ 1
+ 0
+ 0
+ 0
+ ..\gd32e23x_it.c
+ gd32e23x_it.c
+ 0
+ 0
+
+
+
+
+ CMSIS
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 4
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\system_gd32e23x.c
+ system_gd32e23x.c
+ 0
+ 0
+
+
+
+
+ GD32E23x_Peripherals
+ 0
+ 0
+ 0
+ 0
+
+ 3
+ 5
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_adc.c
+ gd32e23x_adc.c
+ 0
+ 0
+
+
+ 3
+ 6
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_cmp.c
+ gd32e23x_cmp.c
+ 0
+ 0
+
+
+ 3
+ 7
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_crc.c
+ gd32e23x_crc.c
+ 0
+ 0
+
+
+ 3
+ 8
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dbg.c
+ gd32e23x_dbg.c
+ 0
+ 0
+
+
+ 3
+ 9
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dma.c
+ gd32e23x_dma.c
+ 0
+ 0
+
+
+ 3
+ 10
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_exti.c
+ gd32e23x_exti.c
+ 0
+ 0
+
+
+ 3
+ 11
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fmc.c
+ gd32e23x_fmc.c
+ 0
+ 0
+
+
+ 3
+ 12
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fwdgt.c
+ gd32e23x_fwdgt.c
+ 0
+ 0
+
+
+ 3
+ 13
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_gpio.c
+ gd32e23x_gpio.c
+ 0
+ 0
+
+
+ 3
+ 14
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_i2c.c
+ gd32e23x_i2c.c
+ 0
+ 0
+
+
+ 3
+ 15
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_misc.c
+ gd32e23x_misc.c
+ 0
+ 0
+
+
+ 3
+ 16
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_pmu.c
+ gd32e23x_pmu.c
+ 0
+ 0
+
+
+ 3
+ 17
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rcu.c
+ gd32e23x_rcu.c
+ 0
+ 0
+
+
+ 3
+ 18
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rtc.c
+ gd32e23x_rtc.c
+ 0
+ 0
+
+
+ 3
+ 19
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_spi.c
+ gd32e23x_spi.c
+ 0
+ 0
+
+
+ 3
+ 20
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_syscfg.c
+ gd32e23x_syscfg.c
+ 0
+ 0
+
+
+ 3
+ 21
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_timer.c
+ gd32e23x_timer.c
+ 0
+ 0
+
+
+ 3
+ 22
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_usart.c
+ gd32e23x_usart.c
+ 0
+ 0
+
+
+ 3
+ 23
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_wwdgt.c
+ gd32e23x_wwdgt.c
+ 0
+ 0
+
+
+
+
+ GD32E230_EVAL
+ 0
+ 0
+ 0
+ 0
+
+ 4
+ 24
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\Utilities\gd32e230c_eval.c
+ gd32e230c_eval.c
+ 0
+ 0
+
+
+
+
+ Startup
+ 0
+ 0
+ 0
+ 0
+
+ 5
+ 25
+ 2
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\ARM\startup_gd32e23x.s
+ startup_gd32e23x.s
+ 0
+ 0
+
+
+
+
+ Doc
+ 0
+ 0
+ 0
+ 0
+
+ 6
+ 26
+ 5
+ 0
+ 0
+ 0
+ ..\readme.txt
+ readme.txt
+ 0
+ 0
+
+
+
+
+ ::CMSIS
+ 0
+ 0
+ 0
+ 1
+
+
+
diff --git a/bsp/gd32/arm/gd32e230-lckfb/project.uvprojx b/bsp/gd32/arm/gd32e230-lckfb/project.uvprojx
new file mode 100644
index 00000000000..3d9d2dea9fc
--- /dev/null
+++ b/bsp/gd32/arm/gd32e230-lckfb/project.uvprojx
@@ -0,0 +1,1148 @@
+
+
+ 2.1
+ ### uVision Project, (C) Keil Software
+
+
+ GD32E230C_EVAL
+ 0x4
+ ARM-ADS
+ 6120000::V6.12::.\ARMCLANG
+ 1
+
+
+ GD32E230C8
+ GigaDevice
+ GigaDevice.GD32E23x_DFP.1.0.0
+ http://gd32mcu.21ic.com/data/documents/yingyongruanjian/
+ IRAM(0x20000000,0x0002000) IROM(0x08000000,0x0010000) CPUTYPE("Cortex-M23") CLOCK(12000000) ELITTLE
+
+
+ UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32E230 -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E230.FLM))
+ 0
+ $$Device:GD32E230C8$Device\Include\gd32e230.h
+
+
+
+
+
+
+
+
+
+ $$Device:GD32E230C8$SVD\GD32E230.svd
+ 0
+ 0
+
+
+
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 1
+
+ .\output\
+ GD32E230C_EVAL
+ 1
+ 0
+ 0
+ 1
+ 1
+ .\list\
+ 1
+ 0
+ 0
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+ 0
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 3
+
+
+ 1
+
+
+
+
+
+
+ SARMV8M.DLL
+ -MPU
+ TCM.DLL
+ -pCM23
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 16
+
+
+
+
+ 1
+ 0
+ 0
+ 1
+ 1
+ 4098
+
+ 1
+ BIN\UL2V8M.DLL
+ "" ()
+
+
+
+
+ 0
+
+
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+ "Cortex-M23"
+
+ 0
+ 0
+ 0
+ 1
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 8
+ 1
+ 0
+ 0
+ 0
+ 3
+ 3
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x20000000
+ 0x2000
+
+
+ 1
+ 0x8000000
+ 0x10000
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x8000000
+ 0x10000
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x20000000
+ 0x2000
+
+
+ 0
+ 0x0
+ 0x0
+
+
+
+
+
+ 1
+ 1
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 3
+ 0
+ 0
+ 0
+ 0
+ 0
+ 3
+ 3
+ 1
+ 1
+ 0
+ 0
+ 0
+
+
+ RT_USING_ARMLIBC, RT_USING_LIBC, USE_STDPERIPH_DRIVER, GD32E23X, GD32E23X_HD, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, __STDC_LIMIT_MACROS
+
+ ..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\libcpu\arm\cortex-m23;..\..\..\..\components\drivers\smp_call;packages\gd32-arm-cmsis-latest\GD32E23x\GD\GD32E23x\Include;..\..\..\..\components\net\utest;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;packages\gd32-arm-cmsis-latest\GD32E23x;applications;board;..\..\..\..\include;.;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\phy;packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Include
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0x08000000
+ 0x20000000
+
+ .\output\Project.sct
+
+
+
+
+
+
+
+
+
+
+ Applications
+
+
+ main.c
+ 1
+ applications\main.c
+
+
+
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ cctype.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\cctype.c
+
+
+
+
+ cstdlib.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
+
+
+ cstring.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\cstring.c
+
+
+
+
+ ctime.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\ctime.c
+
+
+
+
+ cunistd.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
+
+
+ cwchar.c
+ 1
+ ..\..\..\..\components\libc\compilers\common\cwchar.c
+
+
+
+
+ DeviceDrivers
+
+
+ device.c
+ 1
+ ..\..\..\..\components\drivers\core\device.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ completion_comm.c
+ 1
+ ..\..\..\..\components\drivers\ipc\completion_comm.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ completion_up.c
+ 1
+ ..\..\..\..\components\drivers\ipc\completion_up.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ condvar.c
+ 1
+ ..\..\..\..\components\drivers\ipc\condvar.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\..\..\components\drivers\ipc\dataqueue.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ pipe.c
+ 1
+ ..\..\..\..\components\drivers\ipc\pipe.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\..\components\drivers\ipc\ringblk_buf.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\..\components\drivers\ipc\ringbuffer.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\..\..\components\drivers\ipc\waitqueue.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ workqueue.c
+ 1
+ ..\..\..\..\components\drivers\ipc\workqueue.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ dev_pin.c
+ 1
+ ..\..\..\..\components\drivers\pin\dev_pin.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ dev_serial.c
+ 1
+ ..\..\..\..\components\drivers\serial\dev_serial.c
+
+
+
+
+
+ __RT_IPC_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ Drivers
+
+
+ board.c
+ 1
+ board\board.c
+
+
+
+
+ drv_gpio.c
+ 1
+ ..\libraries\gd32_drivers\drv_gpio.c
+
+
+
+
+ drv_usart.c
+ 1
+ ..\libraries\gd32_drivers\drv_usart.c
+
+
+
+
+ Kernel
+
+
+ clock.c
+ 1
+ ..\..\..\..\src\clock.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ components.c
+ 1
+ ..\..\..\..\src\components.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ cpu_up.c
+ 1
+ ..\..\..\..\src\cpu_up.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ defunct.c
+ 1
+ ..\..\..\..\src\defunct.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\..\src\idle.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\..\src\ipc.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ irq.c
+ 1
+ ..\..\..\..\src\irq.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\..\src\kservice.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ mem.c
+ 1
+ ..\..\..\..\src\mem.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\..\src\mempool.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ object.c
+ 1
+ ..\..\..\..\src\object.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ scheduler_comm.c
+ 1
+ ..\..\..\..\src\scheduler_comm.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ scheduler_up.c
+ 1
+ ..\..\..\..\src\scheduler_up.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\..\src\thread.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ timer.c
+ 1
+ ..\..\..\..\src\timer.c
+
+
+
+
+
+ __RT_KERNEL_SOURCE__
+
+
+
+
+
+
+
+
+
+
+ klibc
+
+
+ rt_vsscanf.c
+ 1
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+
+
+
+
+ rt_vsnprintf_tiny.c
+ 1
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
+
+
+ kerrno.c
+ 1
+ ..\..\..\..\src\klibc\kerrno.c
+
+
+
+
+ kstdio.c
+ 1
+ ..\..\..\..\src\klibc\kstdio.c
+
+
+
+
+ kstring.c
+ 1
+ ..\..\..\..\src\klibc\kstring.c
+
+
+
+
+ libcpu
+
+
+ atomic_arm.c
+ 1
+ ..\..\..\..\libcpu\arm\common\atomic_arm.c
+
+
+
+
+ div0.c
+ 1
+ ..\..\..\..\libcpu\arm\common\div0.c
+
+
+
+
+ showmem.c
+ 1
+ ..\..\..\..\libcpu\arm\common\showmem.c
+
+
+
+
+ context_rvds.S
+ 2
+ ..\..\..\..\libcpu\arm\cortex-m23\context_rvds.S
+
+
+
+
+ cpuport.c
+ 1
+ ..\..\..\..\libcpu\arm\cortex-m23\cpuport.c
+
+
+
+
+ Libraries
+
+
+ startup_gd32e23x.s
+ 2
+ packages\gd32-arm-cmsis-latest\GD32E23x\GD\GD32E23x\Source\ARM\startup_gd32e23x.s
+
+
+
+
+ system_gd32e23x.c
+ 1
+ packages\gd32-arm-cmsis-latest\GD32E23x\GD\GD32E23x\Source\system_gd32e23x.c
+
+
+
+
+ gd32e23x_dma.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_dma.c
+
+
+
+
+ gd32e23x_exti.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_exti.c
+
+
+
+
+ gd32e23x_gpio.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_gpio.c
+
+
+
+
+ gd32e23x_misc.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_misc.c
+
+
+
+
+ gd32e23x_rcu.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_rcu.c
+
+
+
+
+ gd32e23x_syscfg.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_syscfg.c
+
+
+
+
+ gd32e23x_usart.c
+ 1
+ packages\gd32-arm-series-latest\GD32E23x\GD32E23x_standard_peripheral\Source\gd32e23x_usart.c
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bsp/gd32/arm/gd32e230-lckfb/rtconfig.h b/bsp/gd32/arm/gd32e230-lckfb/rtconfig.h
index e04ae956edb..fbf27842dba 100644
--- a/bsp/gd32/arm/gd32e230-lckfb/rtconfig.h
+++ b/bsp/gd32/arm/gd32e230-lckfb/rtconfig.h
@@ -302,6 +302,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -386,7 +390,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32E230C8T6
+#define SOC_GD32E230C8
/* Onboard Peripheral Drivers */
@@ -398,7 +402,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
/* I2C Configuration */
diff --git a/bsp/gd32/arm/gd32e230-lckfb/template.uvoptx b/bsp/gd32/arm/gd32e230-lckfb/template.uvoptx
new file mode 100644
index 00000000000..6714a9f7a2b
--- /dev/null
+++ b/bsp/gd32/arm/gd32e230-lckfb/template.uvoptx
@@ -0,0 +1,573 @@
+
+
+
+ 1.0
+
+ ### uVision Project, (C) Keil Software
+
+
+ *.c
+ *.s*; *.src; *.a*
+ *.obj; *.o
+ *.lib
+ *.txt; *.h; *.inc
+ *.plm
+ *.cpp
+ 0
+
+
+
+ 0
+ 0
+
+
+
+ GD32E230C_EVAL
+ 0x4
+ ARM-ADS
+
+ 12000000
+
+ 1
+ 1
+ 0
+ 1
+ 0
+
+
+ 1
+ 65535
+ 0
+ 0
+ 0
+
+
+ 79
+ 66
+ 8
+ .\list\
+
+
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+
+
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+
+
+ 1
+ 0
+ 1
+
+ 255
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 0
+ 1
+ 1
+ 0
+ 0
+ 1
+ 0
+ 0
+ 14
+
+
+
+
+
+
+
+
+
+
+ BIN\CMSIS_AGDI_V8M.DLL
+
+
+
+ 0
+ CMSIS_AGDI_V8M
+ -X"Any" -UAny -O206 -S0 -C0 -P00 -N00("ARM CoreSight SW-DP") -D00(0BF11477) -L00(0) -TO0 -TC10000000 -TP20 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0GD32E23x -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E23x.FLM)
+
+
+ 0
+ UL2V8M
+ -UAny -O206 -S0 -C0 -P00 -N00("ARM CoreSight SW-DP") -D00(0BF11477) -L00(0) -TO0 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0GD32E230.FLM -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E230.FLM)
+
+
+ 0
+ DLGUARM
+
+
+
+ 0
+ ARMRTXEVENTFLAGS
+ -L70 -Z18 -C0 -M0 -T1
+
+
+ 0
+ DLGTARM
+ (6010=-1,-1,-1,-1,0)(6018=-1,-1,-1,-1,0)(6019=-1,-1,-1,-1,0)(6008=-1,-1,-1,-1,0)(6009=-1,-1,-1,-1,0)(6014=-1,-1,-1,-1,0)(6015=-1,-1,-1,-1,0)(6003=-1,-1,-1,-1,0)(6000=-1,-1,-1,-1,0)
+
+
+ 0
+ ARMDBGFLAGS
+
+
+
+
+
+
+ 1
+ 0
+ 40015804
+ 0
+
+
+
+ 0
+
+
+ 0
+ 1
+ 1
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+ Application
+ 0
+ 0
+ 0
+ 0
+
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+ ..\main.c
+ main.c
+ 0
+ 0
+
+
+ 1
+ 2
+ 1
+ 0
+ 0
+ 0
+ ..\systick.c
+ systick.c
+ 0
+ 0
+
+
+ 1
+ 3
+ 1
+ 0
+ 0
+ 0
+ ..\gd32e23x_it.c
+ gd32e23x_it.c
+ 0
+ 0
+
+
+
+
+ CMSIS
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 4
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\system_gd32e23x.c
+ system_gd32e23x.c
+ 0
+ 0
+
+
+
+
+ GD32E23x_Peripherals
+ 0
+ 0
+ 0
+ 0
+
+ 3
+ 5
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_adc.c
+ gd32e23x_adc.c
+ 0
+ 0
+
+
+ 3
+ 6
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_cmp.c
+ gd32e23x_cmp.c
+ 0
+ 0
+
+
+ 3
+ 7
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_crc.c
+ gd32e23x_crc.c
+ 0
+ 0
+
+
+ 3
+ 8
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dbg.c
+ gd32e23x_dbg.c
+ 0
+ 0
+
+
+ 3
+ 9
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dma.c
+ gd32e23x_dma.c
+ 0
+ 0
+
+
+ 3
+ 10
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_exti.c
+ gd32e23x_exti.c
+ 0
+ 0
+
+
+ 3
+ 11
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fmc.c
+ gd32e23x_fmc.c
+ 0
+ 0
+
+
+ 3
+ 12
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fwdgt.c
+ gd32e23x_fwdgt.c
+ 0
+ 0
+
+
+ 3
+ 13
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_gpio.c
+ gd32e23x_gpio.c
+ 0
+ 0
+
+
+ 3
+ 14
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_i2c.c
+ gd32e23x_i2c.c
+ 0
+ 0
+
+
+ 3
+ 15
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_misc.c
+ gd32e23x_misc.c
+ 0
+ 0
+
+
+ 3
+ 16
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_pmu.c
+ gd32e23x_pmu.c
+ 0
+ 0
+
+
+ 3
+ 17
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rcu.c
+ gd32e23x_rcu.c
+ 0
+ 0
+
+
+ 3
+ 18
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rtc.c
+ gd32e23x_rtc.c
+ 0
+ 0
+
+
+ 3
+ 19
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_spi.c
+ gd32e23x_spi.c
+ 0
+ 0
+
+
+ 3
+ 20
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_syscfg.c
+ gd32e23x_syscfg.c
+ 0
+ 0
+
+
+ 3
+ 21
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_timer.c
+ gd32e23x_timer.c
+ 0
+ 0
+
+
+ 3
+ 22
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_usart.c
+ gd32e23x_usart.c
+ 0
+ 0
+
+
+ 3
+ 23
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_wwdgt.c
+ gd32e23x_wwdgt.c
+ 0
+ 0
+
+
+
+
+ GD32E230_EVAL
+ 0
+ 0
+ 0
+ 0
+
+ 4
+ 24
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\Utilities\gd32e230c_eval.c
+ gd32e230c_eval.c
+ 0
+ 0
+
+
+
+
+ Startup
+ 0
+ 0
+ 0
+ 0
+
+ 5
+ 25
+ 2
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\ARM\startup_gd32e23x.s
+ startup_gd32e23x.s
+ 0
+ 0
+
+
+
+
+ Doc
+ 0
+ 0
+ 0
+ 0
+
+ 6
+ 26
+ 5
+ 0
+ 0
+ 0
+ ..\readme.txt
+ readme.txt
+ 0
+ 0
+
+
+
+
+ ::CMSIS
+ 0
+ 0
+ 0
+ 1
+
+
+
diff --git a/bsp/gd32/arm/gd32e230-lckfb/template.uvprojx b/bsp/gd32/arm/gd32e230-lckfb/template.uvprojx
new file mode 100644
index 00000000000..96b4f822d46
--- /dev/null
+++ b/bsp/gd32/arm/gd32e230-lckfb/template.uvprojx
@@ -0,0 +1,562 @@
+
+
+
+ 2.1
+
+ ### uVision Project, (C) Keil Software
+
+
+
+ GD32E230C_EVAL
+ 0x4
+ ARM-ADS
+ 6120000::V6.12::.\ARMCLANG
+ 1
+
+
+ GD32E230C8
+ GigaDevice
+ GigaDevice.GD32E23x_DFP.1.0.0
+ http://gd32mcu.21ic.com/data/documents/yingyongruanjian/
+ IRAM(0x20000000,0x0002000) IROM(0x08000000,0x0010000) CPUTYPE("Cortex-M23") CLOCK(12000000) ELITTLE
+
+
+ UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32E230 -FS08000000 -FL010000 -FP0($$Device:GD32E230C8$Flash\GD32E230.FLM))
+ 0
+ $$Device:GD32E230C8$Device\Include\gd32e230.h
+
+
+
+
+
+
+
+
+
+ $$Device:GD32E230C8$SVD\GD32E230.svd
+ 0
+ 0
+
+
+
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 1
+
+ .\output\
+ GD32E230C_EVAL
+ 1
+ 0
+ 0
+ 1
+ 1
+ .\list\
+ 1
+ 0
+ 0
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+ 0
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 3
+
+
+ 1
+
+
+
+
+
+
+ SARMV8M.DLL
+ -MPU
+ TCM.DLL
+ -pCM23
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 16
+
+
+
+
+ 1
+ 0
+ 0
+ 1
+ 1
+ 4098
+
+ 1
+ BIN\UL2V8M.DLL
+ "" ()
+
+
+
+
+ 0
+
+
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+ "Cortex-M23"
+
+ 0
+ 0
+ 0
+ 1
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 8
+ 1
+ 0
+ 0
+ 0
+ 3
+ 3
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x20000000
+ 0x2000
+
+
+ 1
+ 0x8000000
+ 0x10000
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x8000000
+ 0x10000
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x20000000
+ 0x2000
+
+
+ 0
+ 0x0
+ 0x0
+
+
+
+
+
+ 1
+ 1
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 3
+ 0
+ 0
+ 0
+ 0
+ 0
+ 3
+ 3
+ 1
+ 1
+ 0
+ 0
+ 0
+
+
+ GD32E230
+
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Include;..\..\..\Utilities;..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Include;..\
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0x08000000
+ 0x20000000
+
+ .\output\Project.sct
+
+
+
+
+
+
+
+
+
+
+ Application
+
+
+ main.c
+ 1
+ ..\main.c
+
+
+ systick.c
+ 1
+ ..\systick.c
+
+
+ gd32e23x_it.c
+ 1
+ ..\gd32e23x_it.c
+
+
+
+
+ CMSIS
+
+
+ system_gd32e23x.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\system_gd32e23x.c
+
+
+
+
+ GD32E23x_Peripherals
+
+
+ gd32e23x_adc.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_adc.c
+
+
+ gd32e23x_cmp.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_cmp.c
+
+
+ gd32e23x_crc.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_crc.c
+
+
+ gd32e23x_dbg.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dbg.c
+
+
+ gd32e23x_dma.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_dma.c
+
+
+ gd32e23x_exti.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_exti.c
+
+
+ gd32e23x_fmc.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fmc.c
+
+
+ gd32e23x_fwdgt.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_fwdgt.c
+
+
+ gd32e23x_gpio.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_gpio.c
+
+
+ gd32e23x_i2c.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_i2c.c
+
+
+ gd32e23x_misc.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_misc.c
+
+
+ gd32e23x_pmu.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_pmu.c
+
+
+ gd32e23x_rcu.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rcu.c
+
+
+ gd32e23x_rtc.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_rtc.c
+
+
+ gd32e23x_spi.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_spi.c
+
+
+ gd32e23x_syscfg.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_syscfg.c
+
+
+ gd32e23x_timer.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_timer.c
+
+
+ gd32e23x_usart.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_usart.c
+
+
+ gd32e23x_wwdgt.c
+ 1
+ ..\..\..\..\GD32E23x_Firmware_Library\GD32E23x_standard_peripheral\Source\gd32e23x_wwdgt.c
+
+
+
+
+ GD32E230_EVAL
+
+
+ gd32e230c_eval.c
+ 1
+ ..\..\..\Utilities\gd32e230c_eval.c
+
+
+
+
+ Startup
+
+
+ startup_gd32e23x.s
+ 2
+ ..\..\..\..\GD32E23x_Firmware_Library\CMSIS\GD\GD32E23x\Source\ARM\startup_gd32e23x.s
+
+
+
+
+ Doc
+
+
+ readme.txt
+ 5
+ ..\readme.txt
+
+
+
+
+ ::CMSIS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bsp/gd32/arm/gd32e503v-eval/.config b/bsp/gd32/arm/gd32e503v-eval/.config
index 37020cf1001..3de349b3d27 100644
--- a/bsp/gd32/arm/gd32e503v-eval/.config
+++ b/bsp/gd32/arm/gd32e503v-eval/.config
@@ -340,8 +340,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -623,6 +621,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -717,6 +718,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -879,6 +881,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -927,6 +935,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1395,12 +1404,7 @@ CONFIG_SOC_SERIES_GD32E50x=y
#
# Hardware Drivers Config
#
-
-#
-# SOC Series
-#
-CONFIG_SOC_GD32503V=y
-# end of SOC Series
+CONFIG_SOC_GD32E503VE=y
#
# Onboard Peripheral Drivers
@@ -1411,13 +1415,15 @@ CONFIG_SOC_GD32503V=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF1"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
-# CONFIG_BSP_USING_UART4 is not set
-# CONFIG_BSP_USING_UART5 is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
diff --git a/bsp/gd32/arm/gd32e503v-eval/board/Kconfig b/bsp/gd32/arm/gd32e503v-eval/board/Kconfig
index 62280643b5b..57a6518e9ae 100644
--- a/bsp/gd32/arm/gd32e503v-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32e503v-eval/board/Kconfig
@@ -1,22 +1,15 @@
menu "Hardware Drivers Config"
-
-menu "SOC Series"
- menuconfig SOC_SERIES_GD32E50x
- bool "Enable GD32E50x"
- default y
- select SERIES_GD32E50x
- if SOC_SERIES_GD32E50x
- config SOC_GD32503V
- bool "Enable GD32503V"
- select GD32503V
- select RT_USING_COMPONENTS_INIT
- select RT_USING_USER_MAIN
- default y
- endif
-
-endmenu
+config SOC_SERIES_GD32E50x
+ bool
+ default y
+config SOC_GD32E503VE
+ bool
+ select SOC_SERIES_GD32E50x
+ select RT_USING_COMPONENTS_INIT
+ select RT_USING_USER_MAIN
+ default y
menu "Onboard Peripheral Drivers"
@@ -32,67 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
- default n
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
- bool "Enable UART1"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF1"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
+ menuconfig BSP_USING_UART1
+ bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART4
- bool "Enable UART4"
- default n
-
- config BSP_UART4_RX_USING_DMA
- bool "Enable UART4 RX DMA"
- depends on BSP_USING_UART4
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART5
- bool "Enable UART5"
- default n
-
- config BSP_UART5_RX_USING_DMA
- bool "Enable UART5 RX DMA"
- depends on BSP_USING_UART5
- select RT_SERIAL_USING_DMA
- default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PA8"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PA9"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_SPI
diff --git a/bsp/gd32/arm/gd32e503v-eval/project.ewp b/bsp/gd32/arm/gd32e503v-eval/project.ewp
index aca2f64408c..bb5eee17100 100644
--- a/bsp/gd32/arm/gd32e503v-eval/project.ewp
+++ b/bsp/gd32/arm/gd32e503v-eval/project.ewp
@@ -220,15 +220,14 @@
CCDefines
+ GD32E50X
+ GD32E50X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32E50X
- GD32E50X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -356,27 +355,29 @@
CCIncludePath2
- $PROJ_DIR$\.
- $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\.
CCStdIncCheck
@@ -1303,15 +1304,14 @@
CCDefines
NDEBUG
+ GD32E50X
+ GD32E50X_HD
+ USE_STDPERIPH_DRIVER
+ __RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
RT_USING_LIBC
_DLIB_ADD_EXTRA_SYMBOLS=0
- GD32E50X
- GD32E50X_HD
- __RTTHREAD__
- USE_STDPERIPH_DRIVER
- USE_STDPERIPH_DRIVER
__RT_IPC_SOURCE__
__RT_KERNEL_SOURCE__
@@ -1439,27 +1439,29 @@
CCIncludePath2
- $PROJ_DIR$\.
- $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32E50x
+ $PROJ_DIR$\board
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m4
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\.
CCStdIncCheck
@@ -2273,6 +2275,9 @@
Finsh
+
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+
$PROJ_DIR$\..\..\..\..\components\finsh\msh.c
@@ -2282,9 +2287,6 @@
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
-
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
-
Kernel
@@ -2336,11 +2338,14 @@
klibc
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
@@ -2348,9 +2353,6 @@
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
-
libcpu
@@ -2394,6 +2396,9 @@
POSIX
+
+ utc_UTest
+
utestcases
diff --git a/bsp/gd32/arm/gd32e503v-eval/project.uvoptx b/bsp/gd32/arm/gd32e503v-eval/project.uvoptx
index 0d61125bfdd..9fdf76faf38 100644
--- a/bsp/gd32/arm/gd32e503v-eval/project.uvoptx
+++ b/bsp/gd32/arm/gd32e503v-eval/project.uvoptx
@@ -174,786 +174,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Compiler
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
- syscall_mem.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\armlibc\syscalls.c
- syscalls.c
- 0
- 0
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cctype.c
- cctype.c
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstdlib.c
- cstdlib.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cstring.c
- cstring.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\ctime.c
- ctime.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cunistd.c
- cunistd.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\..\..\components\libc\compilers\common\cwchar.c
- cwchar.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\core\device.c
- device.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_comm.c
- completion_comm.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\completion_up.c
- completion_up.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\condvar.c
- condvar.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\pipe.c
- pipe.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\ipc\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\pin\dev_pin.c
- dev_pin.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\..\components\drivers\serial\dev_serial.c
- dev_serial.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 4
- 22
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 4
- 24
- 1
- 0
- 0
- 0
- ..\libraries\gd32_drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 6
- 29
- 1
- 0
- 0
- 0
- ..\..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 6
- 30
- 1
- 0
- 0
- 0
- ..\..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\..\..\src\cpu_up.c
- cpu_up.c
- 0
- 0
-
-
- 6
- 32
- 1
- 0
- 0
- 0
- ..\..\..\..\src\defunct.c
- defunct.c
- 0
- 0
-
-
- 6
- 33
- 1
- 0
- 0
- 0
- ..\..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 6
- 34
- 1
- 0
- 0
- 0
- ..\..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 6
- 35
- 1
- 0
- 0
- 0
- ..\..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 6
- 36
- 1
- 0
- 0
- 0
- ..\..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_comm.c
- scheduler_comm.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\..\src\scheduler_up.c
- scheduler_up.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 6
- 43
- 1
- 0
- 0
- 0
- ..\..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- klibc
- 0
- 0
- 0
- 0
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
- 0
- 0
-
-
-
-
- libcpu
- 0
- 0
- 0
- 0
-
- 8
- 49
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 8
- 50
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 8
- 51
- 2
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 8
- 52
- 1
- 0
- 0
- 0
- ..\..\..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
-
-
- Libraries
- 0
- 0
- 0
- 0
-
- 9
- 53
- 2
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Source\ARM\startup_gd32e50x_hd.s
- startup_gd32e50x_hd.s
- 0
- 0
-
-
- 9
- 54
- 1
- 0
- 0
- 0
- packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Source\system_gd32e50x.c
- system_gd32e50x.c
- 0
- 0
-
-
- 9
- 55
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_exti.c
- gd32e50x_exti.c
- 0
- 0
-
-
- 9
- 56
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_gpio.c
- gd32e50x_gpio.c
- 0
- 0
-
-
- 9
- 57
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_misc.c
- gd32e50x_misc.c
- 0
- 0
-
-
- 9
- 58
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_rcu.c
- gd32e50x_rcu.c
- 0
- 0
-
-
- 9
- 59
- 1
- 0
- 0
- 0
- packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_usart.c
- gd32e50x_usart.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32/arm/gd32e503v-eval/project.uvprojx b/bsp/gd32/arm/gd32e503v-eval/project.uvprojx
index ad00aabf6f5..969e6766336 100644
--- a/bsp/gd32/arm/gd32e503v-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32e503v-eval/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
0x4
ARM-ADS
- 6220000::V6.22::ARMCLANG
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
1
GD32E503VE
GigaDevice
- GigaDevice.GD32E50x_DFP.1.3.2
+ GigaDevice.GD32E50x_DFP.1.5.0
https://gd32mcu.com/data/documents/pack/
IRAM(0x20000000,0x20000) IROM(0x08000000,0x080000) CPUTYPE("Cortex-M33") FPU3(SFPU) DSP CLOCK(12000000) ELITTLE
-
-
+
+
UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32E50x_512 -FS08000000 -FL080000 -FP0($$Device:GD32E503VE$Flash\GD32E50x_512.FLM))
0
$$Device:GD32E503VE$Device\Include\gd32e50x.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32E503VE$SVD\GD32E50x_HD.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +59,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,8 +69,8 @@
0
0
-
-
+
+
0
0
0
@@ -83,14 +80,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -104,15 +101,15 @@
0
0
3
-
-
+
+
1
-
-
-
-
+
+
+
+
SARMV8M.DLL
-MPU
TCM.DLL
@@ -138,11 +135,11 @@
1
BIN\UL2V8M.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -175,7 +172,7 @@
0
0
"Cortex-M33"
-
+
0
0
0
@@ -310,7 +307,7 @@
0x0
-
+
1
@@ -337,10 +334,10 @@
0
0
-
- GD32E50X, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, RT_USING_ARMLIBC, GD32E50X_HD, __STDC_LIMIT_MACROS, RT_USING_LIBC
-
- .;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;board;packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Include;applications;packages\gd32-arm-cmsis-latest\GD32E50x;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\include;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include
+
+ __RTTHREAD__, GD32E50X, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, RT_USING_LIBC, GD32E50X_HD, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER
+
+ ..\..\..\..\components\drivers\include;..\..\..\..\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\phy;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32E50x;packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Include;packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Include;..\libraries\gd32_drivers\config;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\net\utest;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\finsh;board;..\..\..\..\components\drivers\include;.;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;applications;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\libcpu\arm\common
@@ -355,10 +352,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -370,13 +367,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -399,36 +396,50 @@
1
..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
syscalls.c
1
..\..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
cctype.c
1
..\..\..\..\components\libc\compilers\common\cctype.c
+
+
cstdlib.c
1
..\..\..\..\components\libc\compilers\common\cstdlib.c
+
+
cstring.c
1
..\..\..\..\components\libc\compilers\common\cstring.c
+
+
ctime.c
1
..\..\..\..\components\libc\compilers\common\ctime.c
+
+
cunistd.c
1
..\..\..\..\components\libc\compilers\common\cunistd.c
+
+
cwchar.c
1
@@ -444,668 +455,222 @@
1
..\..\..\..\components\drivers\core\device.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_comm.c
1
..\..\..\..\components\drivers\ipc\completion_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
completion_up.c
1
..\..\..\..\components\drivers\ipc\completion_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
condvar.c
1
..\..\..\..\components\drivers\ipc\condvar.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dataqueue.c
1
..\..\..\..\components\drivers\ipc\dataqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
pipe.c
1
..\..\..\..\components\drivers\ipc\pipe.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringblk_buf.c
1
..\..\..\..\components\drivers\ipc\ringblk_buf.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
ringbuffer.c
1
..\..\..\..\components\drivers\ipc\ringbuffer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
waitqueue.c
1
..\..\..\..\components\drivers\ipc\waitqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
workqueue.c
1
..\..\..\..\components\drivers\ipc\workqueue.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_pin.c
1
..\..\..\..\components\drivers\pin\dev_pin.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
+
+
dev_serial.c
1
..\..\..\..\components\drivers\serial\dev_serial.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_IPC_SOURCE__
-
+
@@ -1121,11 +686,15 @@
1
board\board.c
+
+
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
+
+
drv_usart.c
1
@@ -1137,24 +706,30 @@
Finsh
- shell.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh_parse.c
+
+
- msh.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\cmd.c
+
+
- msh_parse.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\shell.c
+
+
- cmd.c
+ msh.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh.c
@@ -1166,836 +741,279 @@
1
..\..\..\..\src\clock.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
components.c
1
..\..\..\..\src\components.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
cpu_up.c
1
..\..\..\..\src\cpu_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
defunct.c
1
..\..\..\..\src\defunct.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
idle.c
1
..\..\..\..\src\idle.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
ipc.c
1
..\..\..\..\src\ipc.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
irq.c
1
..\..\..\..\src\irq.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
kservice.c
1
..\..\..\..\src\kservice.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mem.c
1
..\..\..\..\src\mem.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
mempool.c
1
..\..\..\..\src\mempool.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
object.c
1
..\..\..\..\src\object.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_comm.c
1
..\..\..\..\src\scheduler_comm.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
scheduler_up.c
1
..\..\..\..\src\scheduler_up.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
thread.c
1
..\..\..\..\src\thread.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
+
+
timer.c
1
..\..\..\..\src\timer.c
-
- 2
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 2
- 0
- 2
- 2
- 2
- 2
- 2
- 0
- 0
- 2
- 2
- 2
- 2
- 2
__RT_KERNEL_SOURCE__
-
+
@@ -2007,29 +1025,37 @@
klibc
- kstring.c
- 1
- ..\..\..\..\src\klibc\kstring.c
-
-
- kstdio.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
rt_vsscanf.c
1
..\..\..\..\src\klibc\rt_vsscanf.c
+
+
kerrno.c
1
..\..\..\..\src\klibc\kerrno.c
+
+
- rt_vsnprintf_tiny.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstdio.c
+
+
+
+
+ kstring.c
+ 1
+ ..\..\..\..\src\klibc\kstring.c
@@ -2041,16 +1067,22 @@
1
..\..\..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
..\..\..\..\libcpu\arm\common\showmem.c
+
+
context_rvds.S
2
..\..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
cpuport.c
1
@@ -2066,31 +1098,43 @@
2
packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Source\ARM\startup_gd32e50x_hd.s
+
+
system_gd32e50x.c
1
packages\gd32-arm-cmsis-latest\GD32E50x\GD\GD32E50x\Source\system_gd32e50x.c
+
+
gd32e50x_exti.c
1
packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_exti.c
+
+
gd32e50x_gpio.c
1
packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_gpio.c
+
+
gd32e50x_misc.c
1
packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_misc.c
+
+
gd32e50x_rcu.c
1
packages\gd32-arm-series-latest\GD32E50x\GD32E50x_standard_peripheral\Source\gd32e50x_rcu.c
+
+
gd32e50x_usart.c
1
@@ -2098,26 +1142,21 @@
-
- ::CMSIS
-
-
-
+
-
+
-
+
-
+
-
@@ -2127,5 +1166,4 @@
-
diff --git a/bsp/gd32/arm/gd32e503v-eval/rtconfig.h b/bsp/gd32/arm/gd32e503v-eval/rtconfig.h
index a0ba5890855..ae20f2445fc 100644
--- a/bsp/gd32/arm/gd32e503v-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32e503v-eval/rtconfig.h
@@ -316,6 +316,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -400,10 +404,7 @@
/* Hardware Drivers Config */
-/* SOC Series */
-
-#define SOC_GD32503V
-/* end of SOC Series */
+#define SOC_GD32E503VE
/* Onboard Peripheral Drivers */
@@ -411,7 +412,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF1"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32h759i-eval/.config b/bsp/gd32/arm/gd32h759i-eval/.config
index 79c32576afc..5ffba733e07 100644
--- a/bsp/gd32/arm/gd32h759i-eval/.config
+++ b/bsp/gd32/arm/gd32h759i-eval/.config
@@ -368,8 +368,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -653,6 +651,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -747,6 +748,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -909,6 +911,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -957,6 +965,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1427,7 +1436,7 @@ CONFIG_SOC_SERIES_GD32H7xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32H759I=y
+CONFIG_SOC_GD32H759IM=y
#
# Onboard Peripheral Drivers
@@ -1438,8 +1447,12 @@ CONFIG_SOC_GD32H759I=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PA9"
+CONFIG_BSP_UART0_RX_PIN="PA10"
+CONFIG_BSP_UART0_AFIO="AF7"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
diff --git a/bsp/gd32/arm/gd32h759i-eval/board/Kconfig b/bsp/gd32/arm/gd32h759i-eval/board/Kconfig
index 0ee1c1d6cc4..d6597663d3c 100644
--- a/bsp/gd32/arm/gd32h759i-eval/board/Kconfig
+++ b/bsp/gd32/arm/gd32h759i-eval/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32H7xx
bool
default y
-config SOC_GD32H759I
+config SOC_GD32H759IM
bool
select SOC_SERIES_GD32H7xx
select RT_USING_COMPONENTS_INIT
@@ -25,48 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default y
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PA9"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PA10"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_USING_UART1
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
default n
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_USING_UART2
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
- config BSP_USING_UART3
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_I2C
diff --git a/bsp/gd32/arm/gd32h759i-eval/project.ewp b/bsp/gd32/arm/gd32h759i-eval/project.ewp
index cbcdc3fdf47..834f25fa86a 100644
--- a/bsp/gd32/arm/gd32h759i-eval/project.ewp
+++ b/bsp/gd32/arm/gd32h759i-eval/project.ewp
@@ -225,6 +225,7 @@
CCDefines
GD32H7XX
+ USE_STDPERIPH_DRIVER
__RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
@@ -358,26 +359,31 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Include
CCStdIncCheck
@@ -1305,6 +1311,7 @@
CCDefines
GD32H7XX
+ USE_STDPERIPH_DRIVER
__RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
@@ -1438,26 +1445,31 @@
CCIncludePath2
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\libraries\gd32_drivers
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\applications
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
+ $PROJ_DIR$\..\..\..\..\components\net\utest
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\..\..\..\..\libcpu\arm\common
+ $PROJ_DIR$\..\..\..\..\components\drivers\include
+ $PROJ_DIR$\..\..\..\..\components\finsh
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Include
+ $PROJ_DIR$\..\..\..\..\components\drivers\phy
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
+ $PROJ_DIR$\..\..\..\..\include
$PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Include
CCStdIncCheck
@@ -2295,19 +2307,19 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
- $PROJ_DIR$\..\..\..\..\components\finsh\shell.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
@@ -2361,10 +2373,7 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
-
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
$PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
@@ -2373,7 +2382,10 @@
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
@@ -2397,6 +2409,42 @@
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7\cpuport.c
+
+ Libraries
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\IAR\startup_gd32h7xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
POSIX
diff --git a/bsp/gd32/arm/gd32h759i-eval/project.uvprojx b/bsp/gd32/arm/gd32h759i-eval/project.uvprojx
index d6da3fdde35..4b84629b2a4 100644
--- a/bsp/gd32/arm/gd32h759i-eval/project.uvprojx
+++ b/bsp/gd32/arm/gd32h759i-eval/project.uvprojx
@@ -335,9 +335,9 @@
0
- GD32H7XX, RT_USING_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, RT_USING_ARMLIBC
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, __STDC_LIMIT_MACROS, GD32H7XX, RT_USING_ARMLIBC, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- ..\..\..\..\libcpu\arm\cortex-m7;.;..\..\..\..\components\drivers\phy;..\..\..\..\components\dfs\dfs_v1\filesystems\devfs;..\..\..\..\components\libc\posix\io\eventfd;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\common;board;..\..\..\..\components\drivers\include;applications;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\finsh;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\posix\ipc;..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll
+ ..\..\..\..\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\libcpu\arm\cortex-m7;..\libraries\gd32_drivers;packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Include;..\..\..\..\components\finsh;applications;board;..\..\..\..\components\drivers\phy;..\libraries\gd32_drivers\config;..\..\..\..\components\net\utest;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\dfs\dfs_v1\filesystems\devfs;..\..\..\..\libcpu\arm\common;packages\gd32-arm-cmsis-latest\GD32H7xx;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\libc\posix\io\eventfd;.;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include
@@ -861,23 +861,23 @@
Finsh
- cmd.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
+ msh_file.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\msh_file.c
- msh.c
+ cmd.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\cmd.c
@@ -889,9 +889,9 @@
- msh_file.c
+ msh.c
1
- ..\..\..\..\components\finsh\msh_file.c
+ ..\..\..\..\components\finsh\msh.c
@@ -1187,16 +1187,16 @@
klibc
- rt_vsnprintf_tiny.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstdio.c
- kerrno.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
@@ -1208,16 +1208,16 @@
- rt_vsscanf.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- kstdio.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\kerrno.c
@@ -1266,6 +1266,86 @@
+
+ Libraries
+
+
+ startup_gd32h7xx.s
+ 2
+ packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\ARM\startup_gd32h7xx.s
+
+
+
+
+ system_gd32h7xx.c
+ 1
+ packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+
+
+ gd32h7xx_dma.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+
+
+ gd32h7xx_exti.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+
+
+ gd32h7xx_gpio.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+
+
+ gd32h7xx_i2c.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+
+
+
+
+ gd32h7xx_misc.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+
+
+ gd32h7xx_pmu.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+
+
+ gd32h7xx_rcu.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+
+
+ gd32h7xx_syscfg.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+
+
+ gd32h7xx_usart.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
+
diff --git a/bsp/gd32/arm/gd32h759i-eval/rtconfig.h b/bsp/gd32/arm/gd32h759i-eval/rtconfig.h
index 028442c617a..378c951c9c1 100644
--- a/bsp/gd32/arm/gd32h759i-eval/rtconfig.h
+++ b/bsp/gd32/arm/gd32h759i-eval/rtconfig.h
@@ -331,6 +331,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -415,7 +419,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32H759I
+#define SOC_GD32H759IM
/* Onboard Peripheral Drivers */
@@ -423,7 +427,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PA9"
+#define BSP_UART0_RX_PIN "PA10"
+#define BSP_UART0_AFIO "AF7"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32h759i-start/.config b/bsp/gd32/arm/gd32h759i-start/.config
index 8d683093cbf..a746a6e2e74 100644
--- a/bsp/gd32/arm/gd32h759i-start/.config
+++ b/bsp/gd32/arm/gd32h759i-start/.config
@@ -364,8 +364,6 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_RT_USING_RT_LINK is not set
# end of Utilities
-# CONFIG_RT_USING_VBUS is not set
-
#
# Using USB legacy version
#
@@ -649,6 +647,9 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
# CONFIG_PKG_USING_THREAD_METRIC is not set
+# CONFIG_PKG_USING_UORB is not set
+# CONFIG_PKG_USING_RT_TUNNEL is not set
+# CONFIG_PKG_USING_VIRTUAL_TERMINAL is not set
# end of tools packages
#
@@ -743,6 +744,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
+# CONFIG_PKG_USING_CHERRYECAT is not set
# end of system packages
#
@@ -905,6 +907,12 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_PATH="/packages/peripherals/hal-sdk/gd32/gd32-
CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION=y
CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# end of GD32 Drivers
+
+#
+# HPMicro SDK
+#
+# CONFIG_PKG_USING_HPM_SDK is not set
+# end of HPMicro SDK
# end of HAL & SDK Drivers
#
@@ -953,6 +961,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_MLX90393 is not set
# CONFIG_PKG_USING_MLX90392 is not set
# CONFIG_PKG_USING_MLX90394 is not set
+# CONFIG_PKG_USING_MLX90396 is not set
# CONFIG_PKG_USING_MLX90397 is not set
# CONFIG_PKG_USING_MS5611 is not set
# CONFIG_PKG_USING_MAX31865 is not set
@@ -1423,7 +1432,7 @@ CONFIG_SOC_SERIES_GD32H7xx=y
#
# Hardware Drivers Config
#
-CONFIG_SOC_GD32H759I=y
+CONFIG_SOC_GD32H759IM=y
#
# Onboard Peripheral Drivers
@@ -1434,8 +1443,12 @@ CONFIG_SOC_GD32H759I=y
#
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
+CONFIG_BSP_USING_SERIAL_V1=y
+# CONFIG_BSP_USING_SERIAL_V2 is not set
CONFIG_BSP_USING_UART0=y
-# CONFIG_BSP_UART0_RX_USING_DMA is not set
+CONFIG_BSP_UART0_TX_PIN="PF4"
+CONFIG_BSP_UART0_RX_PIN="PF5"
+CONFIG_BSP_UART0_AFIO="AF4"
# CONFIG_BSP_USING_UART1 is not set
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
diff --git a/bsp/gd32/arm/gd32h759i-start/board/Kconfig b/bsp/gd32/arm/gd32h759i-start/board/Kconfig
index a8e0d16464d..076e33e5e9a 100644
--- a/bsp/gd32/arm/gd32h759i-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32h759i-start/board/Kconfig
@@ -4,7 +4,7 @@ config SOC_SERIES_GD32H7xx
bool
default y
-config SOC_GD32H759I
+config SOC_GD32H759IM
bool
select SOC_SERIES_GD32H7xx
select RT_USING_COMPONENTS_INIT
@@ -25,48 +25,199 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
- select RT_USING_SERIAL
if BSP_USING_UART
- config BSP_USING_UART0
+ choice
+ prompt "Select UART framework version"
+ default BSP_USING_SERIAL_V1
+
+ config BSP_USING_SERIAL_V1
+ bool "Use Serial V1 framework"
+ select RT_USING_SERIAL
+
+ config BSP_USING_SERIAL_V2
+ bool "Use Serial V2 framework"
+ select RT_USING_SERIAL_V2
+ endchoice
+
+ menuconfig BSP_USING_UART0
bool "Enable UART0"
default y
-
- config BSP_UART0_RX_USING_DMA
- bool "Enable UART0 RX DMA"
- depends on BSP_USING_UART0
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART1
+ if BSP_USING_UART0
+ config BSP_UART0_TX_PIN
+ string "UART0 TX name, such as PA8"
+ default "PF4"
+
+ config BSP_UART0_RX_PIN
+ string "UART0 RX name, such as PA9"
+ default "PF5"
+
+ config BSP_UART0_AFIO
+ string "UART0 alternate function, such as AF7"
+ default "AF4"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART0_RX_USING_DMA
+ bool "Enable UART0 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_TX_USING_DMA
+ bool "Enable UART0 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART0_DMA_PING_BUFSIZE
+ int "Set UART0 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART0_RX_USING_DMA
+ default 64
+
+ config BSP_UART0_RX_BUFSIZE
+ int "Set UART0 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART0_TX_BUFSIZE
+ int "Set UART0 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART1
bool "Enable UART1"
- default n
-
- config BSP_UART1_RX_USING_DMA
- bool "Enable UART1 RX DMA"
- depends on BSP_USING_UART1
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART2
+ default y
+ if BSP_USING_UART1
+ config BSP_UART1_TX_PIN
+ string "UART1 TX name, such as PA8"
+ default "PA2"
+
+ config BSP_UART1_RX_PIN
+ string "UART1 RX name, such as PA9"
+ default "PA3"
+
+ config BSP_UART1_AFIO
+ string "UART1 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART1_RX_USING_DMA
+ bool "Enable UART1 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_TX_USING_DMA
+ bool "Enable UART1 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART1_DMA_PING_BUFSIZE
+ int "Set UART1 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART1_RX_USING_DMA
+ default 64
+
+ config BSP_UART1_RX_BUFSIZE
+ int "Set UART1 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART1_TX_BUFSIZE
+ int "Set UART1 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
-
- config BSP_UART2_RX_USING_DMA
- bool "Enable UART2 RX DMA"
- depends on BSP_USING_UART2
- select RT_SERIAL_USING_DMA
- default n
-
- config BSP_USING_UART3
+ if BSP_USING_UART2
+ config BSP_UART2_TX_PIN
+ string "UART2 TX name, such as PA8"
+ default "PB10"
+
+ config BSP_UART2_RX_PIN
+ string "UART2 RX name, such as PA9"
+ default "PB11"
+
+ config BSP_UART2_AFIO
+ string "UART2 alternate function, such as AF7"
+ default "AF7"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART2_RX_USING_DMA
+ bool "Enable UART2 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_TX_USING_DMA
+ bool "Enable UART2 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART2_DMA_PING_BUFSIZE
+ int "Set UART2 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART2_RX_USING_DMA
+ default 64
+
+ config BSP_UART2_RX_BUFSIZE
+ int "Set UART2 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART2_TX_BUFSIZE
+ int "Set UART2 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
+
+ menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
-
- config BSP_UART3_RX_USING_DMA
- bool "Enable UART3 RX DMA"
- depends on BSP_USING_UART3
- select RT_SERIAL_USING_DMA
- default n
-
+ if BSP_USING_UART3
+ config BSP_UART3_TX_PIN
+ string "UART3 TX name, such as PA8"
+ default "PC10"
+
+ config BSP_UART3_RX_PIN
+ string "UART3 RX name, such as PA9"
+ default "PC11"
+
+ config BSP_UART3_AFIO
+ string "UART3 alternate function, such as AF7"
+ default "AF8"
+
+ if BSP_USING_SERIAL_V2
+ config BSP_UART3_RX_USING_DMA
+ bool "Enable UART3 RX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_TX_USING_DMA
+ bool "Enable UART3 TX DMA"
+ depends on RT_SERIAL_USING_DMA
+ default n
+
+ config BSP_UART3_DMA_PING_BUFSIZE
+ int "Set UART3 RX DMA ping-pong buffer size"
+ range 16 65535
+ depends on BSP_UART3_RX_USING_DMA
+ default 64
+
+ config BSP_UART3_RX_BUFSIZE
+ int "Set UART3 RX buffer size"
+ range 64 65535
+ default 128
+
+ config BSP_UART3_TX_BUFSIZE
+ int "Set UART3 TX buffer size"
+ range 0 65535
+ default 128
+ endif
+ endif
endif
menuconfig BSP_USING_ONCHIP_RTC
diff --git a/bsp/gd32/arm/gd32h759i-start/project.ewp b/bsp/gd32/arm/gd32h759i-start/project.ewp
index 68fd60a2a50..e36cd678634 100644
--- a/bsp/gd32/arm/gd32h759i-start/project.ewp
+++ b/bsp/gd32/arm/gd32h759i-start/project.ewp
@@ -1,7 +1,7 @@
3
- rtthread
+ GD32H7xx
ARM
@@ -15,15 +15,15 @@
1
ExePath
- build\iar\Exe
+ GD32H7xx\Exe
ObjPath
- build\iar\Obj
+ GD32H7xx\Obj
ListPath
- build\iar\List
+ GD32H7xx\List
GEndianMode
@@ -48,24 +48,24 @@
GRuntimeLibSelect
0
- 1
+ 2
GRuntimeLibSelectSlave
0
- 1
+ 2
RTDescription
- Use the normal configuration of the C/C++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.
+ Use the full configuration of the C/C++ runtime library. Full locale interface, C locale, file descriptor support, multibytes in printf and scanf, and hex floats in strtod.
OGProductVersion
- 6.30.6.53380
+ 8.32.1.18618
OGLastSavedByProductVersion
- 8.40.1.21529
+ 8.32.1.18618
GeneralEnableMisra
@@ -77,7 +77,7 @@
OGChipSelectEditMenu
- STM32H743II ST STM32H743II
+ GD32H759xM GD GD32H759xM
GenLowLevelInterface
@@ -107,20 +107,20 @@
GeneralMisraRules04
0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+ 011101110010111110111000110111111111111111111111111110010111101111010101111111111101111111111111101111111011111001111011111011111111111111111
RTConfigPath2
- $TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h
+ $TOOLKIT_DIR$\inc\c\DLib_Config_Full.h
GBECoreSlave
- 27
+ 26
41
OGUseCmsis
- 0
+ 1
OGUseCmsisDspLib
@@ -132,1102 +132,22 @@
CoreVariant
- 27
- 41
-
-
- GFPUDeviceSlave
- STM32H743II ST STM32H743II
-
-
- FPU2
- 0
- 0
-
-
- NrRegs
- 0
- 0
-
-
- NEON
- 0
-
-
- GFPUCoreSlave2
- 27
+ 26
41
-
- OGCMSISPackSelectDevice
-
-
- OgLibHeap
- 0
-
-
- OGLibAdditionalLocale
- 0
-
-
- OGPrintfVariant
- 0
- 0
-
-
- OGPrintfMultibyteSupport
- 0
-
-
- OGScanfVariant
- 0
- 0
-
-
- OGScanfMultibyteSupport
- 0
-
-
- GenLocaleTags
-
-
-
- GenLocaleDisplayOnly
-
-
-
- DSPExtension
- 1
-
-
- TrustZone
- 0
-
-
- TrustZoneModes
- 0
- 0
-
-
-
-
- ICCARM
- 2
-
- 35
- 1
- 1
-
- CCOptimizationNoSizeConstraints
- 0
-
-
- CCDefines
-
- GD32H7XX
- __RTTHREAD__
- CLOCKS_PER_SEC=RT_TICK_PER_SECOND
- RT_USING_DLIBC
- RT_USING_LIBC
- _DLIB_ADD_EXTRA_SYMBOLS=0
- _DLIB_FILE_DESCRIPTOR
- __RT_IPC_SOURCE__
- __RT_KERNEL_SOURCE__
-
-
- CCPreprocFile
- 0
-
-
- CCPreprocComments
- 0
-
-
- CCPreprocLine
- 0
-
-
- CCListCFile
- 0
-
-
- CCListCMnemonics
- 0
-
-
- CCListCMessages
- 0
-
-
- CCListAssFile
- 0
-
-
- CCListAssSource
- 0
-
-
- CCEnableRemarks
- 0
-
-
- CCDiagSuppress
- Pa050
-
-
- CCDiagRemark
-
-
-
- CCDiagWarning
-
-
-
- CCDiagError
-
-
-
- CCObjPrefix
- 1
-
-
- CCAllowList
- 1
- 00000000
-
-
- CCDebugInfo
- 1
-
-
- IEndianMode
- 1
-
-
- IProcessor
- 1
-
-
- IExtraOptionsCheck
- 0
-
-
- IExtraOptions
-
-
-
- CCLangConformance
- 0
-
-
- CCSignedPlainChar
- 1
-
-
- CCRequirePrototypes
- 0
-
-
- CCDiagWarnAreErr
- 0
-
-
- CCCompilerRuntimeInfo
- 0
-
-
- IFpuProcessor
- 1
-
-
- OutputFile
- $FILE_BNAME$.o
-
-
- CCLibConfigHeader
- 1
-
-
- PreInclude
-
-
-
- CompilerMisraOverride
- 0
-
-
- CCIncludePath2
-
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
- $PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\.
- $PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
- $PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\gd32_drivers
- $PROJ_DIR$\..\..\..\..\components\drivers\include
- $PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
-
-
- CCStdIncCheck
- 0
-
-
- CCCodeSection
- .text
-
-
- IProcessorMode2
- 1
-
-
- CCOptLevel
- 1
-
-
- CCOptStrategy
- 0
- 0
-
-
- CCOptLevelSlave
- 1
-
-
- CompilerMisraRules98
- 0
- 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
-
-
- CompilerMisraRules04
- 0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
-
-
- CCPosIndRopi
- 0
-
-
- CCPosIndRwpi
- 0
-
-
- CCPosIndNoDynInit
- 0
-
-
- IccLang
- 0
-
-
- IccCDialect
- 1
-
-
- IccAllowVLA
- 0
-
-
- IccStaticDestr
- 1
-
-
- IccCppInlineSemantics
- 0
-
-
- IccCmsis
- 1
-
-
- IccFloatSemantics
- 0
-
-
- CCNoLiteralPool
- 0
-
-
- CCOptStrategySlave
- 0
- 0
-
-
- CCGuardCalls
- 1
-
-
- CCEncSource
- 0
-
-
- CCEncOutput
- 0
-
-
- CCEncOutputBom
- 1
-
-
- CCEncInput
- 0
-
-
- IccExceptions2
- 0
-
-
- IccRTTI2
- 0
-
-
- OICompilerExtraOption
- 1
-
-
-
-
- AARM
- 2
-
- 10
- 1
- 1
-
- AObjPrefix
- 1
-
-
- AEndian
- 1
-
-
- ACaseSensitivity
- 1
-
-
- MacroChars
- 0
- 0
-
-
- AWarnEnable
- 0
-
-
- AWarnWhat
- 0
-
-
- AWarnOne
-
-
-
- AWarnRange1
-
-
-
- AWarnRange2
-
-
-
- ADebug
- 1
-
-
- AltRegisterNames
- 0
-
-
- ADefines
-
-
-
- AList
- 0
-
-
- AListHeader
- 1
-
-
- AListing
- 1
-
-
- Includes
- 0
-
-
- MacDefs
- 0
-
-
- MacExps
- 1
-
-
- MacExec
- 0
-
-
- OnlyAssed
- 0
-
-
- MultiLine
- 0
-
-
- PageLengthCheck
- 0
-
-
- PageLength
- 80
-
-
- TabSpacing
- 8
-
-
- AXRef
- 0
-
-
- AXRefDefines
- 0
-
-
- AXRefInternal
- 0
-
-
- AXRefDual
- 0
-
-
- AProcessor
- 1
-
-
- AFpuProcessor
- 1
-
-
- AOutputFile
- $FILE_BNAME$.o
-
-
- ALimitErrorsCheck
- 0
-
-
- ALimitErrorsEdit
- 100
-
-
- AIgnoreStdInclude
- 0
-
-
- AUserIncludes
-
-
-
- AExtraOptionsCheckV2
- 0
-
-
- AExtraOptionsV2
-
-
-
- AsmNoLiteralPool
- 0
-
-
-
-
- OBJCOPY
- 0
-
- 1
- 1
- 1
-
- OOCOutputFormat
- 3
- 3
-
-
- OCOutputOverride
- 1
-
-
- OOCOutputFile
- ../../../rtthread.bin
-
-
- OOCCommandLineProducer
- 1
-
-
- OOCObjCopyEnable
- 1
-
-
-
-
- CUSTOM
- 3
-
-
-
- 0
-
-
-
- BICOMP
- 0
-
-
-
- BUILDACTION
- 1
-
-
-
-
-
-
- ILINK
- 0
-
- 23
- 1
- 1
-
- IlinkLibIOConfig
- 1
-
-
- XLinkMisraHandler
- 0
-
-
- IlinkInputFileSlave
- 0
-
-
- IlinkOutputFile
- project.out
-
-
- IlinkDebugInfoEnable
- 1
-
-
- IlinkKeepSymbols
-
-
-
- IlinkRawBinaryFile
-
-
-
- IlinkRawBinarySymbol
-
-
-
- IlinkRawBinarySegment
-
-
-
- IlinkRawBinaryAlign
-
-
-
- IlinkDefines
-
-
-
- IlinkConfigDefines
-
-
-
- IlinkMapFile
- 0
-
-
- IlinkLogFile
- 0
-
-
- IlinkLogInitialization
- 0
-
-
- IlinkLogModule
- 0
-
-
- IlinkLogSection
- 0
-
-
- IlinkLogVeneer
- 0
-
-
- IlinkIcfOverride
- 1
-
-
- IlinkIcfFile
- $PROJ_DIR$\board\linker_scripts\link.icf
-
-
- IlinkIcfFileSlave
-
-
-
- IlinkEnableRemarks
- 0
-
-
- IlinkSuppressDiags
-
-
-
- IlinkTreatAsRem
-
-
-
- IlinkTreatAsWarn
-
-
-
- IlinkTreatAsErr
-
-
-
- IlinkWarningsAreErrors
- 0
-
-
- IlinkUseExtraOptions
- 0
-
-
- IlinkExtraOptions
-
-
-
- IlinkLowLevelInterfaceSlave
- 1
-
-
- IlinkAutoLibEnable
- 1
-
-
- IlinkAdditionalLibs
-
-
-
- IlinkOverrideProgramEntryLabel
- 0
-
-
- IlinkProgramEntryLabelSelect
- 0
-
-
- IlinkProgramEntryLabel
- __iar_program_start
-
-
- DoFill
- 0
-
-
- FillerByte
- 0xFF
-
-
- FillerStart
- 0x0
-
-
- FillerEnd
- 0x0
-
-
- CrcSize
- 0
- 1
-
-
- CrcAlign
- 1
-
-
- CrcPoly
- 0x11021
-
-
- CrcCompl
- 0
- 0
-
-
- CrcBitOrder
- 0
- 0
-
-
- CrcInitialValue
- 0x0
-
-
- DoCrc
- 0
-
-
- IlinkBE8Slave
- 1
-
-
- IlinkBufferedTerminalOutput
- 1
-
-
- IlinkStdoutInterfaceSlave
- 1
-
-
- CrcFullSize
- 0
-
-
- IlinkIElfToolPostProcess
- 0
-
-
- IlinkLogAutoLibSelect
- 0
-
-
- IlinkLogRedirSymbols
- 0
-
-
- IlinkLogUnusedFragments
- 0
-
-
- IlinkCrcReverseByteOrder
- 0
-
-
- IlinkCrcUseAsInput
- 1
-
-
- IlinkOptInline
- 0
-
-
- IlinkOptExceptionsAllow
- 1
-
-
- IlinkOptExceptionsForce
- 0
-
-
- IlinkCmsis
- 1
-
-
- IlinkOptMergeDuplSections
- 0
-
-
- IlinkOptUseVfe
- 1
-
-
- IlinkOptForceVfe
- 0
-
-
- IlinkStackAnalysisEnable
- 0
-
-
- IlinkStackControlFile
-
-
-
- IlinkStackCallGraphFile
-
-
-
- CrcAlgorithm
- 1
- 1
-
-
- CrcUnitSize
- 0
- 0
-
-
- IlinkThreadsSlave
- 1
-
-
- IlinkLogCallGraph
- 0
-
-
- IlinkIcfFile_AltDefault
-
-
-
- IlinkEncInput
- 0
-
-
- IlinkEncOutput
- 0
-
-
- IlinkEncOutputBom
- 1
-
-
- IlinkHeapSelect
- 1
-
-
- IlinkLocaleSelect
- 1
-
-
- IlinkTrustzoneImportLibraryOut
- ###Unitialized###
-
-
- OILinkExtraOption
- 1
-
-
- IlinkRawBinaryFile2
-
-
-
- IlinkRawBinarySymbol2
-
-
-
- IlinkRawBinarySegment2
-
-
-
- IlinkRawBinaryAlign2
-
-
-
-
-
- IARCHIVE
- 0
-
- 0
- 1
- 1
-
- IarchiveInputs
-
-
-
- IarchiveOverride
- 0
-
-
- IarchiveOutput
- ###Unitialized###
-
-
-
-
- BILINK
- 0
-
-
-
-
- Release
-
- ARM
-
- 0
-
- General
- 3
-
- 31
- 1
- 0
-
- ExePath
- Release\Exe
-
-
- ObjPath
- Release\Obj
-
-
- ListPath
- Release\List
-
-
- GEndianMode
- 0
-
-
- Input description
-
-
-
- Output description
-
-
-
- GOutputBinary
- 0
-
-
- OGCoreOrChip
- 0
-
-
- GRuntimeLibSelect
- 0
- 1
-
-
- GRuntimeLibSelectSlave
- 0
- 1
-
-
- RTDescription
-
-
-
- OGProductVersion
- 6.30.6.53380
-
-
- OGLastSavedByProductVersion
- 8.11.3.13977
-
-
- GeneralEnableMisra
- 0
-
-
- GeneralMisraVerbose
- 0
-
-
- OGChipSelectEditMenu
- Default None
-
-
- GenLowLevelInterface
- 0
-
-
- GEndianModeBE
- 0
-
-
- OGBufferedTerminalOutput
- 0
-
-
- GenStdoutInterface
- 0
-
-
- GeneralMisraRules98
- 0
- 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
-
-
- GeneralMisraVer
- 0
-
-
- GeneralMisraRules04
- 0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
-
-
- RTConfigPath2
-
-
-
- GBECoreSlave
- 27
- 1
-
-
- OGUseCmsis
- 0
-
-
- OGUseCmsisDspLib
- 0
-
-
- GRuntimeLibThreads
- 0
-
-
- CoreVariant
- 27
- 0
-
GFPUDeviceSlave
- Default None
+ GD32H759xM GD GD32H759xM
FPU2
0
- 0
+ 7
NrRegs
0
- 0
+ 1
NEON
@@ -1235,8 +155,8 @@
GFPUCoreSlave2
- 27
- 0
+ 26
+ 41
OGCMSISPackSelectDevice
@@ -1277,7 +197,7 @@
DSPExtension
- 0
+ 1
TrustZone
@@ -1296,15 +216,13 @@
35
1
- 0
-
- CCOptimizationNoSizeConstraints
- 0
-
+ 1
CCDefines
-
GD32H7XX
+ GD32H7XXI
+ GD32H7XX
+ USE_STDPERIPH_DRIVER
__RTTHREAD__
CLOCKS_PER_SEC=RT_TICK_PER_SECOND
RT_USING_DLIBC
@@ -1324,7 +242,7 @@
CCPreprocLine
- 0
+ 1
CCListCFile
@@ -1373,11 +291,11 @@
CCAllowList
1
- 11111110
+ 00000000
CCDebugInfo
- 0
+ 1
IEndianMode
@@ -1421,7 +339,7 @@
OutputFile
-
+ $FILE_BNAME$.o
CCLibConfigHeader
@@ -1437,27 +355,35 @@
CCIncludePath2
-
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Include
+ $PROJ_DIR$\..
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\Utilites
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ $PROJ_DIR$\.
+ $PROJ_DIR$\..\libraries\gd32_drivers\config
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Include
$PROJ_DIR$\..\..\..\..\components\libc\posix\io\eventfd
$PROJ_DIR$\..\..\..\..\components\drivers\phy
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
- $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7
- $PROJ_DIR$\..\..\..\..\libcpu\arm\common
- $PROJ_DIR$\.
+ $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
+ $PROJ_DIR$\applications
$PROJ_DIR$\..\..\..\..\components\libc\posix\ipc
- $PROJ_DIR$\board
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
$PROJ_DIR$\..\..\..\..\components\libc\compilers\common\include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7
+ $PROJ_DIR$\..\..\..\..\components\libc\posix\io\epoll
$PROJ_DIR$\..\..\..\..\include
- $PROJ_DIR$\applications
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\include
- $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
- $PROJ_DIR$\..\libraries\gd32_drivers
+ $PROJ_DIR$\board
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Include
+ $PROJ_DIR$\..\..\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\..\..\components\drivers\include
$PROJ_DIR$\..\..\..\..\components\finsh
- $PROJ_DIR$\..\..\..\..\components\libc\compilers\common\extension
- $PROJ_DIR$\..\..\..\..\components\dfs\dfs_v1\filesystems\devfs
- $PROJ_DIR$\..\..\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\..\..\..\..\components\drivers\smp_call
+ $PROJ_DIR$\..\..\..\..\components\net\utest
CCStdIncCheck
@@ -1473,12 +399,12 @@
CCOptLevel
- 3
+ 1
CCOptStrategy
0
- 0
+ 2
CCOptLevelSlave
@@ -1534,6 +460,10 @@
IccFloatSemantics
0
+
+ CCOptimizationNoSizeConstraints
+ 0
+
CCNoLiteralPool
0
@@ -1541,7 +471,7 @@
CCOptStrategySlave
0
- 0
+ 2
CCGuardCalls
@@ -1583,7 +513,7 @@
10
1
- 0
+ 1
AObjPrefix
1
@@ -1623,7 +553,7 @@
ADebug
- 0
+ 1
AltRegisterNames
@@ -1707,7 +637,7 @@
AOutputFile
-
+ $FILE_BNAME$.o
ALimitErrorsCheck
@@ -1745,7 +675,7 @@
1
1
- 0
+ 1
OOCOutputFormat
3
@@ -1757,7 +687,7 @@
OOCOutputFile
-
+ Project.srec
OOCCommandLineProducer
@@ -1795,9 +725,9 @@
ILINK
0
- 23
+ 22
1
- 0
+ 1
IlinkLibIOConfig
1
@@ -1812,7 +742,7 @@
IlinkOutputFile
- ###Unitialized###
+ Project.out
IlinkDebugInfoEnable
@@ -1848,7 +778,7 @@
IlinkMapFile
- 0
+ 1
IlinkLogFile
@@ -1876,7 +806,7 @@
IlinkIcfFile
- lnk0t.icf
+ $TOOLKIT_DIR$\config\linker\GD\GD32H759xM.icf
IlinkIcfFileSlave
@@ -1936,7 +866,7 @@
IlinkProgramEntryLabel
-
+ __iar_program_start
DoFill
@@ -2027,7 +957,7 @@
IlinkOptInline
- 1
+ 0
IlinkOptExceptionsAllow
@@ -2109,28 +1039,12 @@
IlinkTrustzoneImportLibraryOut
- ###Unitialized###
+ Project_import_lib.o
OILinkExtraOption
1
-
- IlinkRawBinaryFile2
-
-
-
- IlinkRawBinarySymbol2
-
-
-
- IlinkRawBinarySegment2
-
-
-
- IlinkRawBinaryAlign2
-
-
@@ -2139,7 +1053,7 @@
0
1
- 0
+ 1
IarchiveInputs
@@ -2159,7 +1073,210 @@
0
+
+ Coder
+ 0
+
+
+
+ Application
+
+ $PROJ_DIR$\..\gd32h7xx_it.c
+
+
+ $PROJ_DIR$\..\main.c
+
+
+ $PROJ_DIR$\..\systick.c
+
+
+
+ CMSIS
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+
+ Doc
+
+ $PROJ_DIR$\..\readme.txt
+
+
+
+ GD32H7xx_EVAL
+
+ $PROJ_DIR$\..\..\..\Utilites\gd32h759i_eval.c
+
+
+
+ GD32H7xx_Peripherals
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_adc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_can.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_aes.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_des.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_tdes.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cmp.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cpdm.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_crc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ctc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dac.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dbg.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dci.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_edout.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_efuse.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_enet.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exmc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fac.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fmc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fwdgt.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau_sha_md5.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hpdf.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hwsem.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ipa.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_lpdts.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdma.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospi.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospim.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rameccmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rspdif.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtdec.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sai.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sdio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_spi.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_timer.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tli.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trigsel.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trng.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_vref.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_wwdgt.c
+
+
+
+ Startup
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\IAR\startup_gd32h7xx.s
+
+
Applications
@@ -2286,7 +1403,7 @@
Finsh
- $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_file.c
@@ -2295,7 +1412,7 @@
$PROJ_DIR$\..\..\..\..\components\finsh\shell.c
- $PROJ_DIR$\..\..\..\..\components\finsh\cmd.c
+ $PROJ_DIR$\..\..\..\..\components\finsh\msh.c
$PROJ_DIR$\..\..\..\..\components\finsh\msh_parse.c
@@ -2352,20 +1469,20 @@
klibc
- $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
-
-
- $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
$PROJ_DIR$\..\..\..\..\src\klibc\rt_vsscanf.c
- $PROJ_DIR$\..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstring.c
$PROJ_DIR$\..\..\..\..\src\klibc\kerrno.c
+
+ $PROJ_DIR$\..\..\..\..\src\klibc\kstdio.c
+
libcpu
@@ -2388,6 +1505,39 @@
$PROJ_DIR$\..\..\..\..\libcpu\arm\cortex-m7\cpuport.c
+
+ Libraries
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\IAR\startup_gd32h7xx.s
+
+
+ $PROJ_DIR$\packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+ $PROJ_DIR$\packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
POSIX
diff --git a/bsp/gd32/arm/gd32h759i-start/project.uvoptx b/bsp/gd32/arm/gd32h759i-start/project.uvoptx
index b727aa8c58e..70b07885363 100644
--- a/bsp/gd32/arm/gd32h759i-start/project.uvoptx
+++ b/bsp/gd32/arm/gd32h759i-start/project.uvoptx
@@ -10,9 +10,9 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc
+ *.txt; *.h; *.inc; *.md
*.plm
- *.cpp
+ *.cpp; *.cc; *.cxx
0
@@ -22,13 +22,13 @@
- rt-thread
+ GD32H759I_EVAL
0x4
ARM-ADS
12000000
- 0
+ 1
1
0
1
@@ -45,7 +45,7 @@
79
66
8
- .\build\keil\List\
+ .\Listings\
1
@@ -73,11 +73,11 @@
0
- 0
+ 1
0
1
- 0
+ 255
0
1
@@ -101,7 +101,9 @@
0
0
1
- 0
+ 0
+ 0
+ 4
@@ -112,13 +114,38 @@
- BIN\UL2CM3.DLL
+ Segger\JL2CM3.dll
+
+ 0
+ JL2CM3
+ -U4294967295 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BD12477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD24000000 -FC2000 -FN1 -FF0GD32H7xx_3840KB.FLM -FS08000000 -FL03C0000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM)
+
0
UL2CM3
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32H7x_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32H743IITx$CMSIS\Flash\STM32H7x_2048.FLM))
+ UL2CM3(-S0 -C0 -P0 ) -FN1 -FC2000 -FD24000000 -FF0GD32H7xx_3840KB -FL03C0000 -FS08000000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM)
+
+
+ 0
+ ARMRTXEVENTFLAGS
+ -L70 -Z18 -C0 -M0 -T1
+
+
+ 0
+ DLGTARM
+ (1010=-1,-1,-1,-1,0)(6017=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(6016=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)
+
+
+ 0
+ ARMDBGFLAGS
+
+
+
+ 0
+ DLGUARM
+ d
@@ -127,13 +154,13 @@
0
- 0
- 0
+ 1
+ 1
0
0
0
0
- 0
+ 1
0
0
0
@@ -164,21 +191,771 @@
-
- 1
- 0
- 2
- 10000000
-
- Source Group 1
+ Application
+ 0
+ 0
+ 0
+ 0
+
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+ ..\main.c
+ main.c
+ 0
+ 0
+
+
+ 1
+ 2
+ 1
+ 0
+ 0
+ 0
+ ..\gd32h7xx_it.c
+ gd32h7xx_it.c
+ 0
+ 0
+
+
+ 1
+ 3
+ 1
+ 0
+ 0
+ 0
+ ..\systick.c
+ systick.c
+ 0
+ 0
+
+
+
+
+ CMSIS
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 4
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\system_gd32h7xx.c
+ system_gd32h7xx.c
+ 0
+ 0
+
+
+
+
+ GD32H7xx_Peripherals
+ 0
+ 0
+ 0
+ 0
+
+ 3
+ 5
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_adc.c
+ gd32h7xx_adc.c
+ 0
+ 0
+
+
+ 3
+ 6
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_can.c
+ gd32h7xx_can.c
+ 0
+ 0
+
+
+ 3
+ 7
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau.c
+ gd32h7xx_cau.c
+ 0
+ 0
+
+
+ 3
+ 8
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_aes.c
+ gd32h7xx_cau_aes.c
+ 0
+ 0
+
+
+ 3
+ 9
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_des.c
+ gd32h7xx_cau_des.c
+ 0
+ 0
+
+
+ 3
+ 10
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_tdes.c
+ gd32h7xx_cau_tdes.c
+ 0
+ 0
+
+
+ 3
+ 11
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cmp.c
+ gd32h7xx_cmp.c
+ 0
+ 0
+
+
+ 3
+ 12
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cpdm.c
+ gd32h7xx_cpdm.c
+ 0
+ 0
+
+
+ 3
+ 13
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_crc.c
+ gd32h7xx_crc.c
+ 0
+ 0
+
+
+ 3
+ 14
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ctc.c
+ gd32h7xx_ctc.c
+ 0
+ 0
+
+
+ 3
+ 15
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dac.c
+ gd32h7xx_dac.c
+ 0
+ 0
+
+
+ 3
+ 16
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dbg.c
+ gd32h7xx_dbg.c
+ 0
+ 0
+
+
+ 3
+ 17
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dci.c
+ gd32h7xx_dci.c
+ 0
+ 0
+
+
+ 3
+ 18
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+ gd32h7xx_dma.c
+ 0
+ 0
+
+
+ 3
+ 19
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_edout.c
+ gd32h7xx_edout.c
+ 0
+ 0
+
+
+ 3
+ 20
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_efuse.c
+ gd32h7xx_efuse.c
+ 0
+ 0
+
+
+ 3
+ 21
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exmc.c
+ gd32h7xx_exmc.c
+ 0
+ 0
+
+
+ 3
+ 22
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+ gd32h7xx_exti.c
+ 0
+ 0
+
+
+ 3
+ 23
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fac.c
+ gd32h7xx_fac.c
+ 0
+ 0
+
+
+ 3
+ 24
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fmc.c
+ gd32h7xx_fmc.c
+ 0
+ 0
+
+
+ 3
+ 25
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fwdgt.c
+ gd32h7xx_fwdgt.c
+ 0
+ 0
+
+
+ 3
+ 26
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+ gd32h7xx_gpio.c
+ 0
+ 0
+
+
+ 3
+ 27
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau.c
+ gd32h7xx_hau.c
+ 0
+ 0
+
+
+ 3
+ 28
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau_sha_md5.c
+ gd32h7xx_hau_sha_md5.c
+ 0
+ 0
+
+
+ 3
+ 29
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hpdf.c
+ gd32h7xx_hpdf.c
+ 0
+ 0
+
+
+ 3
+ 30
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hwsem.c
+ gd32h7xx_hwsem.c
+ 0
+ 0
+
+
+ 3
+ 31
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+ gd32h7xx_i2c.c
+ 0
+ 0
+
+
+ 3
+ 32
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ipa.c
+ gd32h7xx_ipa.c
+ 0
+ 0
+
+
+ 3
+ 33
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_lpdts.c
+ gd32h7xx_lpdts.c
+ 0
+ 0
+
+
+ 3
+ 34
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdio.c
+ gd32h7xx_mdio.c
+ 0
+ 0
+
+
+ 3
+ 35
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdma.c
+ gd32h7xx_mdma.c
+ 0
+ 0
+
+
+ 3
+ 36
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+ gd32h7xx_misc.c
+ 0
+ 0
+
+
+ 3
+ 37
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospi.c
+ gd32h7xx_ospi.c
+ 0
+ 0
+
+
+ 3
+ 38
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospim.c
+ gd32h7xx_ospim.c
+ 0
+ 0
+
+
+ 3
+ 39
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+ gd32h7xx_pmu.c
+ 0
+ 0
+
+
+ 3
+ 40
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rameccmu.c
+ gd32h7xx_rameccmu.c
+ 0
+ 0
+
+
+ 3
+ 41
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+ gd32h7xx_rcu.c
+ 0
+ 0
+
+
+ 3
+ 42
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rspdif.c
+ gd32h7xx_rspdif.c
+ 0
+ 0
+
+
+ 3
+ 43
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtc.c
+ gd32h7xx_rtc.c
+ 0
+ 0
+
+
+ 3
+ 44
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtdec.c
+ gd32h7xx_rtdec.c
+ 0
+ 0
+
+
+ 3
+ 45
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sai.c
+ gd32h7xx_sai.c
+ 0
+ 0
+
+
+ 3
+ 46
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sdio.c
+ gd32h7xx_sdio.c
+ 0
+ 0
+
+
+ 3
+ 47
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_spi.c
+ gd32h7xx_spi.c
+ 0
+ 0
+
+
+ 3
+ 48
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+ gd32h7xx_syscfg.c
+ 0
+ 0
+
+
+ 3
+ 49
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_timer.c
+ gd32h7xx_timer.c
+ 0
+ 0
+
+
+ 3
+ 50
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tli.c
+ gd32h7xx_tli.c
+ 0
+ 0
+
+
+ 3
+ 51
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tmu.c
+ gd32h7xx_tmu.c
+ 0
+ 0
+
+
+ 3
+ 52
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trigsel.c
+ gd32h7xx_trigsel.c
+ 0
+ 0
+
+
+ 3
+ 53
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trng.c
+ gd32h7xx_trng.c
+ 0
+ 0
+
+
+ 3
+ 54
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+ gd32h7xx_usart.c
+ 0
+ 0
+
+
+ 3
+ 55
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_vref.c
+ gd32h7xx_vref.c
+ 0
+ 0
+
+
+ 3
+ 56
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_wwdgt.c
+ gd32h7xx_wwdgt.c
+ 0
+ 0
+
+
+
+
+ GD32H7xx_EVAL
+ 0
+ 0
+ 0
+ 0
+
+ 4
+ 57
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\Utilites\gd32h759i_eval.c
+ gd32h759i_eval.c
+ 0
+ 0
+
+
+
+
+ Startup
+ 0
+ 0
+ 0
+ 0
+
+ 5
+ 58
+ 2
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\ARM\startup_gd32h7xx.s
+ startup_gd32h7xx.s
+ 0
+ 0
+
+
+
+
+ Doc
0
0
0
0
+
+ 6
+ 59
+ 5
+ 0
+ 0
+ 0
+ ..\readme.txt
+ readme.txt
+ 0
+ 0
+
+
+
+
+ ::CMSIS
+ 0
+ 0
+ 0
+ 1
diff --git a/bsp/gd32/arm/gd32h759i-start/project.uvprojx b/bsp/gd32/arm/gd32h759i-start/project.uvprojx
index a67dfb018e5..a024306cd0e 100644
--- a/bsp/gd32/arm/gd32h759i-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32h759i-start/project.uvprojx
@@ -4,23 +4,23 @@
### uVision Project, (C) Keil Software
- rtthread
+ GD32H759I_EVAL
0x4
ARM-ADS
- 5060750::V5.06 update 6 (build 750)::ARMCC
- 0
+ 6130001::V6.13.1::.\ARMCLANG
+ 1
- STM32H743IITx
- STMicroelectronics
- Keil.STM32H7xx_DFP.2.1.0
- http://www.keil.com/pack
- IRAM(0x20000000,0x00020000) IRAM2(0x24000000,0x00080000) IROM(0x08000000,0x00200000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ELITTLE
+ GD32H759IM
+ GigaDevice
+ GigaDevice.GD32H7xx_DFP.0.1.0
+ https://gd32mcu.com/data/documents/pack/
+ IRAM(0x24000000,0x000E0000) IRAM2(0x00000000,0x00010000) IROM(0x08000000,0x03C0000) XRAM(0x20000000,0x00010000) XRAM2(0x30000000,0x00004000) XRAM3(0x30004000,0x00004000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ELITTLE
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32H7x_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32H743IITx$CMSIS\Flash\STM32H7x_2048.FLM))
+ UL2CM3(-S0 -C0 -P0 -FD24000000 -FC2000 -FN1 -FF0GD32H7xx_3840KB -FS08000000 -FL03C0000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM))
0
- $$Device:STM32H743IITx$Drivers\CMSIS\Device\ST\STM32H7xx\Include\stm32h7xx.h
+ $$Device:GD32H759IM$Device\Include\gd32h7xx.h
@@ -30,7 +30,7 @@
- $$Device:STM32H743IITx$CMSIS\SVD\STM32H7x3.svd
+ $$Device:GD32H759IM$SVD\GD32H7xx.svd
0
0
@@ -45,14 +45,14 @@
0
1
- .\build\keil\Obj\
- rt-thread
+ .\Objects\
+ Project
1
0
0
1
1
- .\build\keil\List\
+ .\Listings\
1
0
0
@@ -77,9 +77,9 @@
0
- 1
+ 0
0
- fromelf --bin !L --output rtthread.bin
+
0
0
@@ -135,7 +135,7 @@
1
BIN\UL2CM3.DLL
-
+ "" ()
@@ -178,13 +178,14 @@
0
1
1
- 0
+ 1
0
3
+ 0
1
0
8
- 0
+ 1
0
0
0
@@ -240,18 +241,18 @@
0
- 0x20000000
- 0x20000
+ 0x24000000
+ 0xe0000
1
0x8000000
- 0x200000
+ 0x3c0000
- 0
- 0x0
- 0x0
+ 1
+ 0x20000000
+ 0x10000
1
@@ -271,7 +272,7 @@
1
0x8000000
- 0x200000
+ 0x3c0000
1
@@ -280,28 +281,28 @@
0
- 0x0
- 0x0
+ 0x20000000
+ 0x10000
0
- 0x0
- 0x0
+ 0x30000000
+ 0x4000
0
- 0x0
- 0x0
+ 0x30004000
+ 0x4000
0
- 0x20000000
- 0x20000
+ 0x24000000
+ 0xe0000
0
- 0x24000000
- 0x80000
+ 0x0
+ 0x10000
@@ -317,13 +318,14 @@
0
0
0
- 2
+ 3
0
0
- 1
- 0
- 1
- 1
+ 0
+ 0
+ 1
+ 3
+ 3
1
1
0
@@ -331,9 +333,9 @@
0
- __RTTHREAD__, RT_USING_LIBC, GD32H7XX, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, RT_USING_ARMLIBC
+ USE_STDPERIPH_DRIVER, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, GD32H7XX, __RTTHREAD__
- .;..\..\..\..\components\dfs\dfs_v1\include;board;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\dfs\dfs_v1\filesystems\devfs;..\..\..\..\components\finsh;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\posix\io\eventfd;applications;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\poll;..\libraries\gd32_drivers;..\..\..\..\include;..\..\..\..\libcpu\arm\cortex-m7;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal
+ packages\gd32-arm-cmsis-latest\GD32H7xx;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;applications;..\..\..\..\components\libc\posix\ipc;packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Include;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\drivers\include;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\dfs\dfs_v1\filesystems\devfs;board;..\..\..\..\components\net\utest;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Include;.;..\..\..\..\libcpu\arm\common;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\libcpu\arm\cortex-m7;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers\config;..\..\..\..\include;..\..\..\..\components\finsh;..\libraries\gd32_drivers
@@ -355,7 +357,7 @@
- 0
+ 1
0
0
0
@@ -364,7 +366,7 @@
0x08000000
0x20000000
- .\board\linker_scripts\link.sct
+
@@ -807,9 +809,9 @@
- shell.c
+ msh.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\msh.c
@@ -821,16 +823,16 @@
- msh.c
+ msh_parse.c
1
- ..\..\..\..\components\finsh\msh.c
+ ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
+ shell.c
1
- ..\..\..\..\components\finsh\msh_parse.c
+ ..\..\..\..\components\finsh\shell.c
@@ -1126,23 +1128,23 @@
klibc
- rt_vsscanf.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
+ kstring.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\kstring.c
- kstdio.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\kstdio.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
@@ -1154,9 +1156,9 @@
- kstring.c
+ kstdio.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kstdio.c
@@ -1205,12 +1207,92 @@
+
+ Libraries
+
+
+ startup_gd32h7xx.s
+ 2
+ packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\ARM\startup_gd32h7xx.s
+
+
+
+
+ system_gd32h7xx.c
+ 1
+ packages\gd32-arm-cmsis-latest\GD32H7xx\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+
+
+ gd32h7xx_dma.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+
+
+ gd32h7xx_exti.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+
+
+ gd32h7xx_gpio.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+
+
+ gd32h7xx_misc.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+
+
+ gd32h7xx_pmu.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+
+
+ gd32h7xx_rcu.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+
+
+ gd32h7xx_syscfg.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+
+
+ gd32h7xx_usart.c
+ 1
+ packages\gd32-arm-series-latest\GD32H7xx\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
+
-
+
+
+
+
+
+
+
+
diff --git a/bsp/gd32/arm/gd32h759i-start/rtconfig.h b/bsp/gd32/arm/gd32h759i-start/rtconfig.h
index aca95626079..695aa9d7d85 100644
--- a/bsp/gd32/arm/gd32h759i-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32h759i-start/rtconfig.h
@@ -329,6 +329,10 @@
#define PKG_USING_GD32_ARM_SERIES_DRIVER
#define PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
/* end of HAL & SDK Drivers */
/* sensors drivers */
@@ -413,7 +417,7 @@
/* Hardware Drivers Config */
-#define SOC_GD32H759I
+#define SOC_GD32H759IM
/* Onboard Peripheral Drivers */
@@ -421,7 +425,11 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
+#define BSP_USING_SERIAL_V1
#define BSP_USING_UART0
+#define BSP_UART0_TX_PIN "PF4"
+#define BSP_UART0_RX_PIN "PF5"
+#define BSP_UART0_AFIO "AF4"
#define BSP_USING_GD_DBG
/* end of On-chip Peripheral Drivers */
diff --git a/bsp/gd32/arm/gd32h759i-start/template.ewp b/bsp/gd32/arm/gd32h759i-start/template.ewp
index bc0b523beb4..74516f3b626 100644
--- a/bsp/gd32/arm/gd32h759i-start/template.ewp
+++ b/bsp/gd32/arm/gd32h759i-start/template.ewp
@@ -2,7 +2,7 @@
3
- rtthread
+ GD32H7xx
ARM
@@ -16,15 +16,15 @@
1
ExePath
- build\iar\Exe
+ GD32H7xx\Exe
ObjPath
- build\iar\Obj
+ GD32H7xx\Obj
ListPath
- build\iar\List
+ GD32H7xx\List
GEndianMode
@@ -49,24 +49,24 @@
GRuntimeLibSelect
0
- 1
+ 2
GRuntimeLibSelectSlave
0
- 1
+ 2
RTDescription
- Use the normal configuration of the C/C++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.
+ Use the full configuration of the C/C++ runtime library. Full locale interface, C locale, file descriptor support, multibytes in printf and scanf, and hex floats in strtod.
OGProductVersion
- 6.30.6.53380
+ 8.32.1.18618
OGLastSavedByProductVersion
- 8.40.1.21529
+ 8.32.1.18618
GeneralEnableMisra
@@ -78,7 +78,7 @@
OGChipSelectEditMenu
- STM32H743II ST STM32H743II
+ GD32H759xM GD GD32H759xM
GenLowLevelInterface
@@ -108,20 +108,20 @@
GeneralMisraRules04
0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+ 011101110010111110111000110111111111111111111111111110010111101111010101111111111101111111111111101111111011111001111011111011111111111111111
RTConfigPath2
- $TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h
+ $TOOLKIT_DIR$\inc\c\DLib_Config_Full.h
GBECoreSlave
- 27
+ 26
41
OGUseCmsis
- 0
+ 1
OGUseCmsisDspLib
@@ -133,22 +133,22 @@
CoreVariant
- 27
+ 26
41
GFPUDeviceSlave
- STM32H743II ST STM32H743II
+ GD32H759xM GD GD32H759xM
FPU2
0
- 0
+ 7
NrRegs
0
- 0
+ 1
NEON
@@ -156,7 +156,7 @@
GFPUCoreSlave2
- 27
+ 26
41
@@ -218,13 +218,10 @@
35
1
1
-
- CCOptimizationNoSizeConstraints
- 0
-
CCDefines
-
+ GD32H7XX
+ GD32H7XXI
CCPreprocFile
@@ -236,7 +233,7 @@
CCPreprocLine
- 0
+ 1
CCListCFile
@@ -264,7 +261,7 @@
CCDiagSuppress
- Pa050
+
CCDiagRemark
@@ -349,7 +346,10 @@
CCIncludePath2
-
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Include
+ $PROJ_DIR$\..
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Include
+ $PROJ_DIR$\..\..\..\Utilites
CCStdIncCheck
@@ -370,7 +370,7 @@
CCOptStrategy
0
- 0
+ 2
CCOptLevelSlave
@@ -426,6 +426,10 @@
IccFloatSemantics
0
+
+ CCOptimizationNoSizeConstraints
+ 0
+
CCNoLiteralPool
0
@@ -433,7 +437,7 @@
CCOptStrategySlave
0
- 0
+ 2
CCGuardCalls
@@ -641,15 +645,15 @@
OOCOutputFormat
3
- 3
+ 0
OCOutputOverride
- 1
+ 0
OOCOutputFile
- ../../../rtthread.bin
+ Project.srec
OOCCommandLineProducer
@@ -657,7 +661,7 @@
OOCObjCopyEnable
- 1
+ 0
@@ -687,7 +691,7 @@
ILINK
0
- 23
+ 22
1
1
@@ -704,7 +708,7 @@
IlinkOutputFile
- project.out
+ Project.out
IlinkDebugInfoEnable
@@ -740,7 +744,7 @@
IlinkMapFile
- 0
+ 1
IlinkLogFile
@@ -764,11 +768,11 @@
IlinkIcfOverride
- 1
+ 0
IlinkIcfFile
- $PROJ_DIR$\board\linker_scripts\link.icf
+ $TOOLKIT_DIR$\config\linker\GD\GD32H759xM.icf
IlinkIcfFileSlave
@@ -1001,28 +1005,12 @@
IlinkTrustzoneImportLibraryOut
- ###Unitialized###
+ Project_import_lib.o
OILinkExtraOption
1
-
- IlinkRawBinaryFile2
-
-
-
- IlinkRawBinarySymbol2
-
-
-
- IlinkRawBinarySegment2
-
-
-
- IlinkRawBinaryAlign2
-
-
@@ -1051,1056 +1039,208 @@
0
-
-
- Release
-
- ARM
-
- 0
-
- General
- 3
-
- 31
- 1
- 0
-
- ExePath
- Release\Exe
-
-
- ObjPath
- Release\Obj
-
-
- ListPath
- Release\List
-
-
- GEndianMode
- 0
-
-
- Input description
-
-
-
- Output description
-
-
-
- GOutputBinary
- 0
-
-
- OGCoreOrChip
- 0
-
-
- GRuntimeLibSelect
- 0
- 1
-
-
- GRuntimeLibSelectSlave
- 0
- 1
-
-
- RTDescription
-
-
-
- OGProductVersion
- 6.30.6.53380
-
-
- OGLastSavedByProductVersion
- 8.11.3.13977
-
-
- GeneralEnableMisra
- 0
-
-
- GeneralMisraVerbose
- 0
-
-
- OGChipSelectEditMenu
- Default None
-
-
- GenLowLevelInterface
- 0
-
-
- GEndianModeBE
- 0
-
-
- OGBufferedTerminalOutput
- 0
-
-
- GenStdoutInterface
- 0
-
-
- GeneralMisraRules98
- 0
- 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
-
-
- GeneralMisraVer
- 0
-
-
- GeneralMisraRules04
- 0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
-
-
- RTConfigPath2
-
-
-
- GBECoreSlave
- 27
- 1
-
-
- OGUseCmsis
- 0
-
-
- OGUseCmsisDspLib
- 0
-
-
- GRuntimeLibThreads
- 0
-
-
- CoreVariant
- 27
- 0
-
-
- GFPUDeviceSlave
- Default None
-
-
- FPU2
- 0
- 0
-
-
- NrRegs
- 0
- 0
-
-
- NEON
- 0
-
-
- GFPUCoreSlave2
- 27
- 0
-
-
- OGCMSISPackSelectDevice
-
-
- OgLibHeap
- 0
-
-
- OGLibAdditionalLocale
- 0
-
-
- OGPrintfVariant
- 0
- 0
-
-
- OGPrintfMultibyteSupport
- 0
-
-
- OGScanfVariant
- 0
- 0
-
-
- OGScanfMultibyteSupport
- 0
-
-
- GenLocaleTags
-
-
-
- GenLocaleDisplayOnly
-
-
-
- DSPExtension
- 0
-
-
- TrustZone
- 0
-
-
- TrustZoneModes
- 0
- 0
-
-
-
- ICCARM
- 2
-
- 35
- 1
- 0
-
- CCOptimizationNoSizeConstraints
- 0
-
-
- CCDefines
-
-
-
- CCPreprocFile
- 0
-
-
- CCPreprocComments
- 0
-
-
- CCPreprocLine
- 0
-
-
- CCListCFile
- 0
-
-
- CCListCMnemonics
- 0
-
-
- CCListCMessages
- 0
-
-
- CCListAssFile
- 0
-
-
- CCListAssSource
- 0
-
-
- CCEnableRemarks
- 0
-
-
- CCDiagSuppress
-
-
-
- CCDiagRemark
-
-
-
- CCDiagWarning
-
-
-
- CCDiagError
-
-
-
- CCObjPrefix
- 1
-
-
- CCAllowList
- 1
- 11111110
-
-
- CCDebugInfo
- 0
-
-
- IEndianMode
- 1
-
-
- IProcessor
- 1
-
-
- IExtraOptionsCheck
- 0
-
-
- IExtraOptions
-
-
-
- CCLangConformance
- 0
-
-
- CCSignedPlainChar
- 1
-
-
- CCRequirePrototypes
- 0
-
-
- CCDiagWarnAreErr
- 0
-
-
- CCCompilerRuntimeInfo
- 0
-
-
- IFpuProcessor
- 1
-
-
- OutputFile
-
-
-
- CCLibConfigHeader
- 1
-
-
- PreInclude
-
-
-
- CompilerMisraOverride
- 0
-
-
- CCIncludePath2
-
-
-
- CCStdIncCheck
- 0
-
-
- CCCodeSection
- .text
-
-
- IProcessorMode2
- 1
-
-
- CCOptLevel
- 3
-
-
- CCOptStrategy
- 0
- 0
-
-
- CCOptLevelSlave
- 1
-
-
- CompilerMisraRules98
- 0
- 1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111
-
-
- CompilerMisraRules04
- 0
- 111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
-
-
- CCPosIndRopi
- 0
-
-
- CCPosIndRwpi
- 0
-
-
- CCPosIndNoDynInit
- 0
-
-
- IccLang
- 0
-
-
- IccCDialect
- 1
-
-
- IccAllowVLA
- 0
-
-
- IccStaticDestr
- 1
-
-
- IccCppInlineSemantics
- 0
-
-
- IccCmsis
- 1
-
-
- IccFloatSemantics
- 0
-
-
- CCNoLiteralPool
- 0
-
-
- CCOptStrategySlave
- 0
- 0
-
-
- CCGuardCalls
- 1
-
-
- CCEncSource
- 0
-
-
- CCEncOutput
- 0
-
-
- CCEncOutputBom
- 1
-
-
- CCEncInput
- 0
-
-
- IccExceptions2
- 0
-
-
- IccRTTI2
- 0
-
-
- OICompilerExtraOption
- 1
-
-
-
-
- AARM
- 2
-
- 10
- 1
- 0
-
- AObjPrefix
- 1
-
-
- AEndian
- 1
-
-
- ACaseSensitivity
- 1
-
-
- MacroChars
- 0
- 0
-
-
- AWarnEnable
- 0
-
-
- AWarnWhat
- 0
-
-
- AWarnOne
-
-
-
- AWarnRange1
-
-
-
- AWarnRange2
-
-
-
- ADebug
- 0
-
-
- AltRegisterNames
- 0
-
-
- ADefines
-
-
-
- AList
- 0
-
-
- AListHeader
- 1
-
-
- AListing
- 1
-
-
- Includes
- 0
-
-
- MacDefs
- 0
-
-
- MacExps
- 1
-
-
- MacExec
- 0
-
-
- OnlyAssed
- 0
-
-
- MultiLine
- 0
-
-
- PageLengthCheck
- 0
-
-
- PageLength
- 80
-
-
- TabSpacing
- 8
-
-
- AXRef
- 0
-
-
- AXRefDefines
- 0
-
-
- AXRefInternal
- 0
-
-
- AXRefDual
- 0
-
-
- AProcessor
- 1
-
-
- AFpuProcessor
- 1
-
-
- AOutputFile
-
-
-
- ALimitErrorsCheck
- 0
-
-
- ALimitErrorsEdit
- 100
-
-
- AIgnoreStdInclude
- 0
-
-
- AUserIncludes
-
-
-
- AExtraOptionsCheckV2
- 0
-
-
- AExtraOptionsV2
-
-
-
- AsmNoLiteralPool
- 0
-
-
-
-
- OBJCOPY
- 0
-
- 1
- 1
- 0
-
- OOCOutputFormat
- 3
- 0
-
-
- OCOutputOverride
- 0
-
-
- OOCOutputFile
-
-
-
- OOCCommandLineProducer
- 1
-
-
- OOCObjCopyEnable
- 0
-
-
-
-
- CUSTOM
- 3
-
-
-
- 0
-
-
-
- BICOMP
- 0
-
-
-
- BUILDACTION
- 1
-
-
-
-
-
-
- ILINK
- 0
-
- 23
- 1
- 0
-
- IlinkLibIOConfig
- 1
-
-
- XLinkMisraHandler
- 0
-
-
- IlinkInputFileSlave
- 0
-
-
- IlinkOutputFile
- ###Unitialized###
-
-
- IlinkDebugInfoEnable
- 1
-
-
- IlinkKeepSymbols
-
-
-
- IlinkRawBinaryFile
-
-
-
- IlinkRawBinarySymbol
-
-
-
- IlinkRawBinarySegment
-
-
-
- IlinkRawBinaryAlign
-
-
-
- IlinkDefines
-
-
-
- IlinkConfigDefines
-
-
-
- IlinkMapFile
- 0
-
-
- IlinkLogFile
- 0
-
-
- IlinkLogInitialization
- 0
-
-
- IlinkLogModule
- 0
-
-
- IlinkLogSection
- 0
-
-
- IlinkLogVeneer
- 0
-
-
- IlinkIcfOverride
- 0
-
-
- IlinkIcfFile
- lnk0t.icf
-
-
- IlinkIcfFileSlave
-
-
-
- IlinkEnableRemarks
- 0
-
-
- IlinkSuppressDiags
-
-
-
- IlinkTreatAsRem
-
-
-
- IlinkTreatAsWarn
-
-
-
- IlinkTreatAsErr
-
-
-
- IlinkWarningsAreErrors
- 0
-
-
- IlinkUseExtraOptions
- 0
-
-
- IlinkExtraOptions
-
-
-
- IlinkLowLevelInterfaceSlave
- 1
-
-
- IlinkAutoLibEnable
- 1
-
-
- IlinkAdditionalLibs
-
-
-
- IlinkOverrideProgramEntryLabel
- 0
-
-
- IlinkProgramEntryLabelSelect
- 0
-
-
- IlinkProgramEntryLabel
-
-
-
- DoFill
- 0
-
-
- FillerByte
- 0xFF
-
-
- FillerStart
- 0x0
-
-
- FillerEnd
- 0x0
-
-
- CrcSize
- 0
- 1
-
-
- CrcAlign
- 1
-
-
- CrcPoly
- 0x11021
-
-
- CrcCompl
- 0
- 0
-
-
- CrcBitOrder
- 0
- 0
-
-
- CrcInitialValue
- 0x0
-
-
- DoCrc
- 0
-
-
- IlinkBE8Slave
- 1
-
-
- IlinkBufferedTerminalOutput
- 1
-
-
- IlinkStdoutInterfaceSlave
- 1
-
-
- CrcFullSize
- 0
-
-
- IlinkIElfToolPostProcess
- 0
-
-
- IlinkLogAutoLibSelect
- 0
-
-
- IlinkLogRedirSymbols
- 0
-
-
- IlinkLogUnusedFragments
- 0
-
-
- IlinkCrcReverseByteOrder
- 0
-
-
- IlinkCrcUseAsInput
- 1
-
-
- IlinkOptInline
- 1
-
-
- IlinkOptExceptionsAllow
- 1
-
-
- IlinkOptExceptionsForce
- 0
-
-
- IlinkCmsis
- 1
-
-
- IlinkOptMergeDuplSections
- 0
-
-
- IlinkOptUseVfe
- 1
-
-
- IlinkOptForceVfe
- 0
-
-
- IlinkStackAnalysisEnable
- 0
-
-
- IlinkStackControlFile
-
-
-
- IlinkStackCallGraphFile
-
-
-
- CrcAlgorithm
- 1
- 1
-
-
- CrcUnitSize
- 0
- 0
-
-
- IlinkThreadsSlave
- 1
-
-
- IlinkLogCallGraph
- 0
-
-
- IlinkIcfFile_AltDefault
-
-
-
- IlinkEncInput
- 0
-
-
- IlinkEncOutput
- 0
-
-
- IlinkEncOutputBom
- 1
-
-
- IlinkHeapSelect
- 1
-
-
- IlinkLocaleSelect
- 1
-
-
- IlinkTrustzoneImportLibraryOut
- ###Unitialized###
-
-
- OILinkExtraOption
- 1
-
-
- IlinkRawBinaryFile2
-
-
-
- IlinkRawBinarySymbol2
-
-
-
- IlinkRawBinarySegment2
-
-
-
- IlinkRawBinaryAlign2
-
-
-
-
-
- IARCHIVE
- 0
-
- 0
- 1
- 0
-
- IarchiveInputs
-
-
-
- IarchiveOverride
- 0
-
-
- IarchiveOutput
- ###Unitialized###
-
-
-
-
- BILINK
+ Coder
0
+
+ Application
+
+ $PROJ_DIR$\..\gd32h7xx_it.c
+
+
+ $PROJ_DIR$\..\main.c
+
+
+ $PROJ_DIR$\..\systick.c
+
+
+
+ CMSIS
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+
+ Doc
+
+ $PROJ_DIR$\..\readme.txt
+
+
+
+ GD32H7xx_EVAL
+
+ $PROJ_DIR$\..\..\..\Utilites\gd32h759i_eval.c
+
+
+
+ GD32H7xx_Peripherals
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_adc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_can.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_aes.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_des.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_tdes.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cmp.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cpdm.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_crc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ctc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dac.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dbg.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dci.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_edout.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_efuse.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_enet.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exmc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fac.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fmc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fwdgt.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau_sha_md5.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hpdf.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hwsem.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ipa.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_lpdts.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdma.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospi.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospim.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rameccmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rspdif.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtc.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtdec.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sai.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sdio.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_spi.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_timer.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tli.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tmu.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trigsel.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trng.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_vref.c
+
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_wwdgt.c
+
+
+
+ Startup
+
+ $PROJ_DIR$\..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\IAR\startup_gd32h7xx.s
+
+
diff --git a/bsp/gd32/arm/gd32h759i-start/template.eww b/bsp/gd32/arm/gd32h759i-start/template.eww
index bd036bb4c98..e347e85422c 100644
--- a/bsp/gd32/arm/gd32h759i-start/template.eww
+++ b/bsp/gd32/arm/gd32h759i-start/template.eww
@@ -2,7 +2,7 @@
- $WS_DIR$\template.ewp
+ $WS_DIR$\GD32H759I_EVAL.ewp
diff --git a/bsp/gd32/arm/gd32h759i-start/template.uvoptx b/bsp/gd32/arm/gd32h759i-start/template.uvoptx
index b727aa8c58e..70b07885363 100644
--- a/bsp/gd32/arm/gd32h759i-start/template.uvoptx
+++ b/bsp/gd32/arm/gd32h759i-start/template.uvoptx
@@ -10,9 +10,9 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc
+ *.txt; *.h; *.inc; *.md
*.plm
- *.cpp
+ *.cpp; *.cc; *.cxx
0
@@ -22,13 +22,13 @@
- rt-thread
+ GD32H759I_EVAL
0x4
ARM-ADS
12000000
- 0
+ 1
1
0
1
@@ -45,7 +45,7 @@
79
66
8
- .\build\keil\List\
+ .\Listings\
1
@@ -73,11 +73,11 @@
0
- 0
+ 1
0
1
- 0
+ 255
0
1
@@ -101,7 +101,9 @@
0
0
1
- 0
+ 0
+ 0
+ 4
@@ -112,13 +114,38 @@
- BIN\UL2CM3.DLL
+ Segger\JL2CM3.dll
+
+ 0
+ JL2CM3
+ -U4294967295 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BD12477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD24000000 -FC2000 -FN1 -FF0GD32H7xx_3840KB.FLM -FS08000000 -FL03C0000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM)
+
0
UL2CM3
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32H7x_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32H743IITx$CMSIS\Flash\STM32H7x_2048.FLM))
+ UL2CM3(-S0 -C0 -P0 ) -FN1 -FC2000 -FD24000000 -FF0GD32H7xx_3840KB -FL03C0000 -FS08000000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM)
+
+
+ 0
+ ARMRTXEVENTFLAGS
+ -L70 -Z18 -C0 -M0 -T1
+
+
+ 0
+ DLGTARM
+ (1010=-1,-1,-1,-1,0)(6017=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(6016=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)
+
+
+ 0
+ ARMDBGFLAGS
+
+
+
+ 0
+ DLGUARM
+ d
@@ -127,13 +154,13 @@
0
- 0
- 0
+ 1
+ 1
0
0
0
0
- 0
+ 1
0
0
0
@@ -164,21 +191,771 @@
-
- 1
- 0
- 2
- 10000000
-
- Source Group 1
+ Application
+ 0
+ 0
+ 0
+ 0
+
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+ ..\main.c
+ main.c
+ 0
+ 0
+
+
+ 1
+ 2
+ 1
+ 0
+ 0
+ 0
+ ..\gd32h7xx_it.c
+ gd32h7xx_it.c
+ 0
+ 0
+
+
+ 1
+ 3
+ 1
+ 0
+ 0
+ 0
+ ..\systick.c
+ systick.c
+ 0
+ 0
+
+
+
+
+ CMSIS
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 4
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\system_gd32h7xx.c
+ system_gd32h7xx.c
+ 0
+ 0
+
+
+
+
+ GD32H7xx_Peripherals
+ 0
+ 0
+ 0
+ 0
+
+ 3
+ 5
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_adc.c
+ gd32h7xx_adc.c
+ 0
+ 0
+
+
+ 3
+ 6
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_can.c
+ gd32h7xx_can.c
+ 0
+ 0
+
+
+ 3
+ 7
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau.c
+ gd32h7xx_cau.c
+ 0
+ 0
+
+
+ 3
+ 8
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_aes.c
+ gd32h7xx_cau_aes.c
+ 0
+ 0
+
+
+ 3
+ 9
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_des.c
+ gd32h7xx_cau_des.c
+ 0
+ 0
+
+
+ 3
+ 10
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_tdes.c
+ gd32h7xx_cau_tdes.c
+ 0
+ 0
+
+
+ 3
+ 11
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cmp.c
+ gd32h7xx_cmp.c
+ 0
+ 0
+
+
+ 3
+ 12
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cpdm.c
+ gd32h7xx_cpdm.c
+ 0
+ 0
+
+
+ 3
+ 13
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_crc.c
+ gd32h7xx_crc.c
+ 0
+ 0
+
+
+ 3
+ 14
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ctc.c
+ gd32h7xx_ctc.c
+ 0
+ 0
+
+
+ 3
+ 15
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dac.c
+ gd32h7xx_dac.c
+ 0
+ 0
+
+
+ 3
+ 16
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dbg.c
+ gd32h7xx_dbg.c
+ 0
+ 0
+
+
+ 3
+ 17
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dci.c
+ gd32h7xx_dci.c
+ 0
+ 0
+
+
+ 3
+ 18
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+ gd32h7xx_dma.c
+ 0
+ 0
+
+
+ 3
+ 19
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_edout.c
+ gd32h7xx_edout.c
+ 0
+ 0
+
+
+ 3
+ 20
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_efuse.c
+ gd32h7xx_efuse.c
+ 0
+ 0
+
+
+ 3
+ 21
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exmc.c
+ gd32h7xx_exmc.c
+ 0
+ 0
+
+
+ 3
+ 22
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+ gd32h7xx_exti.c
+ 0
+ 0
+
+
+ 3
+ 23
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fac.c
+ gd32h7xx_fac.c
+ 0
+ 0
+
+
+ 3
+ 24
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fmc.c
+ gd32h7xx_fmc.c
+ 0
+ 0
+
+
+ 3
+ 25
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fwdgt.c
+ gd32h7xx_fwdgt.c
+ 0
+ 0
+
+
+ 3
+ 26
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+ gd32h7xx_gpio.c
+ 0
+ 0
+
+
+ 3
+ 27
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau.c
+ gd32h7xx_hau.c
+ 0
+ 0
+
+
+ 3
+ 28
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau_sha_md5.c
+ gd32h7xx_hau_sha_md5.c
+ 0
+ 0
+
+
+ 3
+ 29
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hpdf.c
+ gd32h7xx_hpdf.c
+ 0
+ 0
+
+
+ 3
+ 30
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hwsem.c
+ gd32h7xx_hwsem.c
+ 0
+ 0
+
+
+ 3
+ 31
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+ gd32h7xx_i2c.c
+ 0
+ 0
+
+
+ 3
+ 32
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ipa.c
+ gd32h7xx_ipa.c
+ 0
+ 0
+
+
+ 3
+ 33
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_lpdts.c
+ gd32h7xx_lpdts.c
+ 0
+ 0
+
+
+ 3
+ 34
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdio.c
+ gd32h7xx_mdio.c
+ 0
+ 0
+
+
+ 3
+ 35
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdma.c
+ gd32h7xx_mdma.c
+ 0
+ 0
+
+
+ 3
+ 36
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+ gd32h7xx_misc.c
+ 0
+ 0
+
+
+ 3
+ 37
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospi.c
+ gd32h7xx_ospi.c
+ 0
+ 0
+
+
+ 3
+ 38
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospim.c
+ gd32h7xx_ospim.c
+ 0
+ 0
+
+
+ 3
+ 39
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+ gd32h7xx_pmu.c
+ 0
+ 0
+
+
+ 3
+ 40
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rameccmu.c
+ gd32h7xx_rameccmu.c
+ 0
+ 0
+
+
+ 3
+ 41
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+ gd32h7xx_rcu.c
+ 0
+ 0
+
+
+ 3
+ 42
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rspdif.c
+ gd32h7xx_rspdif.c
+ 0
+ 0
+
+
+ 3
+ 43
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtc.c
+ gd32h7xx_rtc.c
+ 0
+ 0
+
+
+ 3
+ 44
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtdec.c
+ gd32h7xx_rtdec.c
+ 0
+ 0
+
+
+ 3
+ 45
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sai.c
+ gd32h7xx_sai.c
+ 0
+ 0
+
+
+ 3
+ 46
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sdio.c
+ gd32h7xx_sdio.c
+ 0
+ 0
+
+
+ 3
+ 47
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_spi.c
+ gd32h7xx_spi.c
+ 0
+ 0
+
+
+ 3
+ 48
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+ gd32h7xx_syscfg.c
+ 0
+ 0
+
+
+ 3
+ 49
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_timer.c
+ gd32h7xx_timer.c
+ 0
+ 0
+
+
+ 3
+ 50
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tli.c
+ gd32h7xx_tli.c
+ 0
+ 0
+
+
+ 3
+ 51
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tmu.c
+ gd32h7xx_tmu.c
+ 0
+ 0
+
+
+ 3
+ 52
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trigsel.c
+ gd32h7xx_trigsel.c
+ 0
+ 0
+
+
+ 3
+ 53
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trng.c
+ gd32h7xx_trng.c
+ 0
+ 0
+
+
+ 3
+ 54
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+ gd32h7xx_usart.c
+ 0
+ 0
+
+
+ 3
+ 55
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_vref.c
+ gd32h7xx_vref.c
+ 0
+ 0
+
+
+ 3
+ 56
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_wwdgt.c
+ gd32h7xx_wwdgt.c
+ 0
+ 0
+
+
+
+
+ GD32H7xx_EVAL
+ 0
+ 0
+ 0
+ 0
+
+ 4
+ 57
+ 1
+ 0
+ 0
+ 0
+ ..\..\..\Utilites\gd32h759i_eval.c
+ gd32h759i_eval.c
+ 0
+ 0
+
+
+
+
+ Startup
+ 0
+ 0
+ 0
+ 0
+
+ 5
+ 58
+ 2
+ 0
+ 0
+ 0
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\ARM\startup_gd32h7xx.s
+ startup_gd32h7xx.s
+ 0
+ 0
+
+
+
+
+ Doc
0
0
0
0
+
+ 6
+ 59
+ 5
+ 0
+ 0
+ 0
+ ..\readme.txt
+ readme.txt
+ 0
+ 0
+
+
+
+
+ ::CMSIS
+ 0
+ 0
+ 0
+ 1
diff --git a/bsp/gd32/arm/gd32h759i-start/template.uvprojx b/bsp/gd32/arm/gd32h759i-start/template.uvprojx
index c87c973e4cb..9a5c5aa54b4 100644
--- a/bsp/gd32/arm/gd32h759i-start/template.uvprojx
+++ b/bsp/gd32/arm/gd32h759i-start/template.uvprojx
@@ -7,23 +7,23 @@
- rtthread
+ GD32H759I_EVAL
0x4
ARM-ADS
- 5060750::V5.06 update 6 (build 750)::ARMCC
- 0
+ 6130001::V6.13.1::.\ARMCLANG
+ 1
- STM32H743IITx
- STMicroelectronics
- Keil.STM32H7xx_DFP.2.1.0
- http://www.keil.com/pack
- IRAM(0x20000000,0x00020000) IRAM2(0x24000000,0x00080000) IROM(0x08000000,0x00200000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ELITTLE
+ GD32H759IM
+ GigaDevice
+ GigaDevice.GD32H7xx_DFP.0.1.0
+ https://gd32mcu.com/data/documents/pack/
+ IRAM(0x24000000,0x000E0000) IRAM2(0x00000000,0x00010000) IROM(0x08000000,0x03C0000) XRAM(0x20000000,0x00010000) XRAM2(0x30000000,0x00004000) XRAM3(0x30004000,0x00004000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ELITTLE
- UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32H7x_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32H743IITx$CMSIS\Flash\STM32H7x_2048.FLM))
+ UL2CM3(-S0 -C0 -P0 -FD24000000 -FC2000 -FN1 -FF0GD32H7xx_3840KB -FS08000000 -FL03C0000 -FP0($$Device:GD32H759IM$Flash\GD32H7xx_3840KB.FLM))
0
- $$Device:STM32H743IITx$Drivers\CMSIS\Device\ST\STM32H7xx\Include\stm32h7xx.h
+ $$Device:GD32H759IM$Device\Include\gd32h7xx.h
@@ -33,7 +33,7 @@
- $$Device:STM32H743IITx$CMSIS\SVD\STM32H7x3.svd
+ $$Device:GD32H759IM$SVD\GD32H7xx.svd
0
0
@@ -48,14 +48,14 @@
0
1
- .\build\keil\Obj\
- rt-thread
+ .\Objects\
+ Project
1
0
0
1
1
- .\build\keil\List\
+ .\Listings\
1
0
0
@@ -80,9 +80,9 @@
0
- 1
+ 0
0
- fromelf --bin !L --output rtthread.bin
+
0
0
@@ -138,7 +138,7 @@
1
BIN\UL2CM3.DLL
-
+ "" ()
@@ -181,13 +181,14 @@
0
1
1
- 0
+ 1
0
3
+ 0
1
0
8
- 0
+ 1
0
0
0
@@ -243,18 +244,18 @@
0
- 0x20000000
- 0x20000
+ 0x24000000
+ 0xe0000
1
0x8000000
- 0x200000
+ 0x3c0000
- 0
- 0x0
- 0x0
+ 1
+ 0x20000000
+ 0x10000
1
@@ -274,7 +275,7 @@
1
0x8000000
- 0x200000
+ 0x3c0000
1
@@ -283,28 +284,28 @@
0
- 0x0
- 0x0
+ 0x20000000
+ 0x10000
0
- 0x0
- 0x0
+ 0x30000000
+ 0x4000
0
- 0x0
- 0x0
+ 0x30004000
+ 0x4000
0
- 0x20000000
- 0x20000
+ 0x24000000
+ 0xe0000
0
- 0x24000000
- 0x80000
+ 0x0
+ 0x10000
@@ -320,13 +321,14 @@
0
0
0
- 2
+ 3
0
0
- 1
- 0
- 1
- 1
+ 0
+ 0
+ 1
+ 3
+ 3
1
1
0
@@ -334,9 +336,9 @@
0
-
+ GD32H7XX
-
+ ..\;..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Include;..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Include;..\..\..\Utilites
@@ -358,7 +360,7 @@
- 0
+ 1
0
0
0
@@ -367,7 +369,7 @@
0x08000000
0x20000000
- .\board\linker_scripts\link.sct
+
@@ -378,7 +380,332 @@
- Source Group 1
+ Application
+
+
+ main.c
+ 1
+ ..\main.c
+
+
+ gd32h7xx_it.c
+ 1
+ ..\gd32h7xx_it.c
+
+
+ systick.c
+ 1
+ ..\systick.c
+
+
+
+
+ CMSIS
+
+
+ system_gd32h7xx.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\system_gd32h7xx.c
+
+
+
+
+ GD32H7xx_Peripherals
+
+
+ gd32h7xx_adc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_adc.c
+
+
+ gd32h7xx_can.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_can.c
+
+
+ gd32h7xx_cau.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau.c
+
+
+ gd32h7xx_cau_aes.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_aes.c
+
+
+ gd32h7xx_cau_des.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_des.c
+
+
+ gd32h7xx_cau_tdes.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cau_tdes.c
+
+
+ gd32h7xx_cmp.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cmp.c
+
+
+ gd32h7xx_cpdm.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_cpdm.c
+
+
+ gd32h7xx_crc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_crc.c
+
+
+ gd32h7xx_ctc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ctc.c
+
+
+ gd32h7xx_dac.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dac.c
+
+
+ gd32h7xx_dbg.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dbg.c
+
+
+ gd32h7xx_dci.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dci.c
+
+
+ gd32h7xx_dma.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_dma.c
+
+
+ gd32h7xx_edout.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_edout.c
+
+
+ gd32h7xx_efuse.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_efuse.c
+
+
+ gd32h7xx_exmc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exmc.c
+
+
+ gd32h7xx_exti.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_exti.c
+
+
+ gd32h7xx_fac.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fac.c
+
+
+ gd32h7xx_fmc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fmc.c
+
+
+ gd32h7xx_fwdgt.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_fwdgt.c
+
+
+ gd32h7xx_gpio.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_gpio.c
+
+
+ gd32h7xx_hau.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau.c
+
+
+ gd32h7xx_hau_sha_md5.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hau_sha_md5.c
+
+
+ gd32h7xx_hpdf.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hpdf.c
+
+
+ gd32h7xx_hwsem.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_hwsem.c
+
+
+ gd32h7xx_i2c.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_i2c.c
+
+
+ gd32h7xx_ipa.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ipa.c
+
+
+ gd32h7xx_lpdts.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_lpdts.c
+
+
+ gd32h7xx_mdio.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdio.c
+
+
+ gd32h7xx_mdma.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_mdma.c
+
+
+ gd32h7xx_misc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_misc.c
+
+
+ gd32h7xx_ospi.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospi.c
+
+
+ gd32h7xx_ospim.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_ospim.c
+
+
+ gd32h7xx_pmu.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_pmu.c
+
+
+ gd32h7xx_rameccmu.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rameccmu.c
+
+
+ gd32h7xx_rcu.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rcu.c
+
+
+ gd32h7xx_rspdif.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rspdif.c
+
+
+ gd32h7xx_rtc.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtc.c
+
+
+ gd32h7xx_rtdec.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_rtdec.c
+
+
+ gd32h7xx_sai.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sai.c
+
+
+ gd32h7xx_sdio.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_sdio.c
+
+
+ gd32h7xx_spi.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_spi.c
+
+
+ gd32h7xx_syscfg.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_syscfg.c
+
+
+ gd32h7xx_timer.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_timer.c
+
+
+ gd32h7xx_tli.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tli.c
+
+
+ gd32h7xx_tmu.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_tmu.c
+
+
+ gd32h7xx_trigsel.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trigsel.c
+
+
+ gd32h7xx_trng.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_trng.c
+
+
+ gd32h7xx_usart.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_usart.c
+
+
+ gd32h7xx_vref.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_vref.c
+
+
+ gd32h7xx_wwdgt.c
+ 1
+ ..\..\..\..\GD32H7xx_Firmware_Library\GD32H7xx_standard_peripheral\Source\gd32h7xx_wwdgt.c
+
+
+
+
+ GD32H7xx_EVAL
+
+
+ gd32h759i_eval.c
+ 1
+ ..\..\..\Utilites\gd32h759i_eval.c
+
+
+
+
+ Startup
+
+
+ startup_gd32h7xx.s
+ 2
+ ..\..\..\..\GD32H7xx_Firmware_Library\CMSIS\GD\GD32H7xx\Source\ARM\startup_gd32h7xx.s
+
+
+
+
+ Doc
+
+
+ readme.txt
+ 5
+ ..\readme.txt
+
+
+
+
+ ::CMSIS
@@ -386,7 +713,14 @@
-
+
+
+
+
+
+
+
+
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/SConscript b/bsp/gd32/arm/libraries/gd32_drivers/SConscript
index 5d3a2a85de3..31a8d4458d7 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/SConscript
+++ b/bsp/gd32/arm/libraries/gd32_drivers/SConscript
@@ -65,6 +65,7 @@ if GetDepend('BSP_USING_SDRAM'):
src += ['drv_sdram.c']
path = [cwd]
+path += [cwd + "/config"]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/config/uart_config.h b/bsp/gd32/arm/libraries/gd32_drivers/config/uart_config.h
new file mode 100644
index 00000000000..4185e99762b
--- /dev/null
+++ b/bsp/gd32/arm/libraries/gd32_drivers/config/uart_config.h
@@ -0,0 +1,155 @@
+/*
+ * Copyright (c) 2006-2025, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2025-10-09 WangShun optimize the serial driver
+ * 2025-11-13 kurisaw general GD driver adaptation
+ */
+
+#ifndef __UART_CONFIG_H__
+#define __UART_CONFIG_H__
+
+#include
+#include
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(BSP_USING_UART0)
+#ifndef UART0_CONFIG
+#define UART0_CONFIG \
+ { \
+ .uart_periph = USART0, \
+ .irqn = USART0_IRQn, \
+ .per_clk = RCU_USART0, \
+ .tx_pin_name = BSP_UART0_TX_PIN, \
+ .rx_pin_name = BSP_UART0_RX_PIN, \
+ .alternate = BSP_UART0_AFIO, \
+ .serial = &serial0, \
+ .device_name = "uart0", \
+ }
+#endif /* UART0_CONFIG */
+#endif /* BSP_USING_UART0 */
+
+#if defined(BSP_USING_UART1)
+#ifndef UART1_CONFIG
+#define UART1_CONFIG \
+ { \
+ .uart_periph = USART1, \
+ .irqn = USART1_IRQn, \
+ .per_clk = RCU_USART1, \
+ .tx_pin_name = BSP_UART1_TX_PIN, \
+ .rx_pin_name = BSP_UART1_RX_PIN, \
+ .alternate = BSP_UART1_AFIO, \
+ .serial = &serial1, \
+ .device_name = "uart1", \
+ }
+#endif /* UART1_CONFIG */
+#endif /* BSP_USING_UART1 */
+
+#if defined(BSP_USING_UART2)
+#ifndef UART2_CONFIG
+#define UART2_CONFIG \
+ { \
+ .uart_periph = USART2, \
+ .irqn = USART2_IRQn, \
+ .per_clk = RCU_USART2, \
+ .tx_pin_name = BSP_UART2_TX_PIN, \
+ .rx_pin_name = BSP_UART2_RX_PIN, \
+ .alternate = BSP_UART2_AFIO, \
+ .serial = &serial2, \
+ .device_name = "uart2", \
+ }
+#endif /* UART2_CONFIG */
+#endif /* BSP_USING_UART2 */
+
+#if defined(BSP_USING_UART3)
+#ifndef UART3_CONFIG
+#define UART3_CONFIG \
+ { \
+ .uart_periph = UART3, \
+ .irqn = UART3_IRQn, \
+ .per_clk = RCU_UART3, \
+ .tx_pin_name = BSP_UART3_TX_PIN, \
+ .rx_pin_name = BSP_UART3_RX_PIN, \
+ .alternate = BSP_UART3_AFIO, \
+ .serial = &serial3, \
+ .device_name = "uart3", \
+ }
+#endif /* UART3_CONFIG */
+#endif /* BSP_USING_UART3 */
+
+#if defined(BSP_USING_UART4)
+#ifndef UART4_CONFIG
+#define UART4_CONFIG \
+ { \
+ .uart_periph = UART4, \
+ .irqn = UART4_IRQn, \
+ .per_clk = RCU_UART4, \
+ .tx_pin_name = BSP_UART4_TX_PIN, \
+ .rx_pin_name = BSP_UART4_RX_PIN, \
+ .alternate = BSP_UART4_AFIO, \
+ .serial = &serial4, \
+ .device_name = "uart4", \
+ }
+#endif /* UART4_CONFIG */
+#endif /* BSP_USING_UART4 */
+
+#if defined(BSP_USING_UART5)
+#ifndef UART5_CONFIG
+#define UART5_CONFIG \
+ { \
+ .uart_periph = USART5, \
+ .irqn = USART5_IRQn, \
+ .per_clk = RCU_USART5, \
+ .tx_pin_name = BSP_UART5_TX_PIN, \
+ .rx_pin_name = BSP_UART5_RX_PIN, \
+ .alternate = BSP_UART5_AFIO, \
+ .serial = &serial5, \
+ .device_name = "uart5", \
+ }
+#endif /* UART5_CONFIG */
+#endif /* BSP_USING_UART5 */
+
+#if defined(BSP_USING_UART6)
+#ifndef UART6_CONFIG
+#define UART6_CONFIG \
+ { \
+ .uart_periph = UART6, \
+ .irqn = UART6_IRQn, \
+ .per_clk = RCU_UART6, \
+ .tx_pin_name = BSP_UART6_TX_PIN, \
+ .rx_pin_name = BSP_UART6_RX_PIN, \
+ .alternate = BSP_UART6_AFIO, \
+ .serial = &serial6, \
+ .device_name = "uart6", \
+ }
+#endif /* UART6_CONFIG */
+#endif /* BSP_USING_UART6 */
+
+#if defined(BSP_USING_UART7)
+#ifndef UART7_CONFIG
+#define UART7_CONFIG \
+ { \
+ .uart_periph = UART7, \
+ .irqn = UART7_IRQn, \
+ .per_clk = RCU_UART7, \
+ .tx_pin_name = BSP_UART7_TX_PIN, \
+ .rx_pin_name = BSP_UART7_RX_PIN, \
+ .alternate = BSP_UART7_AFIO, \
+ .serial = &serial7, \
+ .device_name = "uart7", \
+ }
+#endif /* UART7_CONFIG */
+#endif /* BSP_USING_UART7 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __UART_CONFIG_H__ */
+
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.c b/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.c
index cb43335dea1..01e800cb844 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.c
+++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.c
@@ -6,29 +6,30 @@
* Change Logs:
* Date Author Notes
* 2021-08-20 BruceOu the first version
+ * 2025-11-13 RealThread general GD driver adaptation
*/
#include
#include
#include
+#include
#ifdef RT_USING_PIN
#include "drv_gpio.h"
-static const struct pin_index pins[] =
-{
+static const struct pin_index pins[] = {
#ifdef GPIOA
- GD32_PIN(0, A, 0),
- GD32_PIN(1, A, 1),
- GD32_PIN(2, A, 2),
- GD32_PIN(3, A, 3),
- GD32_PIN(4, A, 4),
- GD32_PIN(5, A, 5),
- GD32_PIN(6, A, 6),
- GD32_PIN(7, A, 7),
- GD32_PIN(8, A, 8),
- GD32_PIN(9, A, 9),
+ GD32_PIN(0, A, 0),
+ GD32_PIN(1, A, 1),
+ GD32_PIN(2, A, 2),
+ GD32_PIN(3, A, 3),
+ GD32_PIN(4, A, 4),
+ GD32_PIN(5, A, 5),
+ GD32_PIN(6, A, 6),
+ GD32_PIN(7, A, 7),
+ GD32_PIN(8, A, 8),
+ GD32_PIN(9, A, 9),
GD32_PIN(10, A, 10),
GD32_PIN(11, A, 11),
GD32_PIN(12, A, 12),
@@ -183,65 +184,62 @@ static const struct pin_index pins[] =
};
#if defined SOC_SERIES_GD32E23x
-static const struct pin_irq_map pin_irq_map[] =
-{
- {GPIO_PIN_0, EXTI0_1_IRQn},
- {GPIO_PIN_1, EXTI0_1_IRQn},
- {GPIO_PIN_2, EXTI2_3_IRQn},
- {GPIO_PIN_3, EXTI2_3_IRQn},
- {GPIO_PIN_4, EXTI4_15_IRQn},
- {GPIO_PIN_5, EXTI4_15_IRQn},
- {GPIO_PIN_6, EXTI4_15_IRQn},
- {GPIO_PIN_7, EXTI4_15_IRQn},
- {GPIO_PIN_8, EXTI4_15_IRQn},
- {GPIO_PIN_9, EXTI4_15_IRQn},
- {GPIO_PIN_10, EXTI4_15_IRQn},
- {GPIO_PIN_11, EXTI4_15_IRQn},
- {GPIO_PIN_12, EXTI4_15_IRQn},
- {GPIO_PIN_13, EXTI4_15_IRQn},
- {GPIO_PIN_14, EXTI4_15_IRQn},
- {GPIO_PIN_15, EXTI4_15_IRQn},
+static const struct pin_irq_map pin_irq_map[] = {
+ { GPIO_PIN_0, EXTI0_1_IRQn },
+ { GPIO_PIN_1, EXTI0_1_IRQn },
+ { GPIO_PIN_2, EXTI2_3_IRQn },
+ { GPIO_PIN_3, EXTI2_3_IRQn },
+ { GPIO_PIN_4, EXTI4_15_IRQn },
+ { GPIO_PIN_5, EXTI4_15_IRQn },
+ { GPIO_PIN_6, EXTI4_15_IRQn },
+ { GPIO_PIN_7, EXTI4_15_IRQn },
+ { GPIO_PIN_8, EXTI4_15_IRQn },
+ { GPIO_PIN_9, EXTI4_15_IRQn },
+ { GPIO_PIN_10, EXTI4_15_IRQn },
+ { GPIO_PIN_11, EXTI4_15_IRQn },
+ { GPIO_PIN_12, EXTI4_15_IRQn },
+ { GPIO_PIN_13, EXTI4_15_IRQn },
+ { GPIO_PIN_14, EXTI4_15_IRQn },
+ { GPIO_PIN_15, EXTI4_15_IRQn },
};
#else
-static const struct pin_irq_map pin_irq_map[] =
-{
- {GPIO_PIN_0, EXTI0_IRQn},
- {GPIO_PIN_1, EXTI1_IRQn},
- {GPIO_PIN_2, EXTI2_IRQn},
- {GPIO_PIN_3, EXTI3_IRQn},
- {GPIO_PIN_4, EXTI4_IRQn},
- {GPIO_PIN_5, EXTI5_9_IRQn},
- {GPIO_PIN_6, EXTI5_9_IRQn},
- {GPIO_PIN_7, EXTI5_9_IRQn},
- {GPIO_PIN_8, EXTI5_9_IRQn},
- {GPIO_PIN_9, EXTI5_9_IRQn},
- {GPIO_PIN_10, EXTI10_15_IRQn},
- {GPIO_PIN_11, EXTI10_15_IRQn},
- {GPIO_PIN_12, EXTI10_15_IRQn},
- {GPIO_PIN_13, EXTI10_15_IRQn},
- {GPIO_PIN_14, EXTI10_15_IRQn},
- {GPIO_PIN_15, EXTI10_15_IRQn},
+static const struct pin_irq_map pin_irq_map[] = {
+ { GPIO_PIN_0, EXTI0_IRQn },
+ { GPIO_PIN_1, EXTI1_IRQn },
+ { GPIO_PIN_2, EXTI2_IRQn },
+ { GPIO_PIN_3, EXTI3_IRQn },
+ { GPIO_PIN_4, EXTI4_IRQn },
+ { GPIO_PIN_5, EXTI5_9_IRQn },
+ { GPIO_PIN_6, EXTI5_9_IRQn },
+ { GPIO_PIN_7, EXTI5_9_IRQn },
+ { GPIO_PIN_8, EXTI5_9_IRQn },
+ { GPIO_PIN_9, EXTI5_9_IRQn },
+ { GPIO_PIN_10, EXTI10_15_IRQn },
+ { GPIO_PIN_11, EXTI10_15_IRQn },
+ { GPIO_PIN_12, EXTI10_15_IRQn },
+ { GPIO_PIN_13, EXTI10_15_IRQn },
+ { GPIO_PIN_14, EXTI10_15_IRQn },
+ { GPIO_PIN_15, EXTI10_15_IRQn },
};
#endif
-struct rt_pin_irq_hdr pin_irq_hdr_tab[] =
-{
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
- {-1, 0, RT_NULL, RT_NULL},
+struct rt_pin_irq_hdr pin_irq_hdr_tab[] = {
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
+ { -1, 0, RT_NULL, RT_NULL },
};
#define ITEM_NUM(items) sizeof(items) / sizeof(items[0])
@@ -259,7 +257,7 @@ const struct pin_index *get_pin(rt_uint8_t pin)
{
index = &pins[pin];
if (index->index == -1)
- index = RT_NULL;
+ index = RT_NULL;
}
else
{
@@ -269,6 +267,175 @@ const struct pin_index *get_pin(rt_uint8_t pin)
return index;
}
+int get_pin_config(const char *pin_name, uint32_t *port, uint32_t *pin, rcu_periph_enum *clk)
+{
+ if (pin_name == NULL || port == NULL || pin == NULL || clk == NULL)
+ {
+ return -RT_ERROR;
+ }
+
+ if (rt_strlen(pin_name) < 3 || pin_name[0] != 'P')
+ {
+ return -RT_ERROR;
+ }
+
+ char port_letter = pin_name[1];
+ switch (port_letter)
+ {
+#ifdef GPIOA
+ case 'A':
+ *port = GPIOA;
+ *clk = RCU_GPIOA;
+ break;
+#endif /* GPIOA */
+#ifdef GPIOB
+ case 'B':
+ *port = GPIOB;
+ *clk = RCU_GPIOB;
+ break;
+#endif /* GPIOB */
+#ifdef GPIOC
+ case 'C':
+ *port = GPIOC;
+ *clk = RCU_GPIOC;
+ break;
+#endif /* GPIOC */
+#ifdef GPIOD
+ case 'D':
+ *port = GPIOD;
+ *clk = RCU_GPIOD;
+ break;
+#endif /* GPIOD */
+#ifdef GPIOE
+ case 'E':
+ *port = GPIOE;
+ *clk = RCU_GPIOE;
+ break;
+#endif /* GPIOE */
+#ifdef GPIOF
+ case 'F':
+ *port = GPIOF;
+ *clk = RCU_GPIOF;
+ break;
+#endif /* GPIOF */
+#ifdef GPIOG
+ case 'G':
+ *port = GPIOG;
+ *clk = RCU_GPIOG;
+ break;
+#endif /* GPIOG */
+#ifdef GPIOH
+ case 'H':
+ *port = GPIOH;
+ *clk = RCU_GPIOH;
+ break;
+#endif /* GPIOH */
+#ifdef GPIOI
+ case 'I':
+ *port = GPIOI;
+ *clk = RCU_GPIOI;
+ break;
+#endif /* GPIOI */
+#ifdef GPIOJ
+ case 'J':
+ *port = GPIOJ;
+ *clk = RCU_GPIOJ;
+ break;
+#endif /* GPIOJ */
+#ifdef GPIOK
+ case 'K':
+ *port = GPIOK;
+ *clk = RCU_GPIOK;
+ break;
+#endif /* GPIOK */
+ default:
+ return -RT_ERROR;
+ }
+
+ int pin_num = atoi(pin_name + 2);
+ if (pin_num < 0 || pin_num > 15)
+ {
+ return -RT_ERROR;
+ }
+ *pin = GPIO_PIN_0 << pin_num;
+
+ return 0;
+}
+
+int pin_alternate_config(const char *alternate, uint32_t *af)
+{
+ if (alternate == NULL || af == NULL)
+ {
+ return -RT_ERROR;
+ }
+
+ if (alternate[0] != 'A' || alternate[1] != 'F')
+ {
+ return -RT_ERROR;
+ }
+
+ int af_num = atoi(alternate + 2);
+ if (af_num < 0 || af_num > 15)
+ {
+ return -RT_ERROR;
+ }
+
+ switch (af_num)
+ {
+#ifdef GPIO_AF_0
+ case 0: *af = GPIO_AF_0; break;
+#endif /* GPIO_AF_0 */
+#ifdef GPIO_AF_1
+ case 1: *af = GPIO_AF_1; break;
+#endif /* GPIO_AF_1 */
+#ifdef GPIO_AF_2
+ case 2: *af = GPIO_AF_2; break;
+#endif /* GPIO_AF_2 */
+#ifdef GPIO_AF_3
+ case 3: *af = GPIO_AF_3; break;
+#endif /* GPIO_AF_3 */
+#ifdef GPIO_AF_4
+ case 4: *af = GPIO_AF_4; break;
+#endif /* GPIO_AF_4 */
+#ifdef GPIO_AF_5
+ case 5: *af = GPIO_AF_5; break;
+#endif /* GPIO_AF_5 */
+#ifdef GPIO_AF_6
+ case 6: *af = GPIO_AF_6; break;
+#endif /* GPIO_AF_6 */
+#ifdef GPIO_AF_7
+ case 7: *af = GPIO_AF_7; break;
+#endif /* GPIO_AF_7 */
+#ifdef GPIO_AF_8
+ case 8: *af = GPIO_AF_8; break;
+#endif /* GPIO_AF_8 */
+#ifdef GPIO_AF_9
+ case 9: *af = GPIO_AF_9; break;
+#endif /* GPIO_AF_9 */
+#ifdef GPIO_AF_10
+ case 10: *af = GPIO_AF_10; break;
+#endif /* GPIO_AF_10 */
+#ifdef GPIO_AF_11
+ case 11: *af = GPIO_AF_11; break;
+#endif /* GPIO_AF_11 */
+#ifdef GPIO_AF_12
+ case 12: *af = GPIO_AF_12; break;
+#endif /* GPIO_AF_12 */
+#ifdef GPIO_AF_13
+ case 13: *af = GPIO_AF_13; break;
+#endif /* GPIO_AF_13 */
+#ifdef GPIO_AF_14
+ case 14: *af = GPIO_AF_14; break;
+#endif /* GPIO_AF_14 */
+#ifdef GPIO_AF_15
+ case 15: *af = GPIO_AF_15; break;
+#endif /* GPIO_AF_15 */
+ default: return -1;
+ }
+
+ return 0;
+}
+
/**
* @brief set pin mode
* @param dev, pin, mode
@@ -279,8 +446,8 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
const struct pin_index *index = RT_NULL;
rt_uint32_t pin_mode = 0;
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
- rt_uint32_t pin_pupd = 0, pin_odpp = 0;
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+ rt_uint32_t pin_pupd = 0, pin_odpp = 0;
#endif
index = get_pin(pin);
@@ -291,17 +458,17 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
/* GPIO Periph clock enable */
rcu_periph_clock_enable(index->clk);
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
- pin_mode = GPIO_MODE_OUTPUT;
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+ pin_mode = GPIO_MODE_OUTPUT;
#else
pin_mode = GPIO_MODE_OUT_PP;
#endif
- switch(mode)
+ switch (mode)
{
case PIN_MODE_OUTPUT:
/* output setting */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
pin_mode = GPIO_MODE_OUTPUT;
pin_pupd = GPIO_PUPD_NONE;
pin_odpp = GPIO_OTYPE_PP;
@@ -311,7 +478,7 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
break;
case PIN_MODE_OUTPUT_OD:
/* output setting: od. */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
pin_mode = GPIO_MODE_OUTPUT;
pin_pupd = GPIO_PUPD_NONE;
pin_odpp = GPIO_OTYPE_OD;
@@ -321,7 +488,7 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
break;
case PIN_MODE_INPUT:
/* input setting: not pull. */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
pin_mode = GPIO_MODE_INPUT;
pin_pupd = GPIO_PUPD_PULLUP | GPIO_PUPD_PULLDOWN;
#else
@@ -330,7 +497,7 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
break;
case PIN_MODE_INPUT_PULLUP:
/* input setting: pull up. */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
pin_mode = GPIO_MODE_INPUT;
pin_pupd = GPIO_PUPD_PULLUP;
#else
@@ -339,7 +506,7 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
break;
case PIN_MODE_INPUT_PULLDOWN:
/* input setting: pull down. */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
pin_mode = GPIO_MODE_INPUT;
pin_pupd = GPIO_PUPD_PULLDOWN;
#else
@@ -347,23 +514,23 @@ static void gd32_pin_mode(rt_device_t dev, rt_base_t pin, rt_uint8_t mode)
#endif
break;
default:
- break;
+ break;
}
#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
gpio_mode_set(index->gpio_periph, pin_mode, pin_pupd, index->pin);
- if(pin_mode == GPIO_MODE_OUTPUT)
+ if (pin_mode == GPIO_MODE_OUTPUT)
{
gpio_output_options_set(index->gpio_periph, pin_odpp, GPIO_OSPEED_50MHZ, index->pin);
}
-#elif defined SOC_SERIES_GD32H7xx
+#elif defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E
gpio_mode_set(index->gpio_periph, pin_mode, pin_pupd, index->pin);
- if(pin_mode == GPIO_MODE_OUTPUT)
+ if (pin_mode == GPIO_MODE_OUTPUT)
{
gpio_output_options_set(index->gpio_periph, pin_odpp, GPIO_OSPEED_60MHZ, index->pin);
}
#else
- gpio_init(index->gpio_periph, pin_mode, GPIO_OSPEED_50MHZ, index->pin);
+ gpio_init(index->gpio_periph, pin_mode, GPIO_OSPEED_50MHZ, index->pin);
#endif
}
@@ -444,7 +611,7 @@ rt_inline const struct pin_irq_map *get_pin_irq_map(rt_uint32_t pinbit)
* @retval None
*/
static rt_err_t gd32_pin_attach_irq(struct rt_device *device, rt_base_t pin,
- rt_uint8_t mode, void (*hdr)(void *args), void *args)
+ rt_uint8_t mode, void (*hdr)(void *args), void *args)
{
const struct pin_index *index = RT_NULL;
rt_base_t level;
@@ -562,21 +729,21 @@ static rt_err_t gd32_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_
switch (pin_irq_hdr_tab[hdr_index].mode)
{
- case PIN_IRQ_MODE_RISING:
- trigger_mode = EXTI_TRIG_RISING;
- break;
- case PIN_IRQ_MODE_FALLING:
- trigger_mode = EXTI_TRIG_FALLING;
- break;
- case PIN_IRQ_MODE_RISING_FALLING:
- trigger_mode = EXTI_TRIG_BOTH;
- break;
- default:
- rt_hw_interrupt_enable(level);
- return -RT_EINVAL;
+ case PIN_IRQ_MODE_RISING:
+ trigger_mode = EXTI_TRIG_RISING;
+ break;
+ case PIN_IRQ_MODE_FALLING:
+ trigger_mode = EXTI_TRIG_FALLING;
+ break;
+ case PIN_IRQ_MODE_RISING_FALLING:
+ trigger_mode = EXTI_TRIG_BOTH;
+ break;
+ default:
+ rt_hw_interrupt_enable(level);
+ return -RT_EINVAL;
}
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx
rcu_periph_clock_enable(RCU_SYSCFG);
#elif defined SOC_SERIES_GD32E23x
rcu_periph_clock_enable(RCU_CFGCMP);
@@ -591,15 +758,15 @@ static rt_err_t gd32_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_
nvic_irq_enable(irqmap->irqno, 5U, 0U);
#endif
/* connect EXTI line to GPIO pin */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
syscfg_exti_line_config(index->port_src, index->pin_src);
#else
gpio_exti_source_select(index->port_src, index->pin_src);
#endif
/* configure EXTI line */
- exti_init((exti_line_enum)(index->pin), EXTI_INTERRUPT, trigger_mode);
- exti_interrupt_flag_clear((exti_line_enum)(index->pin));
+ exti_init((exti_line_enum)(index->exit_line), EXTI_INTERRUPT, trigger_mode);
+ exti_interrupt_flag_clear((exti_line_enum)(index->exit_line));
rt_hw_interrupt_enable(level);
}
@@ -620,13 +787,12 @@ static rt_err_t gd32_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_
return RT_EOK;
}
-const static struct rt_pin_ops gd32_pin_ops =
-{
+const static struct rt_pin_ops gd32_pin_ops = {
.pin_mode = gd32_pin_mode,
.pin_write = gd32_pin_write,
.pin_read = gd32_pin_read,
.pin_attach_irq = gd32_pin_attach_irq,
- .pin_detach_irq= gd32_pin_detach_irq,
+ .pin_detach_irq = gd32_pin_detach_irq,
.pin_irq_enable = gd32_pin_irq_enable,
RT_NULL,
};
@@ -651,10 +817,16 @@ rt_inline void pin_irq_hdr(int irqno)
*/
void GD32_GPIO_EXTI_IRQHandler(rt_int8_t exti_line)
{
- if(RESET != exti_interrupt_flag_get((exti_line_enum)(1 << exti_line)))
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
+ exti_line_enum pin_exti_line = exti_line;
+#else
+ exti_line_enum pin_exti_line = 1 << exti_line;
+#endif
+
+ if (RESET != exti_interrupt_flag_get(pin_exti_line))
{
pin_irq_hdr(exti_line);
- exti_interrupt_flag_clear((exti_line_enum)(1 << exti_line));
+ exti_interrupt_flag_clear(pin_exti_line);
}
}
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.h b/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.h
index 7e31b6c72d1..a79efc7d9c6 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.h
+++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_gpio.h
@@ -29,6 +29,8 @@ extern "C" {
#include "gd32f4xx_gpio.h"
#elif defined SOC_SERIES_GD32H7xx
#include "gd32h7xx_gpio.h"
+#elif defined SOC_SERIES_GD32H75e
+#include "gd32h75e_gpio.h"
#elif defined SOC_SERIES_GD32E50x
#include "gd32e50x_gpio.h"
#elif defined SOC_SERIES_GD32F5xx
@@ -39,11 +41,12 @@ extern "C" {
#define __GD32_PORT(port) GPIO##port
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
+#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x || defined SOC_SERIES_GD32H75E || defined SOC_SERIES_GD32H7xx
#define GD32_PIN(index, port, pin) {index, RCU_GPIO##port, \
GPIO##port, GPIO_PIN_##pin, \
EXTI_SOURCE_GPIO##port, \
- EXTI_SOURCE_PIN##pin}
+ EXTI_SOURCE_PIN##pin, \
+ EXTI_##pin}
#else
#define GD32_PIN(index, port, pin) {index, RCU_GPIO##port, \
GPIO##port, GPIO_PIN_##pin, \
@@ -70,6 +73,7 @@ struct pin_index
rt_uint32_t pin;
rt_uint8_t port_src;
rt_uint8_t pin_src;
+ rt_uint32_t exit_line;
};
struct pin_irq_map
@@ -78,6 +82,9 @@ struct pin_irq_map
IRQn_Type irqno;
};
+int get_pin_config(const char *pin_name, uint32_t *port, uint32_t *pin, rcu_periph_enum *clk);
+int pin_alternate_config(const char *alternate, uint32_t *af);
+
#ifdef __cplusplus
}
#endif
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c b/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c
index 305d283613f..610cf8eb248 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c
+++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c
@@ -6,9 +6,13 @@
* Change Logs:
* Date Author Notes
* 2021-08-20 BruceOu first implementation
+ * 2025-09-29 WangShun optimize the serial driver
+ * 2025-11-13 kurisaw general GD driver adaptation
*/
-
+#include "board.h"
+#include
#include "drv_usart.h"
+#include "uart_config.h"
#ifdef RT_USING_SERIAL
@@ -17,7 +21,18 @@
!defined(BSP_USING_UART4) && !defined(BSP_USING_UART5) && \
!defined(BSP_USING_UART6) && !defined(BSP_USING_UART7)
#error "Please define at least one UARTx"
+#endif
+#if defined(SOC_SERIES_GD32E50x) || defined(SOC_SERIES_GD32F10x) || defined(SOC_SERIES_GD32F20x) || defined(SOC_SERIES_GD32F30x)
+ #define gpio_output_options_set gpio_init
+ #define GPIO_OTYPE GPIO_MODE_OUT_PP
+ #define GPIO_OSPEED GPIO_OSPEED_50MHZ
+#elif defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
+ #define GPIO_OTYPE GPIO_OTYPE_PP
+ #define GPIO_OSPEED GPIO_OSPEED_60MHZ
+#elif defined(SOC_SERIES_GD32F4xx) || defined(SOC_SERIES_GD32F5xx) || defined(SOC_SERIES_GD32E23x)
+ #define GPIO_OTYPE GPIO_OTYPE_PP
+ #define GPIO_OSPEED GPIO_OSPEED_50MHZ
#endif
#include
@@ -39,7 +54,7 @@ struct rt_serial_device serial0;
gd32_uart_dma uart0_rxdma = {
DMA0,
DMA_CH0,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART0_RX,
#endif
DMA_INTF_FTFIF,
@@ -49,7 +64,7 @@ gd32_uart_dma uart0_rxdma = {
gd32_uart_dma uart0_txdma = {
DMA1,
DMA_CH0,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART0_TX,
#endif
DMA_INTF_FTFIF,
@@ -103,7 +118,7 @@ struct rt_serial_device serial1;
gd32_uart_dma uart1_rxdma = {
DMA0,
DMA_CH1,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART1_RX,
#endif
DMA_INTF_FTFIF,
@@ -143,7 +158,7 @@ struct rt_serial_device serial2;
gd32_uart_dma uart2_rxdma = {
DMA0,
DMA_CH2,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART2_RX,
#endif
DMA_INTF_FTFIF,
@@ -153,7 +168,7 @@ gd32_uart_dma uart2_rxdma = {
gd32_uart_dma uart2_txdma = {
DMA1,
DMA_CH2,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART2_TX,
#endif
DMA_INTF_FTFIF,
@@ -207,7 +222,7 @@ struct rt_serial_device serial3;
gd32_uart_dma uart3_rxdma = {
DMA0,
DMA_CH3,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_UART3_RX,
#endif
DMA_INTF_FTFIF,
@@ -247,7 +262,7 @@ struct rt_serial_device serial4;
gd32_uart_dma uart4_rxdma = {
DMA0,
DMA_CH4,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_UART4_RX,
#endif
DMA_INTF_FTFIF,
@@ -286,7 +301,7 @@ struct rt_serial_device serial5;
gd32_uart_dma uart5_rxdma = {
DMA0,
DMA_CH5,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_USART5_RX,
#endif
DMA_INTF_FTFIF,
@@ -326,7 +341,7 @@ struct rt_serial_device serial6;
gd32_uart_dma uart6_rxdma = {
DMA0,
DMA_CH6,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_UART6_RX,
#endif
DMA_INTF_FTFIF,
@@ -366,7 +381,7 @@ struct rt_serial_device serial7;
gd32_uart_dma uart7_rxdma = {
DMA0,
DMA_CH7,
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
DMA_REQUEST_UART7_RX,
#endif
DMA_INTF_FTFIF,
@@ -399,224 +414,34 @@ void UART7_IRQHandler(void)
#endif /* BSP_USING_UART7 */
-static const struct gd32_uart uart_obj[] = {
- #ifdef BSP_USING_UART0
- {
- USART0, /* uart peripheral index */
- USART0_IRQn, /* uart iqrn */
- RCU_USART0, /* uart periph clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32H7xx
- RCU_GPIOA, RCU_GPIOA, /* tx gpio clock, rx gpio clock */
- GPIOA, GPIO_AF_7, GPIO_PIN_9, /* tx port, tx alternate, tx pin */
- GPIOA, GPIO_AF_7, GPIO_PIN_10, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- RCU_GPIOA, RCU_GPIOA, /* tx gpio clock, rx gpio clock */
- GPIOA, 0, GPIO_PIN_9, /* tx port, tx alternate, tx pin */
- GPIOA, 0, GPIO_PIN_10, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#elif defined SOC_SERIES_GD32E23x
- RCU_GPIOA, RCU_GPIOA,
- GPIOA, GPIO_AF_1, GPIO_PIN_9,
- GPIOA, GPIO_AF_1, GPIO_PIN_10,
-#else
- RCU_GPIOA, RCU_GPIOA, /* tx gpio clock, rx gpio clock */
- GPIOA, GPIO_PIN_9, /* tx port, tx pin */
- GPIOA, GPIO_PIN_10, /* rx port, rx pin */
-#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart0_rxdma,
-#ifdef RT_SERIAL_USING_TX_DMA
- &uart0_txdma,
-#endif
-#endif
- &serial0,
- "uart0",
- },
- #endif
-
- #ifdef BSP_USING_UART1
- {
- USART1, /* uart peripheral index */
- USART1_IRQn, /* uart iqrn */
- RCU_USART1, /* uart periph clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx
- RCU_GPIOA, RCU_GPIOA, /* tx gpio clock, rx gpio clock */
- GPIOA, GPIO_AF_7, GPIO_PIN_2, /* tx port, tx alternate, tx pin */
- GPIOA, GPIO_AF_7, GPIO_PIN_3, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- RCU_GPIOA, RCU_GPIOA, /* tx gpio clock, rx gpio clock */
- GPIOA, 0, GPIO_PIN_2, /* tx port, tx alternate, tx pin */
- GPIOA, 0, GPIO_PIN_3, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#elif defined SOC_SERIES_GD32E23x
- RCU_GPIOA, RCU_GPIOA,
- GPIOA, GPIO_AF_1, GPIO_PIN_14,
- GPIOA, GPIO_AF_1, GPIO_PIN_15,
-#else
- RCU_GPIOA, RCU_GPIOA, /* periph clock, tx gpio clock, rt gpio clock */
- GPIOA, GPIO_PIN_2, /* tx port, tx pin */
- RCU_GPIOA, RCU_GPIOA, /* periph clock, tx gpio clock, rt gpio clock */
- GPIOA, GPIO_PIN_2, /* tx port, tx pin */
- GPIOA, GPIO_PIN_3, /* rx port, rx pin */
-#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart1_rxdma,
-#endif
- &serial1,
- "uart1",
- },
- #endif
-
- #ifdef BSP_USING_UART2
- {
- USART2, /* uart peripheral index */
- USART2_IRQn, /* uart iqrn */
- RCU_USART2, /* uart periph clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx
- RCU_GPIOB, RCU_GPIOB, /* tx gpio clock, rt gpio clock */
- GPIOB, GPIO_AF_7, GPIO_PIN_10, /* tx port, tx alternate, tx pin */
- GPIOB, GPIO_AF_7, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- RCU_GPIOB, RCU_GPIOB, /* tx gpio clock, rx gpio clock */
- GPIOB, 0, GPIO_PIN_10, /* tx port, tx alternate, tx pin */
- GPIOB, 0, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#else
- RCU_GPIOB, RCU_GPIOB, /* tx gpio clock, rt gpio clock */
- GPIOB, GPIO_PIN_10, /* tx port, tx pin */
- GPIOB, GPIO_PIN_11, /* rx port, rx pin */
-#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart2_rxdma,
-#ifdef RT_SERIAL_USING_TX_DMA
- &uart2_txdma,
-#endif
-#endif
- &serial2,
- "uart2",
- },
- #endif
-
- #ifdef BSP_USING_UART3
- {
- UART3, /* uart peripheral index */
- UART3_IRQn, /* uart iqrn */
- RCU_UART3, /* uart periph clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32H7xx
- RCU_GPIOC, RCU_GPIOC, /* tx gpio clock, rt gpio clock */
- GPIOC, GPIO_AF_8, GPIO_PIN_10, /* tx port, tx alternate, tx pin */
- GPIOC, GPIO_AF_8, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- RCU_GPIOC, RCU_GPIOC, /* tx gpio clock, rx gpio clock */
- GPIOC, 0, GPIO_PIN_10, /* tx port, tx alternate, tx pin */
- GPIOC, 0, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#else
- RCU_GPIOC, RCU_GPIOC, /* periph clock, tx gpio clock, rt gpio clock */
- GPIOC, GPIO_PIN_10, /* tx port, tx pin */
- GPIOC, GPIO_PIN_11, /* rx port, rx pin */
+static const struct gd32_uart uart_obj[] =
+{
+#ifdef BSP_USING_UART0
+ UART0_CONFIG,
#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart3_rxdma,
+#ifdef BSP_USING_UART1
+ UART1_CONFIG,
#endif
- &serial3,
- "uart3",
- },
- #endif
-
- #ifdef BSP_USING_UART4
- {
- UART4, /* uart peripheral index */
- UART4_IRQn, /* uart iqrn */
- RCU_UART4, RCU_GPIOC, RCU_GPIOD, /* periph clock, tx gpio clock, rt gpio clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32H7xx
- GPIOC, GPIO_AF_8, GPIO_PIN_12, /* tx port, tx alternate, tx pin */
- GPIOD, GPIO_AF_8, GPIO_PIN_2, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- GPIOC, 0, GPIO_PIN_12, /* tx port, tx alternate, tx pin */
- GPIOD, 0, GPIO_PIN_2, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#else
- GPIOC, GPIO_PIN_12, /* tx port, tx pin */
- GPIOD, GPIO_PIN_2, /* rx port, rx pin */
+#ifdef BSP_USING_UART2
+ UART2_CONFIG,
#endif
- &serial4,
- "uart4",
- },
- #endif
-
- #ifdef BSP_USING_UART5
- {
- USART5, /* uart peripheral index */
- USART5_IRQn, /* uart iqrn */
- RCU_USART5, RCU_GPIOC, RCU_GPIOC, /* periph clock, tx gpio clock, rt gpio clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx
- GPIOC, GPIO_AF_8, GPIO_PIN_6, /* tx port, tx alternate, tx pin */
- GPIOC, GPIO_AF_8, GPIO_PIN_7, /* rx port, rx alternate, rx pin */
-#elif defined (SOC_SERIES_GD32H7xx)
- GPIOC, GPIO_AF_7, GPIO_PIN_6, /* tx port, tx alternate, tx pin */
- GPIOC, GPIO_AF_7, GPIO_PIN_7, /* rx port, rx alternate, rx pin */
-#elif defined SOC_SERIES_GD32E50x
- GPIOC, AFIO_PC6_USART5_CFG, GPIO_PIN_6, /* tx port, tx alternate, tx pin */
- GPIOC, AFIO_PC7_USART5_CFG, GPIO_PIN_7, /* rx port, rx alternate, rx pin */
- 0, /* afio remap cfg */
-#else
- GPIOC, GPIO_PIN_6, /* tx port, tx pin */
- GPIOC, GPIO_PIN_7, /* rx port, rx pin */
+#ifdef BSP_USING_UART3
+ UART3_CONFIG,
#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart5_rxdma,
-#endif
- &serial5,
- "uart5",
- },
- #endif
-
- #ifdef BSP_USING_UART6
- {
- UART6, /* uart peripheral index */
- UART6_IRQn, /* uart iqrn */
- RCU_UART6, RCU_GPIOE, RCU_GPIOE, /* periph clock, tx gpio clock, rt gpio clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx
- GPIOE, GPIO_AF_8, GPIO_PIN_7, /* tx port, tx alternate, tx pin */
- GPIOE, GPIO_AF_8, GPIO_PIN_8, /* rx port, rx alternate, rx pin */
-#elif defined (SOC_SERIES_GD32H7xx)
- GPIOE, GPIO_AF_7, GPIO_PIN_8, // tx port, tx alternate, tx pin
- GPIOE, GPIO_AF_7, GPIO_PIN_7, // rx port, rx alternate, rx pin
-#else
- GPIOE, GPIO_PIN_7, /* tx port, tx pin */
- GPIOE, GPIO_PIN_8, /* rx port, rx pin */
+#ifdef BSP_USING_UART4
+ UART4_CONFIG,
#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart6_rxdma,
+#ifdef BSP_USING_UART5
+ UART5_CONFIG,
#endif
- &serial6,
- "uart6",
- },
- #endif
-
- #ifdef BSP_USING_UART7
- {
- UART7, /* uart peripheral index */
- UART7_IRQn, /* uart iqrn */
- RCU_UART7, RCU_GPIOE, RCU_GPIOE, /* periph clock, tx gpio clock, rt gpio clock */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32H7xx
- GPIOE, GPIO_AF_8, GPIO_PIN_1, /* tx port, tx alternate, tx pin */
- GPIOE, GPIO_AF_8, GPIO_PIN_0, /* rx port, rx alternate, rx pin */
-#else
- GPIOE, GPIO_PIN_0, /* tx port, tx pin */
- GPIOE, GPIO_PIN_1, /* rx port, rx pin */
+#ifdef BSP_USING_UART6
+ UART6_CONFIG,
#endif
-#ifdef RT_SERIAL_USING_DMA
- &uart7_rxdma,
+#ifdef BSP_USING_UART7
+ UART7_CONFIG,
#endif
- &serial7,
- "uart7",
- },
- #endif
};
-
/**
* @brief UART MSP Initialization
* This function configures the hardware resources used in this example:
@@ -628,70 +453,46 @@ static const struct gd32_uart uart_obj[] = {
*/
void gd32_uart_gpio_init(struct gd32_uart *uart)
{
- /* enable USART clock */
- rcu_periph_clock_enable(uart->tx_gpio_clk);
- rcu_periph_clock_enable(uart->rx_gpio_clk);
- rcu_periph_clock_enable(uart->per_clk);
+ rt_uint32_t tx_port, rx_port;
+ rt_uint32_t tx_pin, rx_pin;
+ rt_uint32_t pin_af;
+ rcu_periph_enum tx_periph, rx_periph;
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
- /* connect port to USARTx_Tx */
- gpio_af_set(uart->tx_port, uart->tx_af, uart->tx_pin);
+ if (get_pin_config(uart->tx_pin_name, &tx_port, &tx_pin, &tx_periph) != RT_EOK)
+ {
+ return;
+ }
- /* connect port to USARTx_Rx */
- gpio_af_set(uart->rx_port, uart->rx_af, uart->rx_pin);
+ if (get_pin_config(uart->rx_pin_name, &rx_port, &rx_pin, &rx_periph) != RT_EOK)
+ {
+ return;
+ }
- /* configure USART Tx as alternate function push-pull */
- gpio_mode_set(uart->tx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, uart->tx_pin);
- gpio_output_options_set(uart->tx_port, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, uart->tx_pin);
+ pin_alternate_config(uart->alternate, &pin_af);
- /* configure USART Rx as alternate function push-pull */
- gpio_mode_set(uart->rx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, uart->rx_pin);
- gpio_output_options_set(uart->rx_port, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, uart->rx_pin);
+ /* enable USART clock */
+ rcu_periph_clock_enable(tx_periph);
+ rcu_periph_clock_enable(rx_periph);
+ rcu_periph_clock_enable(uart->per_clk);
-#elif defined SOC_SERIES_GD32H7xx
+#if !defined(SOC_SERIES_GD32E50x) && !defined(SOC_SERIES_GD32F10x) && !defined(SOC_SERIES_GD32F20x) && !defined(SOC_SERIES_GD32F30x)
/* connect port to USARTx_Tx */
- gpio_af_set(uart->tx_port, uart->tx_af, uart->tx_pin);
-
+ gpio_af_set(tx_port, pin_af, tx_pin);
/* connect port to USARTx_Rx */
- gpio_af_set(uart->rx_port, uart->rx_af, uart->rx_pin);
+ gpio_af_set(rx_port, pin_af, rx_pin);
+#endif
/* configure USART Tx as alternate function push-pull */
- gpio_mode_set(uart->tx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, uart->tx_pin);
- gpio_output_options_set(uart->tx_port, GPIO_OTYPE_PP, GPIO_OSPEED_60MHZ, uart->tx_pin);
+#if !defined(SOC_SERIES_GD32E50x) && !defined(SOC_SERIES_GD32F10x) && !defined(SOC_SERIES_GD32F20x) && !defined(SOC_SERIES_GD32F30x)
+ gpio_mode_set(tx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, tx_pin);
+#endif
+ gpio_output_options_set(tx_port, GPIO_OTYPE, GPIO_OSPEED, tx_pin);
/* configure USART Rx as alternate function push-pull */
- gpio_mode_set(uart->rx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, uart->rx_pin);
- gpio_output_options_set(uart->rx_port, GPIO_OTYPE_PP, GPIO_OSPEED_60MHZ, uart->rx_pin);
-
-#elif defined SOC_SERIES_GD32E50x
- /* configure remap function */
- if (uart->uart_remap != 0 || uart->tx_af != 0 || uart->rx_af != 0)
- {
- rcu_periph_clock_enable(RCU_AF);
- gpio_pin_remap_config(uart->uart_remap, ENABLE);
- }
-
- /* connect port to USARTx_Tx */
- gpio_init(uart->tx_port, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, uart->tx_pin);
-
- /* connect port to USARTx_Rx */
- gpio_init(uart->rx_port, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, uart->rx_pin);
-
- /* configure alternate1 function */
- if (uart->tx_af != 0 || uart->rx_af != 0)
- {
- rcu_periph_clock_enable(RCU_AF);
- gpio_afio_port_config(uart->tx_af, ENABLE);
- gpio_afio_port_config(uart->rx_af, ENABLE);
- }
-
-#else
- /* connect port to USARTx_Tx */
- gpio_init(uart->tx_port, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, uart->tx_pin);
-
- /* connect port to USARTx_Rx */
- gpio_init(uart->rx_port, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, uart->rx_pin);
+#if !defined(SOC_SERIES_GD32E50x) && !defined(SOC_SERIES_GD32F10x) && !defined(SOC_SERIES_GD32F20x) && !defined(SOC_SERIES_GD32F30x)
+ gpio_mode_set(rx_port, GPIO_MODE_AF, GPIO_PUPD_PULLUP, rx_pin);
#endif
+ gpio_output_options_set(rx_port, GPIO_OTYPE, GPIO_OSPEED, rx_pin);
NVIC_SetPriority(uart->irqn, 0);
NVIC_EnableIRQ(uart->irqn);
@@ -782,7 +583,8 @@ static rt_err_t gd32_uart_control(struct rt_serial_device *serial, int cmd, void
#ifdef RT_SERIAL_USING_DMA
/* disable DMA */
- if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX) {
+ if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX)
+ {
nvic_irq_disable(uart->uart_dma->rx_irq_ch);
/* disable interrupt */
@@ -795,7 +597,8 @@ static rt_err_t gd32_uart_control(struct rt_serial_device *serial, int cmd, void
uart->uart_dma->last_recv_index = 0;
}
#ifdef RT_SERIAL_USING_TX_DMA
- else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX) {
+ else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX)
+ {
nvic_irq_disable(uart->uart_tx_dma->rx_irq_ch);
dma_channel_disable(uart->uart_tx_dma->dma_periph, uart->uart_tx_dma->dma_ch);
@@ -815,11 +618,13 @@ static rt_err_t gd32_uart_control(struct rt_serial_device *serial, int cmd, void
#ifdef RT_SERIAL_USING_DMA
case RT_DEVICE_CTRL_CONFIG:
- if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX) {
+ if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX)
+ {
gd32_dma_config(serial, ctrl_arg);
}
#ifdef RT_SERIAL_USING_TX_DMA
- else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX) {
+ else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX)
+ {
gd32_dma_tx_config(serial, ctrl_arg);
}
#endif
@@ -909,7 +714,8 @@ static void gd32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
struct rt_serial_rx_fifo *rx_fifo = (struct rt_serial_rx_fifo *)serial->serial_rx;
/* wait IDLEF set and clear it */
- while(RESET == usart_flag_get(uart->uart_periph, USART_FLAG_IDLE)) {
+ while(RESET == usart_flag_get(uart->uart_periph, USART_FLAG_IDLE))
+ {
rt_thread_mdelay(10);
}
@@ -917,9 +723,11 @@ static void gd32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag)
/* enable transmit idle interrupt */
usart_interrupt_enable(uart->uart_periph, USART_INT_IDLE);
/* DMA clock enable */
- if(DMA0 == uart->uart_dma->dma_periph) {
+ if(DMA0 == uart->uart_dma->dma_periph)
+ {
rcu_periph_clock_enable(RCU_DMA0);
- } else if(DMA1 == uart->uart_dma->dma_periph) {
+ } else if(DMA1 == uart->uart_dma->dma_periph)
+ {
rcu_periph_clock_enable(RCU_DMA1);
} else {
Error_Handler();
@@ -951,9 +759,11 @@ static void gd32_dma_tx_config(struct rt_serial_device *serial, rt_ubase_t flag)
struct rt_serial_rx_fifo *rx_fifo = (struct rt_serial_rx_fifo *)serial->serial_rx;
/* DMA clock enable */
- if(DMA0 == uart->uart_tx_dma->dma_periph) {
+ if(DMA0 == uart->uart_tx_dma->dma_periph)
+ {
rcu_periph_clock_enable(RCU_DMA0);
- } else if(DMA1 == uart->uart_tx_dma->dma_periph) {
+ } else if(DMA1 == uart->uart_tx_dma->dma_periph)
+ {
rcu_periph_clock_enable(RCU_DMA1);
} else {
Error_Handler();
@@ -1076,7 +886,8 @@ static void dma_uart_rx_idle_isr(struct rt_serial_device *serial)
recv_total_index = uart->uart_dma->setting_recv_len -
dma_transfer_number_get(uart->uart_dma->dma_periph, uart->uart_dma->dma_ch);
- if (recv_total_index >= uart->uart_dma->last_recv_index) {
+ if (recv_total_index >= uart->uart_dma->last_recv_index)
+ {
recv_len = recv_total_index - uart->uart_dma->last_recv_index;
} else {
recv_len = uart->uart_dma->setting_recv_len - uart->uart_dma->last_recv_index + recv_total_index;
@@ -1114,14 +925,16 @@ static void dma_rx_done_isr(struct rt_serial_device *serial)
rt_memcpy(rx_fifo_end_ptr, rx_fifo_buf_cache_bk, sizeof(rx_fifo_buf_cache_bk));
#endif
- if (dma_flag_get(uart->uart_dma->dma_periph, uart->uart_dma->dma_ch, uart->uart_dma->rx_flag) != RESET) {
+ if (dma_flag_get(uart->uart_dma->dma_periph, uart->uart_dma->dma_ch, uart->uart_dma->rx_flag) != RESET)
+ {
/* disable dma, stop receive data */
dma_channel_disable(uart->uart_dma->dma_periph, uart->uart_dma->dma_ch);
recv_total_index = uart->uart_dma->setting_recv_len -
dma_transfer_number_get(uart->uart_dma->dma_periph, uart->uart_dma->dma_ch);
- if (recv_total_index >= uart->uart_dma->last_recv_index) {
+ if (recv_total_index >= uart->uart_dma->last_recv_index)
+ {
recv_len = recv_total_index - uart->uart_dma->last_recv_index;
} else {
recv_len = uart->uart_dma->setting_recv_len - uart->uart_dma->last_recv_index + recv_total_index;
@@ -1172,6 +985,7 @@ static void GD32_UART_IRQHandler(struct rt_serial_device *serial)
usart_interrupt_disable(uart->uart_periph, USART_INT_TC);
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DMADONE);
}
+
if (usart_flag_get(uart->uart_periph, USART_FLAG_ORERR) == SET)
{
usart_flag_clear(uart->uart_periph, USART_FLAG_ORERR);
@@ -1216,7 +1030,7 @@ int rt_hw_usart_init(void)
flag |= RT_DEVICE_FLAG_DMA_TX;
#endif
#endif
- /* register UART1 device */
+ /* register device */
result = rt_hw_serial_register(uart_obj[i].serial,
uart_obj[i].device_name,
flag,
@@ -1228,3 +1042,4 @@ int rt_hw_usart_init(void)
}
#endif
+
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.h b/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.h
index 774657b5818..8257a879dd3 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.h
+++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_usart.h
@@ -6,6 +6,8 @@
* Change Logs:
* Date Author Notes
* 2021-08-20 BruceOu first implementation
+ * 2025-10-09 WangShun optimize the serial driver
+ * 2025-11-13 kurisaw general GD driver adaptation
*/
#ifndef __DRV_USART_H__
@@ -19,7 +21,7 @@
extern "C" {
#endif
-#ifndef SOC_SERIES_GD32H7xx
+#if !defined(SOC_SERIES_GD32H7xx) || !defined(SOC_SERIES_GD32H75E)
#undef RT_SERIAL_USING_DMA
#endif
#define UART_ENABLE_IRQ(n) NVIC_EnableIRQ((n))
@@ -33,7 +35,7 @@ typedef struct
uint32_t dma_periph;
/* dma channel */
dma_channel_enum dma_ch;
-#ifdef SOC_SERIES_GD32H7xx
+#if defined(SOC_SERIES_GD32H7xx) || defined(SOC_SERIES_GD32H75E)
/* rx dma request */
uint32_t dma_mux_req_rx;
#endif
@@ -49,31 +51,16 @@ typedef struct
#endif
/* GD32 uart driver */
-/* Todo: compress uart info */
+
struct gd32_uart
{
- uint32_t uart_periph; /* Todo: 3bits */
- IRQn_Type irqn; /* Todo: 7bits */
- rcu_periph_enum per_clk; /* Todo: 5bits */
- rcu_periph_enum tx_gpio_clk; /* Todo: 5bits */
- rcu_periph_enum rx_gpio_clk; /* Todo: 5bits */
- uint32_t tx_port; /* Todo: 4bits */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
- uint16_t tx_af; /* Todo: 4bits */
-#elif defined SOC_SERIES_GD32E50x
- uint32_t tx_af; /* alternate1 cfg */
-#endif
- uint16_t tx_pin; /* Todo: 4bits */
- uint32_t rx_port; /* Todo: 4bits */
-#if defined SOC_SERIES_GD32F4xx || defined SOC_SERIES_GD32H7xx || defined SOC_SERIES_GD32F5xx || defined SOC_SERIES_GD32E23x
- uint16_t rx_af; /* Todo: 4bits */
-#elif defined SOC_SERIES_GD32E50x
- uint32_t rx_af; /* alternate1 cfg */
-#endif
- uint16_t rx_pin; /* Todo: 4bits */
-#if defined SOC_SERIES_GD32E50x
- uint32_t uart_remap; /* remap */
-#endif
+ uint32_t uart_periph; /* Instance */
+ IRQn_Type irqn; /* irqn */
+ rcu_periph_enum per_clk; /* uart_clk */
+
+ const char *tx_pin_name; /* tx pin name */
+ const char *rx_pin_name; /* rx pin name */
+ const char *alternate; /* pin alternate */
#ifdef RT_SERIAL_USING_DMA
gd32_uart_dma *uart_dma;
@@ -82,7 +69,7 @@ struct gd32_uart
#endif
#endif
- struct rt_serial_device * serial;
+ struct rt_serial_device * serial; /* serial device */
char *device_name;
};