diff --git a/bsp/gd32/arm/gd32527I-eval/.config b/bsp/gd32/arm/gd32527I-eval/.config index db9edb54a9e..db04a3b0296 100644 --- a/bsp/gd32/arm/gd32527I-eval/.config +++ b/bsp/gd32/arm/gd32527I-eval/.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,8 @@ 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_FUNC_EXT is not set CONFIG_FINSH_USING_SYMTAB=y CONFIG_FINSH_CMD_SIZE=80 CONFIG_MSH_USING_BUILT_IN_COMMANDS=y @@ -258,7 +258,7 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_I2C is not set # CONFIG_RT_USING_PHY is not set # CONFIG_RT_USING_PHY_V2 is not set -# CONFIG_RT_USING_ADC is not set +CONFIG_RT_USING_ADC=y # CONFIG_RT_USING_DAC is not set # CONFIG_RT_USING_NULL is not set # CONFIG_RT_USING_ZERO is not set @@ -398,6 +398,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 @@ -640,6 +641,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 # @@ -857,6 +859,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 @@ -1064,6 +1068,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 @@ -1432,7 +1437,6 @@ CONFIG_BSP_USING_UART0=y # CONFIG_BSP_USING_UART6 is not set # CONFIG_BSP_USING_UART7 is not set # CONFIG_BSP_USING_SPI is not set -# 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 @@ -1441,6 +1445,8 @@ CONFIG_BSP_USING_UART0=y # CONFIG_BSP_USING_USBD is not set # CONFIG_BSP_USING_USBH is not set # CONFIG_BSP_USING_SDRAM is not set +# CONFIG_BSP_USING_CAN is not set +CONFIG_BSP_USING_GD_DBG=y # end of On-chip Peripheral Drivers # diff --git a/bsp/gd32/arm/gd32527I-eval/project.uvoptx b/bsp/gd32/arm/gd32527I-eval/project.uvoptx index afc212f0a2f..963a27944d4 100644 --- a/bsp/gd32/arm/gd32527I-eval/project.uvoptx +++ b/bsp/gd32/arm/gd32527I-eval/project.uvoptx @@ -179,914 +179,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 - - - - - Filesystem - 0 - 0 - 0 - 0 - - 5 - 25 - 1 - 0 - 0 - 0 - ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c - dfs_posix.c - 0 - 0 - - - 5 - 26 - 1 - 0 - 0 - 0 - ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c - dfs_fs.c - 0 - 0 - - - 5 - 27 - 1 - 0 - 0 - 0 - ..\..\..\..\components\dfs\dfs_v1\src\dfs.c - dfs.c - 0 - 0 - - - 5 - 28 - 1 - 0 - 0 - 0 - ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c - dfs_file.c - 0 - 0 - - - - - Finsh - 0 - 0 - 0 - 0 - - 6 - 29 - 1 - 0 - 0 - 0 - ..\..\..\..\components\finsh\msh.c - msh.c - 0 - 0 - - - 6 - 30 - 1 - 0 - 0 - 0 - ..\..\..\..\components\finsh\cmd.c - cmd.c - 0 - 0 - - - 6 - 31 - 1 - 0 - 0 - 0 - ..\..\..\..\components\finsh\msh_parse.c - msh_parse.c - 0 - 0 - - - 6 - 32 - 1 - 0 - 0 - 0 - ..\..\..\..\components\finsh\shell.c - shell.c - 0 - 0 - - - 6 - 33 - 1 - 0 - 0 - 0 - ..\..\..\..\components\finsh\msh_file.c - msh_file.c - 0 - 0 - - - - - Kernel - 0 - 0 - 0 - 0 - - 7 - 34 - 1 - 0 - 0 - 0 - ..\..\..\..\src\clock.c - clock.c - 0 - 0 - - - 7 - 35 - 1 - 0 - 0 - 0 - ..\..\..\..\src\components.c - components.c - 0 - 0 - - - 7 - 36 - 1 - 0 - 0 - 0 - ..\..\..\..\src\cpu_up.c - cpu_up.c - 0 - 0 - - - 7 - 37 - 1 - 0 - 0 - 0 - ..\..\..\..\src\defunct.c - defunct.c - 0 - 0 - - - 7 - 38 - 1 - 0 - 0 - 0 - ..\..\..\..\src\idle.c - idle.c - 0 - 0 - - - 7 - 39 - 1 - 0 - 0 - 0 - ..\..\..\..\src\ipc.c - ipc.c - 0 - 0 - - - 7 - 40 - 1 - 0 - 0 - 0 - ..\..\..\..\src\irq.c - irq.c - 0 - 0 - - - 7 - 41 - 1 - 0 - 0 - 0 - ..\..\..\..\src\kservice.c - kservice.c - 0 - 0 - - - 7 - 42 - 1 - 0 - 0 - 0 - ..\..\..\..\src\mem.c - mem.c - 0 - 0 - - - 7 - 43 - 1 - 0 - 0 - 0 - ..\..\..\..\src\mempool.c - mempool.c - 0 - 0 - - - 7 - 44 - 1 - 0 - 0 - 0 - ..\..\..\..\src\object.c - object.c - 0 - 0 - - - 7 - 45 - 1 - 0 - 0 - 0 - ..\..\..\..\src\scheduler_comm.c - scheduler_comm.c - 0 - 0 - - - 7 - 46 - 1 - 0 - 0 - 0 - ..\..\..\..\src\scheduler_up.c - scheduler_up.c - 0 - 0 - - - 7 - 47 - 1 - 0 - 0 - 0 - ..\..\..\..\src\thread.c - thread.c - 0 - 0 - - - 7 - 48 - 1 - 0 - 0 - 0 - ..\..\..\..\src\timer.c - timer.c - 0 - 0 - - - - - klibc - 0 - 0 - 0 - 0 - - 8 - 49 - 1 - 0 - 0 - 0 - ..\..\..\..\src\klibc\kerrno.c - kerrno.c - 0 - 0 - - - 8 - 50 - 1 - 0 - 0 - 0 - ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c - rt_vsnprintf_tiny.c - 0 - 0 - - - 8 - 51 - 1 - 0 - 0 - 0 - ..\..\..\..\src\klibc\kstdio.c - kstdio.c - 0 - 0 - - - 8 - 52 - 1 - 0 - 0 - 0 - ..\..\..\..\src\klibc\rt_vsscanf.c - rt_vsscanf.c - 0 - 0 - - - 8 - 53 - 1 - 0 - 0 - 0 - ..\..\..\..\src\klibc\kstring.c - kstring.c - 0 - 0 - - - - - libcpu - 0 - 0 - 0 - 0 - - 9 - 54 - 1 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\common\atomic_arm.c - atomic_arm.c - 0 - 0 - - - 9 - 55 - 1 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\common\div0.c - div0.c - 0 - 0 - - - 9 - 56 - 1 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\common\showmem.c - showmem.c - 0 - 0 - - - 9 - 57 - 2 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\cortex-m33\context_rvds.S - context_rvds.S - 0 - 0 - - - 9 - 58 - 1 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\cortex-m33\cpuport.c - cpuport.c - 0 - 0 - - - 9 - 59 - 2 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S - syscall_rvds.S - 0 - 0 - - - 9 - 60 - 1 - 0 - 0 - 0 - ..\..\..\..\libcpu\arm\cortex-m33\trustzone.c - trustzone.c - 0 - 0 - - - - - Libraries - 0 - 0 - 0 - 0 - - 10 - 61 - 2 - 0 - 0 - 0 - packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\ARM\startup_gd32f5xx.s - startup_gd32f5xx.s - 0 - 0 - - - 10 - 62 - 1 - 0 - 0 - 0 - packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Source\system_gd32f5xx.c - system_gd32f5xx.c - 0 - 0 - - - 10 - 63 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_dma.c - gd32f5xx_dma.c - 0 - 0 - - - 10 - 64 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_exti.c - gd32f5xx_exti.c - 0 - 0 - - - 10 - 65 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_gpio.c - gd32f5xx_gpio.c - 0 - 0 - - - 10 - 66 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_misc.c - gd32f5xx_misc.c - 0 - 0 - - - 10 - 67 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_rcu.c - gd32f5xx_rcu.c - 0 - 0 - - - 10 - 68 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_syscfg.c - gd32f5xx_syscfg.c - 0 - 0 - - - 10 - 69 - 1 - 0 - 0 - 0 - packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_usart.c - gd32f5xx_usart.c - 0 - 0 - - - ::CMSIS 0 diff --git a/bsp/gd32/arm/gd32527I-eval/project.uvprojx b/bsp/gd32/arm/gd32527I-eval/project.uvprojx index 8923e68478c..0e72a41228c 100644 --- a/bsp/gd32/arm/gd32527I-eval/project.uvprojx +++ b/bsp/gd32/arm/gd32527I-eval/project.uvprojx @@ -1,16 +1,12 @@ - 2.1 -
### uVision Project, (C) Keil Software
- rt-thread 0x4 ARM-ADS - 6190000::V6.19::ARMCLANG 1 @@ -19,28 +15,28 @@ GigaDevice.GD32F5xx_DFP.1.2.1 https://gd32mcu.com/data/documents/pack/ IRAM(0x20000000,0x080000) IROM(0x08000000,0x780000) CPUTYPE("Cortex-M33") FPU3(SFPU) DSP CLOCK(12000000) ELITTLE - - + + UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32F5xx_7M -FS08000000 -FL0780000 -FP0($$Device:GD32F527IS$Flash\GD32F5xx_7M.FLM)) 0 - - - - - - - - - - + + + + + + + + + + $$Device:GD32F527IS$SVD\GD32F5xx.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,15 +100,15 @@ 0 0 3 - - + + 1 - - - - + + + + SARMV8M.DLL -MPU TCM.DLL @@ -138,11 +134,11 @@ 1 BIN\UL2V8M.DLL - - - - - + + + + + 0 @@ -175,7 +171,7 @@ 0 0 "Cortex-M33" - + 0 0 0 @@ -310,7 +306,7 @@ 0x0 - + 1 @@ -337,10 +333,10 @@ 0 0 - - __STDC_LIMIT_MACROS, GD32F527, RT_USING_ARMLIBC, __RTTHREAD__, USE_STDPERIPH_DRIVER, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND - - ..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\phy;applications;..\..\..\..\components\libc\posix\io\poll;..\..\..\..\components\dfs\dfs_v1\include;..\..\..\..\components\drivers\include;.;..\..\..\..\components\finsh;..\..\..\..\components\libc\posix\ipc;..\libraries\gd32_drivers;..\..\..\..\include;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;board;..\..\..\..\libcpu\arm\common;..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\compilers\common\include;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\smp_call;packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Include;..\..\..\..\components\libc\compilers\common\extension;packages\gd32-arm-cmsis-latest\GD32F5xx;..\..\..\..\components\libc\posix\io\epoll;packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Include + + __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, GD32F527, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_LIBC + + ..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\components\libc\compilers\common\include;packages\gd32-arm-cmsis-latest\GD32F5xx;..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\components\finsh;packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Include;..\..\..\..\libcpu\arm\common;..\..\..\..\include;.;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\libc\posix\ipc;..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\components\drivers\include;..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\components\drivers\phy;..\..\..\..\components\drivers\smp_call;..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\components\libc\posix\io\poll;packages\gd32-arm-cmsis-latest\GD32F5xx\GD\GD32F5xx\Include;..\..\..\..\components\drivers\include;..\..\..\..\components\dfs\dfs_v1\include;..\libraries\gd32_drivers;applications;board @@ -355,10 +351,10 @@ 0 4 - - - - + + + + @@ -370,13 +366,13 @@ 0 0x08000000 0x20000000 - + .\board\linker_scripts\link.sct - - - - - + + + + + @@ -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,241 @@ 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__ - + + + + + + + + + + adc.c + 1 + ..\..\..\..\components\drivers\misc\adc.c + + + + + + __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 +704,22 @@ 1 board\board.c + + + + drv_adc.c + 1 + ..\libraries\gd32_drivers\drv_adc.c + + + drv_gpio.c 1 ..\libraries\gd32_drivers\drv_gpio.c + + drv_usart.c 1 @@ -1137,224 +731,74 @@ Filesystem - dfs_posix.c + dfs.c 1 - ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c + ..\..\..\..\components\dfs\dfs_v1\src\dfs.c - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 -std=c99 - + + + dfs_fs.c 1 ..\..\..\..\components\dfs\dfs_v1\src\dfs_fs.c - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 -std=c99 - + + + - dfs.c + dfs_file.c 1 - ..\..\..\..\components\dfs\dfs_v1\src\dfs.c + ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 -std=c99 - + + + - dfs_file.c + dfs_posix.c 1 - ..\..\..\..\components\dfs\dfs_v1\src\dfs_file.c + ..\..\..\..\components\dfs\dfs_v1\src\dfs_posix.c - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 -std=c99 - + @@ -1370,25 +814,33 @@ 1 ..\..\..\..\components\finsh\msh.c + + - cmd.c + msh_file.c 1 - ..\..\..\..\components\finsh\cmd.c + ..\..\..\..\components\finsh\msh_file.c + + msh_parse.c 1 ..\..\..\..\components\finsh\msh_parse.c + + - shell.c + cmd.c 1 - ..\..\..\..\components\finsh\shell.c + ..\..\..\..\components\finsh\cmd.c + + - msh_file.c + shell.c 1 - ..\..\..\..\components\finsh\msh_file.c + ..\..\..\..\components\finsh\shell.c
@@ -1400,836 +852,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__ - + @@ -2241,29 +1136,37 @@ klibc - kerrno.c + kstdio.c 1 - ..\..\..\..\src\klibc\kerrno.c + ..\..\..\..\src\klibc\kstdio.c + + rt_vsnprintf_tiny.c 1 ..\..\..\..\src\klibc\rt_vsnprintf_tiny.c + + - kstdio.c + kstring.c 1 - ..\..\..\..\src\klibc\kstdio.c + ..\..\..\..\src\klibc\kstring.c + + - rt_vsscanf.c + kerrno.c 1 - ..\..\..\..\src\klibc\rt_vsscanf.c + ..\..\..\..\src\klibc\kerrno.c + + - kstring.c + rt_vsscanf.c 1 - ..\..\..\..\src\klibc\kstring.c + ..\..\..\..\src\klibc\rt_vsscanf.c @@ -2275,31 +1178,43 @@ 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-m33\context_rvds.S + + cpuport.c 1 ..\..\..\..\libcpu\arm\cortex-m33\cpuport.c + + syscall_rvds.S 2 ..\..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S + + trustzone.c 1 @@ -2315,41 +1230,71 @@ 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_adc.c + 1 + packages\gd32-arm-series-latest\GD32F5xx\GD32F5xx_standard_peripheral\Source\gd32f5xx_adc.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 @@ -2357,26 +1302,21 @@ - - ::CMSIS - - - + - + - + - + - @@ -2386,5 +1326,4 @@ - diff --git a/bsp/gd32/arm/gd32527I-eval/rtconfig.h b/bsp/gd32/arm/gd32527I-eval/rtconfig.h index 461d7cd88ff..56091b544ce 100644 --- a/bsp/gd32/arm/gd32527I-eval/rtconfig.h +++ b/bsp/gd32/arm/gd32527I-eval/rtconfig.h @@ -151,6 +151,7 @@ #define RT_USING_SERIAL_V1 #define RT_SERIAL_USING_DMA #define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_ADC #define RT_USING_PIN /* end of Device Drivers */ @@ -418,6 +419,7 @@ #define BSP_USING_GPIO #define BSP_USING_UART #define BSP_USING_UART0 +#define BSP_USING_GD_DBG /* end of On-chip Peripheral Drivers */ /* Board extended module Drivers */ diff --git a/bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c b/bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c index 0a74d7d4342..cd48c49b070 100644 --- a/bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c +++ b/bsp/gd32/arm/libraries/gd32_drivers/drv_adc.c @@ -105,7 +105,7 @@ static void gd32_adc_gpio_init(rcu_periph_enum adc_clk, rt_base_t pin) gpio_mode_set(PIN_GDPORT(pin), GPIO_MODE_ANALOG, GPIO_PUPD_NONE, PIN_GDPIN(pin)); #else /* configure adc pin */ - gpio_init(PIN_GDPORT(pin), GPIO_MODE_AIN, GPIO_OSPEED_50MHZ, PIN_GDPIN(pin)); + gpio_init(PIN_GDPORT(pin), GPIO_MODE_ANALOG, GPIO_OSPEED_50MHZ, PIN_GDPIN(pin)); #endif } @@ -148,9 +148,9 @@ static rt_err_t gd32_adc_enabled(struct rt_adc_device *device, rt_int8_t channel adc_external_trigger_source_config(ADC_REGULAR_CHANNEL, ADC_EXTTRIG_REGULAR_NONE); adc_external_trigger_config(ADC_REGULAR_CHANNEL, ENABLE); #else - adc_channel_length_config(adc_periph, ADC_REGULAR_CHANNEL, 1); - adc_external_trigger_source_config(adc_periph, ADC_REGULAR_CHANNEL, ADC0_1_2_EXTTRIG_REGULAR_NONE); - adc_external_trigger_config(adc_periph, ADC_REGULAR_CHANNEL, ENABLE); + adc_channel_length_config(adc_periph, ADC_ROUTINE_CHANNEL, 1); + adc_external_trigger_source_config(adc_periph, ADC_ROUTINE_CHANNEL,ADC_EXTTRIG_ROUTINE_EXTI_11); + adc_external_trigger_config(adc_periph, ADC_ROUTINE_CHANNEL, ENABLE); #endif #if defined SOC_SERIES_GD32E23x @@ -209,8 +209,8 @@ static rt_err_t gd32_adc_convert(struct rt_adc_device *device, rt_int8_t channel adc_regular_channel_config(0, channel, ADC_SAMPLETIME_13POINT5); adc_software_trigger_enable(ADC_REGULAR_CHANNEL); #else - adc_regular_channel_config(adc_periph, 0, channel, ADC_SAMPLETIME_13POINT5); - adc_software_trigger_enable(adc_periph, ADC_REGULAR_CHANNEL); + adc_regular_channel_config(adc_periph, 0, channel, ADC_SAMPLETIME_480); + adc_software_trigger_enable(adc_periph, ADC_ROUTINE_CHANNEL); #endif #if defined SOC_SERIES_GD32E23x