diff --git a/bsp/gd32/arm/gd32407v-lckfb/.config b/bsp/gd32/arm/gd32407v-lckfb/.config
index f8a0442e0f6..863317c00f0 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/.config
+++ b/bsp/gd32/arm/gd32407v-lckfb/.config
@@ -104,8 +104,6 @@
#
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
# end of rt_strnlen options
-
-# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
# end of klibc options
CONFIG_RT_NAME_MAX=8
@@ -207,6 +205,7 @@ CONFIG_FINSH_THREAD_PRIORITY=20
CONFIG_FINSH_THREAD_STACK_SIZE=4096
CONFIG_FINSH_USING_HISTORY=y
CONFIG_FINSH_HISTORY_LINES=5
+# CONFIG_FINSH_USING_WORD_OPERATION is not set
CONFIG_FINSH_USING_SYMTAB=y
CONFIG_FINSH_CMD_SIZE=80
CONFIG_MSH_USING_BUILT_IN_COMMANDS=y
@@ -389,6 +388,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_FREEMODBUS is not set
# CONFIG_PKG_USING_NANOPB is not set
# CONFIG_PKG_USING_WIFI_HOST_DRIVER is not set
+# CONFIG_PKG_USING_ESP_HOSTED is not set
#
# Wi-Fi
@@ -633,6 +633,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ZDEBUG is not set
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
+# CONFIG_PKG_USING_THREAD_METRIC is not set
# end of tools packages
#
@@ -808,6 +809,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_NRF5X_SDK is not set
# CONFIG_PKG_USING_NRFX is not set
+# CONFIG_PKG_USING_RASPBERRYPI_PICO_RP2350_SDK is not set
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
# CONFIG_PKG_USING_MM32 is not set
@@ -850,6 +852,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# HC32 DDL Drivers
#
+# CONFIG_PKG_USING_HC32F3_CMSIS_DRIVER is not set
+# CONFIG_PKG_USING_HC32F3_SERIES_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_SERIES_DRIVER is not set
# end of HC32 DDL Drivers
@@ -1057,6 +1061,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_SEAN_WS2812B is not set
# CONFIG_PKG_USING_IC74HC165 is not set
# CONFIG_PKG_USING_IST8310 is not set
+# CONFIG_PKG_USING_ST7789_SPI is not set
# CONFIG_PKG_USING_SPI_TOOLS is not set
# end of peripheral libraries and drivers
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.ewt b/bsp/gd32/arm/gd32407v-lckfb/project.ewt
index 03124a4a878..92a8523eb48 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.ewt
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.ewt
@@ -2946,9 +2946,6 @@
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
-
- $PROJ_DIR$\..\libraries\gd32_drivers\drv_soft_i2c.c
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_usart.c
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx b/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
index 2e6fb659632..f652a9542ea 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.uvoptx
@@ -73,7 +73,7 @@
0
- 0
+ 1
0
1
@@ -567,8 +567,8 @@
0
0
0
- ..\..\..\..\components\finsh\cmd.c
- cmd.c
+ ..\..\..\..\components\finsh\msh_parse.c
+ msh_parse.c
0
0
@@ -579,8 +579,8 @@
0
0
0
- ..\..\..\..\components\finsh\msh_parse.c
- msh_parse.c
+ ..\..\..\..\components\finsh\cmd.c
+ cmd.c
0
0
@@ -787,8 +787,8 @@
0
0
0
- ..\..\..\..\src\klibc\kstring.c
- kstring.c
+ ..\..\..\..\src\klibc\kerrno.c
+ kerrno.c
0
0
@@ -799,8 +799,8 @@
0
0
0
- ..\..\..\..\src\klibc\rt_vsscanf.c
- rt_vsscanf.c
+ ..\..\..\..\src\klibc\kstdio.c
+ kstdio.c
0
0
@@ -811,8 +811,8 @@
0
0
0
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
+ rt_vsscanf.c
0
0
@@ -823,8 +823,8 @@
0
0
0
- ..\..\..\..\src\klibc\kstdio.c
- kstdio.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ rt_vsnprintf_tiny.c
0
0
@@ -835,8 +835,8 @@
0
0
0
- ..\..\..\..\src\klibc\kerrno.c
- kerrno.c
+ ..\..\..\..\src\klibc\kstring.c
+ kstring.c
0
0
diff --git a/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx b/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
index b7f227628bb..c4e33c74cf6 100644
--- a/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
+++ b/bsp/gd32/arm/gd32407v-lckfb/project.uvprojx
@@ -10,13 +10,13 @@
rt-thread
0x4
ARM-ADS
- 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 5060750::V5.06 update 6 (build 750)::.\ARMCC
0
GD32F407VE
GigaDevice
- GigaDevice.GD32F4xx_DFP.3.0.3
+ 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
@@ -338,9 +338,9 @@
0
- __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, GD32F407, __STDC_LIMIT_MACROS, RT_USING_LIBC, USE_STDPERIPH_DRIVER, LCKFB_SKYSTART_GD32F407V, RT_USING_ARMLIBC
+ GD32F407, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, USE_STDPERIPH_DRIVER, __RTTHREAD__, LCKFB_SKYSTART_GD32F407V, RT_USING_LIBC
- ..\..\..\..\include;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\finsh;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\libcpu\arm\cortex-m4;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;board;..\..\..\..\libcpu\arm\common;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;applications;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\include;packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;.;..\libraries\gd32_drivers;..\..\..\..\components\drivers\include
+ ..\..\..\..\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
@@ -489,7 +489,7 @@
__RT_IPC_SOURCE__
-
+
@@ -545,7 +545,7 @@
__RT_IPC_SOURCE__
-
+
@@ -601,7 +601,7 @@
__RT_IPC_SOURCE__
-
+
@@ -657,7 +657,7 @@
__RT_IPC_SOURCE__
-
+
@@ -713,7 +713,7 @@
__RT_IPC_SOURCE__
-
+
@@ -769,7 +769,7 @@
__RT_IPC_SOURCE__
-
+
@@ -825,7 +825,7 @@
__RT_IPC_SOURCE__
-
+
@@ -881,7 +881,7 @@
__RT_IPC_SOURCE__
-
+
@@ -937,7 +937,7 @@
__RT_IPC_SOURCE__
-
+
@@ -993,7 +993,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1049,7 +1049,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1105,7 +1105,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1161,7 +1161,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1217,7 +1217,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1273,7 +1273,7 @@
__RT_IPC_SOURCE__
-
+
@@ -1315,14 +1315,14 @@
..\..\..\..\components\finsh\msh.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
@@ -1379,7 +1379,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1435,7 +1435,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1491,7 +1491,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1547,7 +1547,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1603,7 +1603,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1659,7 +1659,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1715,7 +1715,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1771,7 +1771,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1827,7 +1827,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1883,7 +1883,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1939,7 +1939,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -1995,7 +1995,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -2051,7 +2051,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -2107,7 +2107,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -2163,7 +2163,7 @@
__RT_KERNEL_SOURCE__
-
+
@@ -2175,9 +2175,14 @@
klibc
- kstring.c
+ kerrno.c
1
- ..\..\..\..\src\klibc\kstring.c
+ ..\..\..\..\src\klibc\kerrno.c
+
+
+ kstdio.c
+ 1
+ ..\..\..\..\src\klibc\kstdio.c
rt_vsscanf.c
@@ -2190,14 +2195,9 @@
..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
- kstdio.c
- 1
- ..\..\..\..\src\klibc\kstdio.c
-
-
- kerrno.c
+ kstring.c
1
- ..\..\..\..\src\klibc\kerrno.c
+ ..\..\..\..\src\klibc\kstring.c
diff --git a/bsp/gd32/arm/gd32407v-start/.config b/bsp/gd32/arm/gd32407v-start/.config
index 0cf3161e5c5..9db7e248809 100644
--- a/bsp/gd32/arm/gd32407v-start/.config
+++ b/bsp/gd32/arm/gd32407v-start/.config
@@ -104,8 +104,6 @@
#
# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set
# end of rt_strnlen options
-
-# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
# end of klibc options
CONFIG_RT_NAME_MAX=8
@@ -207,6 +205,7 @@ CONFIG_FINSH_THREAD_PRIORITY=20
CONFIG_FINSH_THREAD_STACK_SIZE=4096
CONFIG_FINSH_USING_HISTORY=y
CONFIG_FINSH_HISTORY_LINES=5
+# CONFIG_FINSH_USING_WORD_OPERATION is not set
CONFIG_FINSH_USING_SYMTAB=y
CONFIG_FINSH_CMD_SIZE=80
CONFIG_MSH_USING_BUILT_IN_COMMANDS=y
@@ -389,6 +388,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_FREEMODBUS is not set
# CONFIG_PKG_USING_NANOPB is not set
# CONFIG_PKG_USING_WIFI_HOST_DRIVER is not set
+# CONFIG_PKG_USING_ESP_HOSTED is not set
#
# Wi-Fi
@@ -633,6 +633,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_ZDEBUG is not set
# CONFIG_PKG_USING_RVBACKTRACE is not set
# CONFIG_PKG_USING_HPATCHLITE is not set
+# CONFIG_PKG_USING_THREAD_METRIC is not set
# end of tools packages
#
@@ -808,6 +809,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_NRF5X_SDK is not set
# CONFIG_PKG_USING_NRFX is not set
+# CONFIG_PKG_USING_RASPBERRYPI_PICO_RP2350_SDK is not set
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
# CONFIG_PKG_USING_MM32 is not set
@@ -850,6 +852,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
#
# HC32 DDL Drivers
#
+# CONFIG_PKG_USING_HC32F3_CMSIS_DRIVER is not set
+# CONFIG_PKG_USING_HC32F3_SERIES_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_SERIES_DRIVER is not set
# end of HC32 DDL Drivers
@@ -1057,6 +1061,7 @@ CONFIG_PKG_GD32_ARM_SERIES_DRIVER_VER="latest"
# CONFIG_PKG_USING_SEAN_WS2812B is not set
# CONFIG_PKG_USING_IC74HC165 is not set
# CONFIG_PKG_USING_IST8310 is not set
+# CONFIG_PKG_USING_ST7789_SPI is not set
# CONFIG_PKG_USING_SPI_TOOLS is not set
# end of peripheral libraries and drivers
@@ -1423,9 +1428,7 @@ CONFIG_BSP_USING_UART1=y
# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_UART5 is not set
# CONFIG_BSP_USING_SPI is not set
-CONFIG_BSP_USING_I2C1=y
-CONFIG_BSP_I2C1_SCL_PIN=24
-CONFIG_BSP_I2C1_SDA_PIN=25
+# CONFIG_BSP_USING_I2C1 is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_TIM is not set
# CONFIG_BSP_USING_ONCHIP_RTC is not set
diff --git a/bsp/gd32/arm/gd32407v-start/board/Kconfig b/bsp/gd32/arm/gd32407v-start/board/Kconfig
index 9eae9dc7257..924415a552e 100644
--- a/bsp/gd32/arm/gd32407v-start/board/Kconfig
+++ b/bsp/gd32/arm/gd32407v-start/board/Kconfig
@@ -253,23 +253,6 @@ menu "On-chip Peripheral Drivers"
default n
endif
- menuconfig BSP_USING_I2C1
- bool "Enable I2C1 BUS (software simulation)"
- default n
- select RT_USING_I2C
- select RT_USING_I2C_BITOPS
- select RT_USING_PIN
- if BSP_USING_I2C1
- config BSP_I2C1_SCL_PIN
- int "i2c1 scl pin number"
- range 1 216
- default 24
- config BSP_I2C1_SDA_PIN
- int "I2C1 sda pin number"
- range 1 216
- default 25
- endif
-
menuconfig BSP_USING_ADC
bool "Enable ADC"
default n
diff --git a/bsp/gd32/arm/gd32407v-start/project.ewp b/bsp/gd32/arm/gd32407v-start/project.ewp
index fbf56484468..38b274bb842 100644
--- a/bsp/gd32/arm/gd32407v-start/project.ewp
+++ b/bsp/gd32/arm/gd32407v-start/project.ewp
@@ -2056,7 +2056,6 @@
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
- $PROJ_DIR$\..\libraries\gd32_drivers\drv_soft_i2c.c
$PROJ_DIR$\..\libraries\gd32_drivers\drv_usart.c
diff --git a/bsp/gd32/arm/gd32407v-start/project.ewt b/bsp/gd32/arm/gd32407v-start/project.ewt
index 03124a4a878..92a8523eb48 100644
--- a/bsp/gd32/arm/gd32407v-start/project.ewt
+++ b/bsp/gd32/arm/gd32407v-start/project.ewt
@@ -2946,9 +2946,6 @@
$PROJ_DIR$\..\libraries\gd32_drivers\drv_gpio.c
-
- $PROJ_DIR$\..\libraries\gd32_drivers\drv_soft_i2c.c
-
$PROJ_DIR$\..\libraries\gd32_drivers\drv_usart.c
diff --git a/bsp/gd32/arm/gd32407v-start/project.uvoptx b/bsp/gd32/arm/gd32407v-start/project.uvoptx
index 263c23a06e8..0434632cd4f 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
+ *.txt; *.h; *.inc; *.md
*.plm
*.cpp
0
@@ -169,6 +169,870 @@
+
+ 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
+ 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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.uvproj b/bsp/gd32/arm/gd32407v-start/project.uvproj
index 5c96bc618d7..fe4dbccd22b 100644
--- a/bsp/gd32/arm/gd32407v-start/project.uvproj
+++ b/bsp/gd32/arm/gd32407v-start/project.uvproj
@@ -787,11 +787,6 @@
-
- drv_soft_i2c.c
- 1
- ..\libraries\gd32_drivers\drv_soft_i2c.c
-
diff --git a/bsp/gd32/arm/gd32407v-start/project.uvprojx b/bsp/gd32/arm/gd32407v-start/project.uvprojx
index ec6fd02117d..cc881d3d863 100644
--- a/bsp/gd32/arm/gd32407v-start/project.uvprojx
+++ b/bsp/gd32/arm/gd32407v-start/project.uvprojx
@@ -1,7 +1,10 @@
+
2.1
+
### uVision Project, (C) Keil Software
+
rt-thread
@@ -16,28 +19,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
@@ -59,8 +62,8 @@
0
0
-
-
+
+
0
0
0
@@ -69,8 +72,8 @@
0
0
-
-
+
+
0
0
0
@@ -80,14 +83,14 @@
1
0
fromelf --bin !L --output rtthread.bin
-
+
0
0
0
0
0
-
+
0
@@ -101,8 +104,8 @@
0
0
3
-
-
+
+
1
@@ -135,11 +138,11 @@
1
BIN\UL2CM3.DLL
-
-
-
-
-
+
+
+
+
+
0
@@ -172,7 +175,7 @@
0
0
"Cortex-M4"
-
+
0
0
0
@@ -183,6 +186,7 @@
2
0
0
+ 0
1
0
8
@@ -306,7 +310,7 @@
0x10000
-
+
1
@@ -333,10 +337,10 @@
0
0
-
- GD32F407, __RTTHREAD__, RT_USING_LIBC, __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, USE_STDPERIPH_DRIVER
-
- packages\gd32-arm-series-latest\GD32F4xx\GD32F4xx_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\smp_call;..\..\..\..\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\libraries\gd32_drivers;packages\gd32-arm-cmsis-latest\GD32F4xx;..\..\..\..\components\drivers\phy;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\finsh;..\..\..\..\libcpu\arm\cortex-m4;.;applications;..\..\..\..\libcpu\arm\common;board;..\..\..\..\components\drivers\include;packages\gd32-arm-cmsis-latest\GD32F4xx\GD\GD32F4xx\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include
+
+ 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
@@ -351,10 +355,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -366,13 +370,13 @@
0
0x08000000
0x20000000
-
+
.\gd32_rom.ld
-
-
-
-
-
+
+
+
+
+
@@ -395,50 +399,36 @@
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
@@ -454,279 +444,836 @@
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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+
+
+ 1
+
+ 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__
-
+
@@ -742,22 +1289,11 @@
1
board\board.c
-
-
drv_gpio.c
1
..\libraries\gd32_drivers\drv_gpio.c
-
-
-
- drv_soft_i2c.c
- 1
- ..\libraries\gd32_drivers\drv_soft_i2c.c
-
-
-
drv_usart.c
1
@@ -769,30 +1305,24 @@
Finsh
- cmd.c
+ shell.c
1
- ..\..\..\..\components\finsh\cmd.c
+ ..\..\..\..\components\finsh\shell.c
-
-
msh_parse.c
1
..\..\..\..\components\finsh\msh_parse.c
-
-
msh.c
1
..\..\..\..\components\finsh\msh.c
-
-
- shell.c
+ cmd.c
1
- ..\..\..\..\components\finsh\shell.c
+ ..\..\..\..\components\finsh\cmd.c
@@ -804,279 +1334,836 @@
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
+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2
+ 2
+ 2
+ 2
+ 2
+ 2
+ 2
+ 0
+ 2
+ 2
+ 2
+ 2
+ 2
+ 0
+ 0
+ 2
+ 2
+ 2
+ 2
+ 2
__RT_KERNEL_SOURCE__
-
+
@@ -1092,33 +2179,25 @@
1
..\..\..\..\src\klibc\kstdio.c
-
-
kerrno.c
1
..\..\..\..\src\klibc\kerrno.c
-
-
kstring.c
1
..\..\..\..\src\klibc\kstring.c
-
-
- rt_vsscanf.c
+ rt_vsnprintf_tiny.c
1
- ..\..\..\..\src\klibc\rt_vsscanf.c
+ ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
-
-
- rt_vsnprintf_tiny.c
+ rt_vsscanf.c
1
- ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c
+ ..\..\..\..\src\klibc\rt_vsscanf.c
@@ -1130,29 +2209,21 @@
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
@@ -1168,64 +2239,46 @@
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
@@ -1233,33 +2286,34 @@
+
+ ::CMSIS
+
+
-
+
-
+
-
+
-
+
+
<Project Info>
-
-
-
-
-
0
1
+
diff --git a/bsp/gd32/arm/gd32407v-start/rtconfig.h b/bsp/gd32/arm/gd32407v-start/rtconfig.h
index cb228a4c3fb..5d85922cf7a 100644
--- a/bsp/gd32/arm/gd32407v-start/rtconfig.h
+++ b/bsp/gd32/arm/gd32407v-start/rtconfig.h
@@ -416,9 +416,6 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
-#define BSP_USING_I2C1
-#define BSP_I2C1_SCL_PIN 24
-#define BSP_I2C1_SDA_PIN 25
/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
diff --git a/bsp/gd32/arm/libraries/gd32_drivers/SConscript b/bsp/gd32/arm/libraries/gd32_drivers/SConscript
index e11d8816ba4..6f8e59a79d9 100644
--- a/bsp/gd32/arm/libraries/gd32_drivers/SConscript
+++ b/bsp/gd32/arm/libraries/gd32_drivers/SConscript
@@ -18,11 +18,6 @@ if GetDepend(['RT_USING_SERIAL']):
src += ['drv_usart_v2.c']
else:
src += ['drv_usart.c']
-
-# add i2c drivers.
-if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']):
- if GetDepend('BSP_USING_I2C0') or GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2') or GetDepend('BSP_USING_I2C3'):
- src += ['drv_soft_i2c.c']
# add i2c hard drivers.
if GetDepend(['RT_USING_I2C']):