From 581780a8a4bc1159ff357b21878fb813242f7d6f Mon Sep 17 00:00:00 2001 From: pikastech Date: Thu, 23 Dec 2021 09:51:56 +0800 Subject: [PATCH] use menuconfig to update keil project for gd32e230 --- bsp/gd32e230k-start/.config | 64 +-- bsp/gd32e230k-start/project.uvoptx | 836 +++++++++++++++++++++++++++- bsp/gd32e230k-start/project.uvprojx | 562 +++++++++---------- bsp/gd32e230k-start/rtconfig.h | 49 +- 4 files changed, 1102 insertions(+), 409 deletions(-) diff --git a/bsp/gd32e230k-start/.config b/bsp/gd32e230k-start/.config index a31949ebe6..2e87d66002 100644 --- a/bsp/gd32e230k-start/.config +++ b/bsp/gd32e230k-start/.config @@ -1,9 +1,13 @@ -# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# # # RT-Thread Kernel # CONFIG_RT_NAME_MAX=8 +# CONFIG_RT_USING_BIG_ENDIAN is not set # CONFIG_RT_USING_ARCH_DATA_TYPE is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 @@ -26,8 +30,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=256 # CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set # CONFIG_RT_USING_TINY_FFS is not set # CONFIG_RT_PRINTF_LONGLONG is not set -# end of kservice optimization - CONFIG_RT_DEBUG=y CONFIG_RT_DEBUG_COLOR=y # CONFIG_RT_DEBUG_INIT_CONFIG is not set @@ -50,7 +52,6 @@ CONFIG_RT_USING_EVENT=y CONFIG_RT_USING_MAILBOX=y CONFIG_RT_USING_MESSAGEQUEUE=y # CONFIG_RT_USING_SIGNALS is not set -# end of Inter-Thread communication # # Memory Management @@ -67,7 +68,6 @@ CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y # CONFIG_RT_USING_MEMTRACE is not set # CONFIG_RT_USING_HEAP_ISR is not set CONFIG_RT_USING_HEAP=y -# end of Memory Management # # Kernel Device Object @@ -78,10 +78,9 @@ CONFIG_RT_USING_DEVICE=y CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="uart0" -# end of Kernel Device Object - CONFIG_RT_VER_NUM=0x40100 -# end of RT-Thread Kernel +# CONFIG_RT_USING_CPU_FFS is not set +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set # # RT-Thread Components @@ -96,7 +95,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10 # C++ features # # CONFIG_RT_USING_CPLUSPLUS is not set -# end of C++ features # # Command shell @@ -116,13 +114,11 @@ CONFIG_FINSH_USING_DESCRIPTION=y # CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set # CONFIG_FINSH_USING_AUTH is not set CONFIG_FINSH_ARG_MAX=10 -# end of Command shell # # Device virtual file system # # CONFIG_RT_USING_DFS is not set -# end of Device virtual file system # # Device Drivers @@ -173,10 +169,9 @@ CONFIG_RT_SFUD_SPI_MAX_HZ=50000000 # # Using USB # +# CONFIG_RT_USING_USB is not set # CONFIG_RT_USING_USB_HOST is not set # CONFIG_RT_USING_USB_DEVICE is not set -# end of Using USB -# end of Device Drivers # # POSIX layer and C standard library @@ -204,9 +199,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # Socket is in the 'Network' category # -# end of Interprocess Communication (IPC) -# end of POSIX (Portable Operating System Interface) layer -# end of POSIX layer and C standard library # # Network @@ -216,32 +208,26 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # Socket abstraction layer # # CONFIG_RT_USING_SAL is not set -# end of Socket abstraction layer # # Network interface device # # CONFIG_RT_USING_NETDEV is not set -# end of Network interface device # # light weight TCP/IP stack # # CONFIG_RT_USING_LWIP is not set -# end of light weight TCP/IP stack # # AT commands # # CONFIG_RT_USING_AT is not set -# end of AT commands -# end of Network # # VBUS(Virtual Software BUS) # # CONFIG_RT_USING_VBUS is not set -# end of VBUS(Virtual Software BUS) # # Utilities @@ -251,14 +237,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_RT_USING_UTEST is not set # CONFIG_RT_USING_VAR_EXPORT is not set # CONFIG_RT_USING_RT_LINK is not set -# end of Utilities -# end of RT-Thread Components # # RT-Thread Utestcases # # CONFIG_RT_USING_UTESTCASES is not set -# end of RT-Thread Utestcases # # RT-Thread online packages @@ -293,17 +276,12 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # Marvell WiFi # # CONFIG_PKG_USING_WLANMARVELL is not set -# end of Marvell WiFi # # Wiced WiFi # # CONFIG_PKG_USING_WLAN_WICED is not set -# end of Wiced WiFi - # CONFIG_PKG_USING_RW007 is not set -# end of Wi-Fi - # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set # CONFIG_PKG_USING_NETUTILS is not set @@ -325,8 +303,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_JIOT-C-SDK is not set # CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set # CONFIG_PKG_USING_JOYLINK is not set -# end of IoT Cloud - # CONFIG_PKG_USING_NIMBLE is not set # CONFIG_PKG_USING_OTA_DOWNLOADER is not set # CONFIG_PKG_USING_IPMSG is not set @@ -361,7 +337,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set # CONFIG_PKG_USING_HM is not set # CONFIG_PKG_USING_SMALL_MODBUS is not set -# end of IoT - internet of things # # security packages @@ -371,7 +346,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_TINYCRYPT is not set # CONFIG_PKG_USING_TFM is not set # CONFIG_PKG_USING_YD_CRYPTO is not set -# end of security packages # # language packages @@ -380,7 +354,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_JERRYSCRIPT is not set # CONFIG_PKG_USING_MICROPYTHON is not set # CONFIG_PKG_USING_PIKASCRIPT is not set -# end of language packages # # multimedia packages @@ -391,16 +364,12 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # CONFIG_PKG_USING_LVGL is not set # CONFIG_PKG_USING_LITTLEVGL2RTT is not set -# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set -# end of LVGL: powerful and easy-to-use embedded GUI library # # u8g2: a monochrome graphic library # # CONFIG_PKG_USING_U8G2_OFFICIAL is not set # CONFIG_PKG_USING_U8G2 is not set -# end of u8g2: a monochrome graphic library - # CONFIG_PKG_USING_OPENMV is not set # CONFIG_PKG_USING_MUPDF is not set # CONFIG_PKG_USING_STEMWIN is not set @@ -420,8 +389,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # CONFIG_PKG_USING_PAINTERENGINE is not set # CONFIG_PKG_USING_PAINTERENGINE_AUX is not set -# end of PainterEngine: A cross-platform graphics application framework written in C language -# end of multimedia packages # # tools packages @@ -465,7 +432,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SOLAR_TERMS is not set # CONFIG_PKG_USING_GAN_ZHI is not set # CONFIG_PKG_USING_FDT is not set -# end of tools packages # # system packages @@ -477,7 +443,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_RT_MEMCPY_CM is not set # CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set # CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set -# end of enhanced kernel services # # acceleration: Assembly language or algorithmic acceleration packages @@ -485,14 +450,12 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_QFPLIB_M0_FULL is not set # CONFIG_PKG_USING_QFPLIB_M0_TINY is not set # CONFIG_PKG_USING_QFPLIB_M3 is not set -# end of acceleration: Assembly language or algorithmic acceleration packages # # CMSIS: ARM Cortex-M Microcontroller Software Interface Standard # # CONFIG_PKG_USING_CMSIS_5 is not set # CONFIG_PKG_USING_CMSIS_RTOS2 is not set -# end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard # # Micrium: Micrium software products porting for RT-Thread @@ -503,8 +466,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_UC_CLK is not set # CONFIG_PKG_USING_UC_COMMON is not set # CONFIG_PKG_USING_UC_MODBUS is not set -# end of Micrium: Micrium software products porting for RT-Thread - # CONFIG_RT_USING_ARDUINO is not set # CONFIG_PKG_USING_GUIENGINE is not set # CONFIG_PKG_USING_CAIRO is not set @@ -538,7 +499,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCUBOOT is not set # CONFIG_PKG_USING_TINYUSB is not set # CONFIG_PKG_USING_USB_STACK is not set -# end of system packages # # peripheral libraries and drivers @@ -615,7 +575,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_BL_MCU_SDK is not set # CONFIG_PKG_USING_SOFT_SERIAL is not set # CONFIG_PKG_USING_MB85RS16 is not set -# end of peripheral libraries and drivers # # AI packages @@ -629,7 +588,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_ULAPACK is not set # CONFIG_PKG_USING_QUEST is not set # CONFIG_PKG_USING_NAXOS is not set -# end of AI packages # # miscellaneous packages @@ -642,7 +600,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set # CONFIG_PKG_USING_NETWORK_SAMPLES is not set # CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set -# end of samples: kernel and components samples # # entertainment: terminal games and other interesting software packages @@ -656,8 +613,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SNAKE is not set # CONFIG_PKG_USING_TETRIS is not set # CONFIG_PKG_USING_DONUT is not set -# end of entertainment: terminal games and other interesting software packages - # CONFIG_PKG_USING_LIBCSV is not set # CONFIG_PKG_USING_OPTPARSE is not set # CONFIG_PKG_USING_FASTLZ is not set @@ -687,9 +642,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_MCURSES is not set # CONFIG_PKG_USING_COWSAY is not set # CONFIG_PKG_USING_TERMBOX is not set -# end of miscellaneous packages -# end of RT-Thread online packages - CONFIG_SOC_GD32E230K=y CONFIG_RT_USING_USART0=y CONFIG_RT_USING_USART1=y diff --git a/bsp/gd32e230k-start/project.uvoptx b/bsp/gd32e230k-start/project.uvoptx index 090bdb9227..56e00b8e0d 100644 --- a/bsp/gd32e230k-start/project.uvoptx +++ b/bsp/gd32e230k-start/project.uvoptx @@ -10,7 +10,7 @@ *.s*; *.src; *.a* *.obj; *.o *.lib - *.txt; *.h; *.inc + *.txt; *.h; *.inc; *.md *.plm *.cpp 0 @@ -103,7 +103,7 @@ 1 0 0 - 19 + 13 @@ -174,6 +174,838 @@ + + Applications + 0 + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 0 + applications\main.c + main.c + 0 + 0 + + + + + CPU + 0 + 0 + 0 + 0 + + 2 + 2 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\div0.c + div0.c + 0 + 0 + + + 2 + 3 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\showmem.c + showmem.c + 0 + 0 + + + 2 + 4 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\common\backtrace.c + backtrace.c + 0 + 0 + + + 2 + 5 + 2 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m23\context_rvds.S + context_rvds.S + 0 + 0 + + + 2 + 6 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m23\cpuport.c + cpuport.c + 0 + 0 + + + + + DeviceDrivers + 0 + 0 + 0 + 0 + + 3 + 7 + 1 + 0 + 0 + 0 + ..\..\components\drivers\i2c\i2c_core.c + i2c_core.c + 0 + 0 + + + 3 + 8 + 1 + 0 + 0 + 0 + ..\..\components\drivers\i2c\i2c_dev.c + i2c_dev.c + 0 + 0 + + + 3 + 9 + 1 + 0 + 0 + 0 + ..\..\components\drivers\misc\pin.c + pin.c + 0 + 0 + + + 3 + 10 + 1 + 0 + 0 + 0 + ..\..\components\drivers\serial\serial.c + serial.c + 0 + 0 + + + 3 + 11 + 1 + 0 + 0 + 0 + ..\..\components\drivers\spi\sfud\src\sfud.c + sfud.c + 0 + 0 + + + 3 + 12 + 1 + 0 + 0 + 0 + ..\..\components\drivers\spi\spi_flash_sfud.c + spi_flash_sfud.c + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + ..\..\components\drivers\spi\spi_core.c + spi_core.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\components\drivers\spi\spi_dev.c + spi_dev.c + 0 + 0 + + + 3 + 15 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\ringblk_buf.c + ringblk_buf.c + 0 + 0 + + + 3 + 16 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\waitqueue.c + waitqueue.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\pipe.c + pipe.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\workqueue.c + workqueue.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\dataqueue.c + dataqueue.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\completion.c + completion.c + 0 + 0 + + + + + Drivers + 0 + 0 + 0 + 0 + + 4 + 22 + 1 + 0 + 0 + 0 + drivers\drv_i2c.c + drv_i2c.c + 0 + 0 + + + 4 + 23 + 1 + 0 + 0 + 0 + drivers\drv_gpio.c + drv_gpio.c + 0 + 0 + + + 4 + 24 + 1 + 0 + 0 + 0 + drivers\drv_usart.c + drv_usart.c + 0 + 0 + + + 4 + 25 + 1 + 0 + 0 + 0 + drivers\board.c + board.c + 0 + 0 + + + 4 + 26 + 1 + 0 + 0 + 0 + drivers\drv_spi.c + drv_spi.c + 0 + 0 + + + + + Finsh + 0 + 0 + 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 + + + 5 + 29 + 1 + 0 + 0 + 0 + ..\..\components\finsh\cmd.c + cmd.c + 0 + 0 + + + + + Kernel + 0 + 0 + 0 + 0 + + 6 + 30 + 1 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 6 + 31 + 1 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 6 + 32 + 1 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 6 + 33 + 1 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + 0 + 0 + + + 6 + 34 + 1 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 6 + 35 + 1 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 6 + 36 + 1 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 6 + 37 + 1 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 6 + 38 + 1 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 6 + 39 + 1 + 0 + 0 + 0 + ..\..\src\mem.c + mem.c + 0 + 0 + + + 6 + 40 + 1 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 6 + 41 + 1 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + 0 + 0 + + + 6 + 42 + 1 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + + + libc + 0 + 0 + 0 + 0 + + 7 + 43 + 1 + 0 + 0 + 0 + ..\..\components\libc\compilers\common\time.c + time.c + 0 + 0 + + + + + Libraries + 0 + 0 + 0 + 0 + + 8 + 44 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_dbg.c + gd32e230_dbg.c + 0 + 0 + + + 8 + 45 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_adc.c + gd32e230_adc.c + 0 + 0 + + + 8 + 46 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_usart.c + gd32e230_usart.c + 0 + 0 + + + 8 + 47 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_dma.c + gd32e230_dma.c + 0 + 0 + + + 8 + 48 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_wwdgt.c + gd32e230_wwdgt.c + 0 + 0 + + + 8 + 49 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_exti.c + gd32e230_exti.c + 0 + 0 + + + 8 + 50 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_misc.c + gd32e230_misc.c + 0 + 0 + + + 8 + 51 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_cmp.c + gd32e230_cmp.c + 0 + 0 + + + 8 + 52 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_pmu.c + gd32e230_pmu.c + 0 + 0 + + + 8 + 53 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_timer.c + gd32e230_timer.c + 0 + 0 + + + 8 + 54 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_i2c.c + gd32e230_i2c.c + 0 + 0 + + + 8 + 55 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_fwdgt.c + gd32e230_fwdgt.c + 0 + 0 + + + 8 + 56 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_gpio.c + gd32e230_gpio.c + 0 + 0 + + + 8 + 57 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_rcu.c + gd32e230_rcu.c + 0 + 0 + + + 8 + 58 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_rtc.c + gd32e230_rtc.c + 0 + 0 + + + 8 + 59 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_crc.c + gd32e230_crc.c + 0 + 0 + + + 8 + 60 + 1 + 0 + 0 + 0 + Libraries\CMSIS\GD\GD32E230\Source\system_gd32e230.c + system_gd32e230.c + 0 + 0 + + + 8 + 61 + 2 + 0 + 0 + 0 + Libraries\CMSIS\GD\GD32E230\Source\ARM\startup_gd32e230.s + startup_gd32e230.s + 0 + 0 + + + 8 + 62 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_syscfg.c + gd32e230_syscfg.c + 0 + 0 + + + 8 + 63 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_spi.c + gd32e230_spi.c + 0 + 0 + + + 8 + 64 + 1 + 0 + 0 + 0 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_fmc.c + gd32e230_fmc.c + 0 + 0 + + + ::CMSIS 0 diff --git a/bsp/gd32e230k-start/project.uvprojx b/bsp/gd32e230k-start/project.uvprojx index 23ecfb8ca0..7721f6fa03 100644 --- a/bsp/gd32e230k-start/project.uvprojx +++ b/bsp/gd32e230k-start/project.uvprojx @@ -1,43 +1,46 @@ + 2.1 +
### uVision Project, (C) Keil Software
+ rt-thread_gd32e230 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::ARMCC + 6170000::V6.17::.\AC6.17 1 GD32E230K8 GigaDevice - GigaDevice.GD32E230_DFP.1.0.0 - http://gd32mcu.21ic.com/data/documents/yingyongruanjian + GigaDevice.GD32E23x_DFP.1.0.1 + http://gd32mcu.com/data/documents/pack/ IRAM(0x20000000,0x0002000) IROM(0x08000000,0x0010000) CPUTYPE("Cortex-M23") CLOCK(12000000) ELITTLE - - + + UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0GD32E230 -FS08000000 -FL010000 -FP0($$Device:GD32E230K8$Flash\GD32E230.FLM)) 0 $$Device:GD32E230K8$Device\Include\gd32e230.h - - - - - - - - - + + + + + + + + + $$Device:GD32E230K8$SVD\GD32E230.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,15 +104,15 @@ 0 0 3 - - + + 1 - - - - + + + + SARMV8M.DLL -MPU TCM.DLL @@ -135,11 +138,11 @@ 1 BIN\UL2V8M.DLL - - - - - + + + + + 0 @@ -172,7 +175,7 @@ 0 0 "Cortex-M23" - + 0 0 0 @@ -182,6 +185,7 @@ 0 0 0 + 0 0 0 8 @@ -305,7 +309,7 @@ 0x0 - + 1 @@ -332,9 +336,9 @@ 0 0 - + GD32E230, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND - + applications;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m23;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\spi\sfud\inc;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32E230\Include;Libraries\CMSIS;Libraries\GD32E230_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel @@ -348,12 +352,12 @@ 0 0 0 - 0 + 4 - - - - + + + + @@ -365,13 +369,13 @@ 0 0x08000000 0x20000000 - - - - - - - + + + + + + + @@ -390,159 +394,180 @@ CPU - backtrace.c + div0.c 1 - ..\..\libcpu\arm\common\backtrace.c + ..\..\libcpu\arm\common\div0.c - - showmem.c 1 ..\..\libcpu\arm\common\showmem.c - - - div0.c + backtrace.c 1 - ..\..\libcpu\arm\common\div0.c + ..\..\libcpu\arm\common\backtrace.c + + + context_rvds.S + 2 + ..\..\libcpu\arm\cortex-m23\context_rvds.S - - cpuport.c 1 ..\..\libcpu\arm\cortex-m23\cpuport.c - - - context_rvds.S - 2 - ..\..\libcpu\arm\cortex-m23\context_rvds.S - -
DeviceDrivers + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 0 + + + + 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 + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + + + + + + + + + i2c_core.c 1 ..\..\components\drivers\i2c\i2c_core.c - - i2c_dev.c 1 ..\..\components\drivers\i2c\i2c_dev.c - - pin.c 1 ..\..\components\drivers\misc\pin.c - - serial.c 1 ..\..\components\drivers\serial\serial.c - - sfud.c 1 ..\..\components\drivers\spi\sfud\src\sfud.c - - spi_flash_sfud.c 1 ..\..\components\drivers\spi\spi_flash_sfud.c - - spi_core.c 1 ..\..\components\drivers\spi\spi_core.c - - spi_dev.c 1 ..\..\components\drivers\spi\spi_dev.c - - - - dataqueue.c - 1 - ..\..\components\drivers\src\dataqueue.c - - - - - waitqueue.c - 1 - ..\..\components\drivers\src\waitqueue.c - - - ringblk_buf.c 1 ..\..\components\drivers\src\ringblk_buf.c - - + + waitqueue.c + 1 + ..\..\components\drivers\src\waitqueue.c + pipe.c 1 ..\..\components\drivers\src\pipe.c - - workqueue.c 1 ..\..\components\drivers\src\workqueue.c - - + + ringbuffer.c + 1 + ..\..\components\drivers\src\ringbuffer.c + + + dataqueue.c + 1 + ..\..\components\drivers\src\dataqueue.c + completion.c 1 ..\..\components\drivers\src\completion.c - - - ringbuffer.c - 1 - ..\..\components\drivers\src\ringbuffer.c - - - - - - - --c99 - - - - - - - Drivers @@ -552,29 +577,21 @@ 1 drivers\drv_i2c.c - - drv_gpio.c 1 drivers\drv_gpio.c - - drv_usart.c 1 drivers\drv_usart.c - - board.c 1 drivers\board.c - - drv_spi.c 1 @@ -590,15 +607,11 @@ 1 ..\..\components\finsh\shell.c - - msh.c 1 ..\..\components\finsh\msh.c - - cmd.c 1 @@ -608,96 +621,72 @@ Kernel - - - device.c - 1 - ..\..\src\device.c - - - - - idle.c - 1 - ..\..\src\idle.c - - - - - clock.c - 1 - ..\..\src\clock.c - - - - - timer.c - 1 - ..\..\src\timer.c - - irq.c 1 ..\..\src\irq.c - - - - object.c - 1 - ..\..\src\object.c - - - kservice.c 1 ..\..\src\kservice.c - - ipc.c 1 ..\..\src\ipc.c - - - thread.c + timer.c 1 - ..\..\src\thread.c + ..\..\src\timer.c - - scheduler.c 1 ..\..\src\scheduler.c - - - mem.c + clock.c 1 - ..\..\src\mem.c + ..\..\src\clock.c + + + object.c + 1 + ..\..\src\object.c - - components.c 1 ..\..\src\components.c - - + + idle.c + 1 + ..\..\src\idle.c + + + mem.c + 1 + ..\..\src\mem.c + + + thread.c + 1 + ..\..\src\thread.c + mempool.c 1 ..\..\src\mempool.c + + device.c + 1 + ..\..\src\device.c + @@ -714,165 +703,130 @@ Libraries - gd32e230_exti.c + gd32e230_dbg.c 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_exti.c + Libraries\GD32E230_standard_peripheral\Source\gd32e230_dbg.c - - - gd32e230_pmu.c + gd32e230_adc.c 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_pmu.c + Libraries\GD32E230_standard_peripheral\Source\gd32e230_adc.c - - gd32e230_usart.c 1 Libraries\GD32E230_standard_peripheral\Source\gd32e230_usart.c - - - system_gd32e230.c + gd32e230_dma.c 1 - Libraries\CMSIS\GD\GD32E230\Source\system_gd32e230.c + Libraries\GD32E230_standard_peripheral\Source\gd32e230_dma.c - - - - gd32e230_dbg.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_dbg.c - - - - - gd32e230_cmp.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_cmp.c - - - gd32e230_wwdgt.c 1 Libraries\GD32E230_standard_peripheral\Source\gd32e230_wwdgt.c - - + + gd32e230_exti.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_exti.c + + + gd32e230_misc.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_misc.c + + + gd32e230_cmp.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_cmp.c + + + gd32e230_pmu.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_pmu.c + + + gd32e230_timer.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_timer.c + + + gd32e230_i2c.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_i2c.c + + + gd32e230_fwdgt.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_fwdgt.c + + + gd32e230_gpio.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_gpio.c + gd32e230_rcu.c 1 Libraries\GD32E230_standard_peripheral\Source\gd32e230_rcu.c - - + + gd32e230_rtc.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_rtc.c + + + gd32e230_crc.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_crc.c + + + system_gd32e230.c + 1 + Libraries\CMSIS\GD\GD32E230\Source\system_gd32e230.c + startup_gd32e230.s 2 Libraries\CMSIS\GD\GD32E230\Source\ARM\startup_gd32e230.s - - + + gd32e230_syscfg.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_syscfg.c + + + gd32e230_spi.c + 1 + Libraries\GD32E230_standard_peripheral\Source\gd32e230_spi.c + gd32e230_fmc.c 1 Libraries\GD32E230_standard_peripheral\Source\gd32e230_fmc.c - - - gd32e230_fwdgt.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_fwdgt.c - - - - - gd32e230_rtc.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_rtc.c - - - - - gd32e230_misc.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_misc.c - - - - - gd32e230_timer.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_timer.c - - - - - gd32e230_gpio.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_gpio.c - - - - - gd32e230_adc.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_adc.c - - - - - gd32e230_i2c.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_i2c.c - - - - - gd32e230_dma.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_dma.c - - - - - gd32e230_syscfg.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_syscfg.c - - - - - gd32e230_crc.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_crc.c - - - - - gd32e230_spi.c - 1 - Libraries\GD32E230_standard_peripheral\Source\gd32e230_spi.c - - + + + ::CMSIS + - + - + - + - + + diff --git a/bsp/gd32e230k-start/rtconfig.h b/bsp/gd32e230k-start/rtconfig.h index 61ef9398d9..f7cbb880f8 100644 --- a/bsp/gd32e230k-start/rtconfig.h +++ b/bsp/gd32e230k-start/rtconfig.h @@ -1,7 +1,8 @@ #ifndef RT_CONFIG_H__ #define RT_CONFIG_H__ -/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */ +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ /* RT-Thread Kernel */ @@ -18,7 +19,6 @@ /* kservice optimization */ -/* end of kservice optimization */ #define RT_DEBUG #define RT_DEBUG_COLOR @@ -29,7 +29,6 @@ #define RT_USING_EVENT #define RT_USING_MAILBOX #define RT_USING_MESSAGEQUEUE -/* end of Inter-Thread communication */ /* Memory Management */ @@ -37,7 +36,6 @@ #define RT_USING_SMALL_MEM #define RT_USING_SMALL_MEM_AS_HEAP #define RT_USING_HEAP -/* end of Memory Management */ /* Kernel Device Object */ @@ -45,9 +43,7 @@ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart0" -/* end of Kernel Device Object */ #define RT_VER_NUM 0x40100 -/* end of RT-Thread Kernel */ /* RT-Thread Components */ @@ -58,7 +54,6 @@ /* C++ features */ -/* end of C++ features */ /* Command shell */ @@ -75,11 +70,9 @@ #define MSH_USING_BUILT_IN_COMMANDS #define FINSH_USING_DESCRIPTION #define FINSH_ARG_MAX 10 -/* end of Command shell */ /* Device virtual file system */ -/* end of Device virtual file system */ /* Device Drivers */ @@ -97,8 +90,6 @@ /* Using USB */ -/* end of Using USB */ -/* end of Device Drivers */ /* POSIX layer and C standard library */ @@ -113,41 +104,28 @@ /* Socket is in the 'Network' category */ -/* end of Interprocess Communication (IPC) */ -/* end of POSIX (Portable Operating System Interface) layer */ -/* end of POSIX layer and C standard library */ - /* Network */ /* Socket abstraction layer */ -/* end of Socket abstraction layer */ /* Network interface device */ -/* end of Network interface device */ /* light weight TCP/IP stack */ -/* end of light weight TCP/IP stack */ /* AT commands */ -/* end of AT commands */ -/* end of Network */ /* VBUS(Virtual Software BUS) */ -/* end of VBUS(Virtual Software BUS) */ /* Utilities */ -/* end of Utilities */ -/* end of RT-Thread Components */ /* RT-Thread Utestcases */ -/* end of RT-Thread Utestcases */ /* RT-Thread online packages */ @@ -158,83 +136,60 @@ /* Marvell WiFi */ -/* end of Marvell WiFi */ /* Wiced WiFi */ -/* end of Wiced WiFi */ -/* end of Wi-Fi */ /* IoT Cloud */ -/* end of IoT Cloud */ -/* end of IoT - internet of things */ /* security packages */ -/* end of security packages */ /* language packages */ -/* end of language packages */ /* multimedia packages */ /* LVGL: powerful and easy-to-use embedded GUI library */ -/* end of LVGL: powerful and easy-to-use embedded GUI library */ /* u8g2: a monochrome graphic library */ -/* end of u8g2: a monochrome graphic library */ /* PainterEngine: A cross-platform graphics application framework written in C language */ -/* end of PainterEngine: A cross-platform graphics application framework written in C language */ -/* end of multimedia packages */ /* tools packages */ -/* end of tools packages */ /* system packages */ /* enhanced kernel services */ -/* end of enhanced kernel services */ /* acceleration: Assembly language or algorithmic acceleration packages */ -/* end of acceleration: Assembly language or algorithmic acceleration packages */ /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ -/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */ /* Micrium: Micrium software products porting for RT-Thread */ -/* end of Micrium: Micrium software products porting for RT-Thread */ -/* end of system packages */ /* peripheral libraries and drivers */ -/* end of peripheral libraries and drivers */ /* AI packages */ -/* end of AI packages */ /* miscellaneous packages */ /* samples: kernel and components samples */ -/* end of samples: kernel and components samples */ /* entertainment: terminal games and other interesting software packages */ -/* end of entertainment: terminal games and other interesting software packages */ -/* end of miscellaneous packages */ -/* end of RT-Thread online packages */ #define SOC_GD32E230K #define RT_USING_USART0 #define RT_USING_USART1