diff --git a/bsp/CME_M7/.config b/bsp/CME_M7/.config
index 0c167ae1ec..df3696cafd 100644
--- a/bsp/CME_M7/.config
+++ b/bsp/CME_M7/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,27 +81,24 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart2"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M3=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
#
CONFIG_RT_USING_COMPONENTS_INIT=y
+# CONFIG_RT_USING_USER_MAIN is not set
# CONFIG_RT_USING_LEGACY is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -120,7 +118,6 @@ 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
@@ -155,13 +152,10 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
# CONFIG_RT_USING_DFS_DEVFS is not set
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_NFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -200,17 +194,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -220,7 +210,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -233,9 +222,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
@@ -245,14 +231,12 @@ 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
CONFIG_NETDEV_USING_PING=y
-# end of Network interface device
#
# light weight TCP/IP stack
@@ -278,8 +262,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -314,22 +296,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -339,16 +316,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -383,17 +356,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -415,8 +383,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -451,7 +418,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -461,16 +428,15 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -482,15 +448,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -510,8 +473,9 @@ CONFIG_RT_LWIP_USING_PING=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -555,7 +519,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -567,7 +530,13 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -575,14 +544,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -593,8 +560,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -624,11 +589,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -702,10 +665,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -719,7 +683,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -732,7 +695,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -746,8 +708,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -769,15 +730,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_CME_M7=y
diff --git a/bsp/CME_M7/project.uvproj b/bsp/CME_M7/project.uvproj
index 53576805f6..72266ffc5e 100644
--- a/bsp/CME_M7/project.uvproj
+++ b/bsp/CME_M7/project.uvproj
@@ -361,9 +361,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;CMSIS\CME_M7;CMSIS\CMSIS\Include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;StdPeriph_Driver\inc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;CMSIS\CME_M7;CMSIS\CMSIS\Include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;StdPeriph_Driver\inc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -405,6 +405,13 @@
Applications
+
+
+ led.c
+ 1
+ applications\led.c
+
+
startup.c
@@ -419,13 +426,6 @@
applications\application.c
-
-
- led.c
- 1
- applications\led.c
-
-
CMSIS
@@ -444,6 +444,44 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
@@ -455,16 +493,16 @@
- showmem.c
+ div0.c
1
- ..\..\libcpu\arm\common\showmem.c
+ ..\..\libcpu\arm\common\div0.c
- div0.c
+ showmem.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\libcpu\arm\common\showmem.c
@@ -498,13 +536,6 @@
..\..\components\drivers\serial\serial.c
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
waitqueue.c
@@ -514,16 +545,16 @@
- workqueue.c
+ completion.c
1
- ..\..\components\drivers\src\workqueue.c
+ ..\..\components\drivers\src\completion.c
- pipe.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -533,6 +564,13 @@
..\..\components\drivers\src\ringbuffer.c
+
+
+ workqueue.c
+ 1
+ ..\..\components\drivers\src\workqueue.c
+
+
dataqueue.c
@@ -542,9 +580,9 @@
- completion.c
+ pipe.c
1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\pipe.c
@@ -609,13 +647,6 @@
..\..\components\dfs\src\dfs_file.c
-
-
- ff.c
- 1
- ..\..\components\dfs\filesystems\elmfat\ff.c
-
-
dfs_elm.c
@@ -630,6 +661,13 @@
..\..\components\dfs\filesystems\elmfat\ffunicode.c
+
+
+ ff.c
+ 1
+ ..\..\components\dfs\filesystems\elmfat\ff.c
+
+
Finsh
@@ -664,13 +702,6 @@
Kernel
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
timer.c
@@ -678,34 +709,6 @@
..\..\src\timer.c
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
mem.c
@@ -713,6 +716,20 @@
..\..\src\mem.c
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
irq.c
@@ -720,6 +737,13 @@
..\..\src\irq.c
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
device.c
@@ -734,13 +758,6 @@
..\..\src\scheduler.c
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
components.c
@@ -750,115 +767,35 @@
- thread.c
+ object.c
1
- ..\..\src\thread.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\object.c
- libc_syms.c
+ ipc.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\ipc.c
- syscalls.c
+ kservice.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\kservice.c
- time.c
+ mempool.c
1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\mempool.c
Libraries
-
-
- cmem7_can.c
- 1
- StdPeriph_Driver\src\cmem7_can.c
-
-
-
-
- cmem7_aes.c
- 1
- StdPeriph_Driver\src\cmem7_aes.c
-
-
-
-
- cmem7_rtc.c
- 1
- StdPeriph_Driver\src\cmem7_rtc.c
-
-
-
-
- cmem7_adc.c
- 1
- StdPeriph_Driver\src\cmem7_adc.c
-
-
-
-
- cmem7_spi.c
- 1
- StdPeriph_Driver\src\cmem7_spi.c
-
-
-
-
- cmem7_ddr.c
- 1
- StdPeriph_Driver\src\cmem7_ddr.c
-
-
-
-
- cmem7_misc.c
- 1
- StdPeriph_Driver\src\cmem7_misc.c
-
-
-
-
- cmem7_wdg.c
- 1
- StdPeriph_Driver\src\cmem7_wdg.c
-
-
-
-
- cmem7_i2c.c
- 1
- StdPeriph_Driver\src\cmem7_i2c.c
-
-
cmem7_eth.c
@@ -873,20 +810,6 @@
StdPeriph_Driver\src\cmem7_flash.c
-
-
- cmem7_usb.c
- 1
- StdPeriph_Driver\src\cmem7_usb.c
-
-
-
-
- cmem7_gpio.c
- 1
- StdPeriph_Driver\src\cmem7_gpio.c
-
-
cmem7_uart.c
@@ -894,6 +817,27 @@
StdPeriph_Driver\src\cmem7_uart.c
+
+
+ cmem7_misc.c
+ 1
+ StdPeriph_Driver\src\cmem7_misc.c
+
+
+
+
+ cmem7_i2c.c
+ 1
+ StdPeriph_Driver\src\cmem7_i2c.c
+
+
+
+
+ cmem7_can.c
+ 1
+ StdPeriph_Driver\src\cmem7_can.c
+
+
cmem7_tim.c
@@ -908,6 +852,55 @@
StdPeriph_Driver\src\cmem7_dma.c
+
+
+ cmem7_gpio.c
+ 1
+ StdPeriph_Driver\src\cmem7_gpio.c
+
+
+
+
+ cmem7_ddr.c
+ 1
+ StdPeriph_Driver\src\cmem7_ddr.c
+
+
+
+
+ cmem7_rtc.c
+ 1
+ StdPeriph_Driver\src\cmem7_rtc.c
+
+
+
+
+ cmem7_adc.c
+ 1
+ StdPeriph_Driver\src\cmem7_adc.c
+
+
+
+
+ cmem7_wdg.c
+ 1
+ StdPeriph_Driver\src\cmem7_wdg.c
+
+
+
+
+ cmem7_spi.c
+ 1
+ StdPeriph_Driver\src\cmem7_spi.c
+
+
+
+
+ cmem7_aes.c
+ 1
+ StdPeriph_Driver\src\cmem7_aes.c
+
+
cmem7_efuse.c
@@ -915,6 +908,13 @@
StdPeriph_Driver\src\cmem7_efuse.c
+
+
+ cmem7_usb.c
+ 1
+ StdPeriph_Driver\src\cmem7_usb.c
+
+
lwIP
diff --git a/bsp/CME_M7/rtconfig.h b/bsp/CME_M7/rtconfig.h
index 107a0c1fe6..d89c095d56 100644
--- a/bsp/CME_M7/rtconfig.h
+++ b/bsp/CME_M7/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart2"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -61,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -78,7 +74,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -103,8 +98,6 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
-/* end of Device virtual file system */
/* Device Drivers */
@@ -117,13 +110,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -134,20 +123,14 @@
/* 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 */
#define NETDEV_USING_PING
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -166,7 +149,6 @@
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -193,25 +175,18 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -222,83 +197,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_CME_M7
#endif
diff --git a/bsp/Vango_V85xx/.config b/bsp/Vango_V85xx/.config
index 0313af4049..d3346eb20d 100644
--- a/bsp/Vango_V85xx/.config
+++ b/bsp/Vango_V85xx/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-# 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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,7 +117,6 @@ 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
@@ -134,7 +132,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -173,17 +170,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -193,7 +186,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -206,9 +198,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
@@ -218,32 +207,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
@@ -253,14 +236,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
@@ -295,17 +275,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
@@ -327,8 +302,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -363,7 +337,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -373,16 +347,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -394,15 +367,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
@@ -422,8 +392,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -467,7 +438,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
@@ -479,7 +449,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -487,14 +463,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
@@ -505,8 +479,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
@@ -536,11 +508,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -614,10 +584,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -631,7 +602,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
@@ -644,7 +614,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
@@ -658,8 +627,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -681,17 +649,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_SERIES_V85XX=y
CONFIG_SOC_V85XX=y
@@ -708,4 +670,3 @@ CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_HWTIMER is not set
# CONFIG_BSP_USING_WDT is not set
# CONFIG_BSP_USING_RTC is not set
-# end of On-chip Peripheral Drivers
diff --git a/bsp/Vango_V85xx/drivers/board.c b/bsp/Vango_V85xx/drivers/board.c
index ca016a00df..dda1ff4279 100644
--- a/bsp/Vango_V85xx/drivers/board.c
+++ b/bsp/Vango_V85xx/drivers/board.c
@@ -32,7 +32,7 @@ void SystemClock_Config(void)
|CLK_TYPE_HCLK \
|CLK_TYPE_PCLK;
CLK_Struct.AHBSource = CLK_AHBSEL_LSPLL;
-
+
CLK_Struct.PLLL.Frequency = CLK_PLLL_26_2144MHz;
CLK_Struct.PLLL.Source = CLK_PLLLSRC_XTALL;
CLK_Struct.PLLL.State = CLK_PLLL_ON;
@@ -66,7 +66,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/Vango_V85xx/project.uvprojx b/bsp/Vango_V85xx/project.uvprojx
index 98d7bd817a..90a6b141c4 100644
--- a/bsp/Vango_V85xx/project.uvprojx
+++ b/bsp/Vango_V85xx/project.uvprojx
@@ -333,7 +333,7 @@
V85xx, USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, USE_TARGET_DRIVER, RT_USING_ARM_LIBC
- applications;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel;Libraries\CMSIS\Vango\V85xx\Include;Libraries\CMSIS;Libraries\VangoV85xx_standard_peripheral\Include
+ applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel;Libraries\CMSIS\Vango\V85xx\Include;Libraries\CMSIS;Libraries\VangoV85xx_standard_peripheral\Include
@@ -384,6 +384,44 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
@@ -395,16 +433,16 @@
- backtrace.c
+ showmem.c
1
- ..\..\libcpu\arm\common\backtrace.c
+ ..\..\libcpu\arm\common\showmem.c
- showmem.c
+ backtrace.c
1
- ..\..\libcpu\arm\common\showmem.c
+ ..\..\libcpu\arm\common\backtrace.c
@@ -438,27 +476,6 @@
..\..\components\drivers\serial\serial.c
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
-
-
- pipe.c
- 1
- ..\..\components\drivers\src\pipe.c
-
-
ringblk_buf.c
@@ -475,9 +492,9 @@
- ringbuffer.c
+ waitqueue.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\waitqueue.c
@@ -487,6 +504,27 @@
..\..\components\drivers\src\workqueue.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
Drivers
@@ -583,41 +621,6 @@
Kernel
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
ipc.c
@@ -625,20 +628,6 @@
..\..\src\ipc.c
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
mempool.c
@@ -646,6 +635,13 @@
..\..\src\mempool.c
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
components.c
@@ -653,6 +649,34 @@
..\..\src\components.c
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
scheduler.c
@@ -660,6 +684,13 @@
..\..\src\scheduler.c
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
object.c
@@ -669,47 +700,16 @@
- kservice.c
+ idle.c
1
- ..\..\src\kservice.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\idle.c
- libc_syms.c
+ irq.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\irq.c
@@ -717,16 +717,23 @@
Vango_Lib
- lib_pmu.c
+ lib_spi.c
1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_pmu.c
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_spi.c
- lib_adc.c
+ lib_clk.c
1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_adc.c
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_clk.c
+
+
+
+
+ lib_ana.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_ana.c
@@ -738,9 +745,58 @@
- lib_clk.c
+ lib_i2c.c
1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_clk.c
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_i2c.c
+
+
+
+
+ lib_tmr.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_tmr.c
+
+
+
+
+ lib_iso7816.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_iso7816.c
+
+
+
+
+ lib_CodeRAM.c
+ 1
+ Libraries\CMSIS\Vango\V85xx\Source\lib_CodeRAM.c
+
+
+
+
+ lib_gpio.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_gpio.c
+
+
+
+
+ lib_version.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_version.c
+
+
+
+
+ lib_LoadNVR.c
+ 1
+ Libraries\CMSIS\Vango\V85xx\Source\lib_LoadNVR.c
+
+
+
+
+ lib_comp.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_comp.c
@@ -757,104 +813,6 @@
Libraries\VangoV85xx_standard_peripheral\Source\lib_pwm.c
-
-
- lib_version.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_version.c
-
-
-
-
- lib_misc.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_misc.c
-
-
-
-
- lib_spi.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_spi.c
-
-
-
-
- lib_CodeRAM.c
- 1
- Libraries\CMSIS\Vango\V85xx\Source\lib_CodeRAM.c
-
-
-
-
- lib_ana.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_ana.c
-
-
-
-
- lib_crypt.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_crypt.c
-
-
-
-
- lib_lcd.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_lcd.c
-
-
-
-
- lib_comp.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_comp.c
-
-
-
-
- lib_tmr.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_tmr.c
-
-
-
-
- lib_u32k.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_u32k.c
-
-
-
-
- lib_gpio.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_gpio.c
-
-
-
-
- lib_i2c.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_i2c.c
-
-
-
-
- system_target.c
- 1
- Libraries\CMSIS\Vango\V85xx\Source\system_target.c
-
-
-
-
- lib_adc_tiny.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_adc_tiny.c
-
-
lib_flash.c
@@ -862,34 +820,6 @@
Libraries\VangoV85xx_standard_peripheral\Source\lib_flash.c
-
-
- lib_cortex.c
- 1
- Libraries\CMSIS\Vango\V85xx\Source\lib_cortex.c
-
-
-
-
- lib_LoadNVR.c
- 1
- Libraries\CMSIS\Vango\V85xx\Source\lib_LoadNVR.c
-
-
-
-
- lib_dma.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_dma.c
-
-
-
-
- lib_iso7816.c
- 1
- Libraries\VangoV85xx_standard_peripheral\Source\lib_iso7816.c
-
-
lib_uart.c
@@ -897,6 +827,41 @@
Libraries\VangoV85xx_standard_peripheral\Source\lib_uart.c
+
+
+ lib_u32k.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_u32k.c
+
+
+
+
+ lib_cortex.c
+ 1
+ Libraries\CMSIS\Vango\V85xx\Source\lib_cortex.c
+
+
+
+
+ lib_dma.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_dma.c
+
+
+
+
+ lib_crypt.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_crypt.c
+
+
+
+
+ lib_pmu.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_pmu.c
+
+
lib_wdt.c
@@ -904,6 +869,41 @@
Libraries\VangoV85xx_standard_peripheral\Source\lib_wdt.c
+
+
+ lib_adc_tiny.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_adc_tiny.c
+
+
+
+
+ lib_adc.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_adc.c
+
+
+
+
+ lib_lcd.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_lcd.c
+
+
+
+
+ system_target.c
+ 1
+ Libraries\CMSIS\Vango\V85xx\Source\system_target.c
+
+
+
+
+ lib_misc.c
+ 1
+ Libraries\VangoV85xx_standard_peripheral\Source\lib_misc.c
+
+
diff --git a/bsp/Vango_V85xx/rtconfig.h b/bsp/Vango_V85xx/rtconfig.h
index ee2c5b12fe..a9f5b7ed25 100644
--- a/bsp/Vango_V85xx/rtconfig.h
+++ b/bsp/Vango_V85xx/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,7 +73,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -88,7 +83,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 4
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -101,13 +95,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -118,41 +108,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 */
@@ -163,83 +140,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_SERIES_V85XX
#define SOC_V85XX
@@ -247,6 +204,5 @@
#define BSP_USING_UART
#define BSP_USING_UART2
-/* end of On-chip Peripheral Drivers */
#endif
diff --git a/bsp/acm32f0x0-nucleo/.config b/bsp/acm32f0x0-nucleo/.config
index 6baade2319..491853cabc 100644
--- a/bsp/acm32f0x0-nucleo/.config
+++ b/bsp/acm32f0x0-nucleo/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,14 +81,12 @@ CONFIG_RT_USING_DEVICE_OPS=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M0=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -102,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -122,13 +120,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
@@ -167,17 +163,13 @@ CONFIG_RT_USING_WDT=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -187,7 +179,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -200,9 +191,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
@@ -212,32 +200,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
@@ -247,16 +229,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -291,17 +269,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
@@ -323,8 +296,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -359,7 +331,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -369,16 +341,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -390,15 +361,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
@@ -418,8 +386,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -463,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
@@ -475,7 +443,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -483,14 +457,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
@@ -501,8 +473,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
@@ -532,11 +502,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -610,10 +578,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -627,7 +596,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
@@ -640,7 +608,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
@@ -654,8 +621,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -677,17 +643,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_SERIES_ACM32F0=y
#
@@ -712,8 +672,6 @@ CONFIG_SOC_FLASH_SIZE=0x80
#
CONFIG_BSP_USING_GPIO1=y
CONFIG_BSP_USING_GPIO2=y
-# end of Hardware GPIO
-
CONFIG_BSP_USING_ADC=y
#
@@ -726,8 +684,6 @@ CONFIG_BSP_UART2_TX_USING_DMA=y
CONFIG_BSP_USING_UART3=y
CONFIG_BSP_UART3_RX_USING_DMA=y
CONFIG_BSP_UART3_TX_USING_DMA=y
-# end of Hardware UART
-
# CONFIG_BSP_USING_RTC is not set
#
@@ -735,13 +691,11 @@ CONFIG_BSP_UART3_TX_USING_DMA=y
#
# CONFIG_BSP_USING_I2C1 is not set
# CONFIG_BSP_USING_I2C2 is not set
-# end of Hardware I2C
#
# Hardware CAN
#
# CONFIG_BSP_USING_CAN1 is not set
-# end of Hardware CAN
#
# Hardware TIMER
@@ -753,15 +707,12 @@ CONFIG_BSP_USING_TIM14=y
CONFIG_BSP_USING_TIM15=y
CONFIG_BSP_USING_TIM16=y
CONFIG_BSP_USING_TIM17=y
-# end of Hardware TIMER
#
# Hardware WDT
#
CONFIG_BSP_USING_WDT=y
CONFIG_BSP_USING_IWDT=y
-# end of Hardware WDT
-
# CONFIG_BSP_USING_LCD is not set
#
@@ -769,7 +720,6 @@ CONFIG_BSP_USING_IWDT=y
#
# CONFIG_BSP_USING_SPI1 is not set
# CONFIG_BSP_USING_SPI2 is not set
-# end of Hardware SPI
#
# Hardware CRYPTO
@@ -777,15 +727,11 @@ CONFIG_BSP_USING_IWDT=y
# CONFIG_BSP_USING_CRC is not set
# CONFIG_BSP_USING_AES is not set
# CONFIG_BSP_USING_HRNG is not set
-# end of Hardware CRYPTO
-
# CONFIG_BSP_USING_CMP is not set
# CONFIG_BSP_USING_OPA is not set
# CONFIG_BSP_USING_TKEY is not set
# CONFIG_BSP_USING_RPMU is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/acm32f0x0-nucleo/project.ewp b/bsp/acm32f0x0-nucleo/project.ewp
index 71c71452d1..9678e58c61 100644
--- a/bsp/acm32f0x0-nucleo/project.ewp
+++ b/bsp/acm32f0x0-nucleo/project.ewp
@@ -224,8 +224,8 @@
CCDefines
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -353,14 +353,14 @@
$PROJ_DIR$\libraries\HAL_Driver\Inc
$PROJ_DIR$\..\..\include
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\..\..\components\libc\posix\ipc
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\libraries\Device
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
+ $PROJ_DIR$\applications
$PROJ_DIR$\..\..\components\libc\posix\io\poll
$PROJ_DIR$\libraries\CMSIS
$PROJ_DIR$\..\..\libcpu\arm\cortex-m0
@@ -1277,8 +1277,8 @@
CCDefines
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -1406,14 +1406,14 @@
$PROJ_DIR$\libraries\HAL_Driver\Inc
$PROJ_DIR$\..\..\include
- $PROJ_DIR$\applications
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\..\..\components\libc\posix\ipc
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\libraries\Device
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
+ $PROJ_DIR$\applications
$PROJ_DIR$\..\..\components\libc\posix\io\poll
$PROJ_DIR$\libraries\CMSIS
$PROJ_DIR$\..\..\libcpu\arm\cortex-m0
@@ -2145,6 +2145,42 @@
$PROJ_DIR$\applications\main.c
+
+ Compiler
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
CPU
@@ -2157,10 +2193,10 @@
$PROJ_DIR$\..\..\libcpu\arm\common\showmem.c
- $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\context_iar.S
+ $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\cpuport.c
- $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\cpuport.c
+ $PROJ_DIR$\..\..\libcpu\arm\cortex-m0\context_iar.S
@@ -2177,12 +2213,6 @@
$PROJ_DIR$\..\..\components\drivers\serial\serial.c
-
- $PROJ_DIR$\..\..\components\drivers\src\completion.c
-
-
- $PROJ_DIR$\..\..\components\drivers\src\pipe.c
-
$PROJ_DIR$\..\..\components\drivers\src\workqueue.c
@@ -2198,30 +2228,36 @@
$PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
+
+ $PROJ_DIR$\..\..\components\drivers\src\pipe.c
+
+
+ $PROJ_DIR$\..\..\components\drivers\src\completion.c
+
$PROJ_DIR$\..\..\components\drivers\watchdog\watchdog.c
Drivers
-
- $PROJ_DIR$\drivers\drv_wdt.c
-
-
- $PROJ_DIR$\drivers\drv_uart.c
-
$PROJ_DIR$\drivers\board.c
$PROJ_DIR$\drivers\drv_adc.c
+
+ $PROJ_DIR$\drivers\drv_uart.c
+
$PROJ_DIR$\drivers\drv_hwtimer.c
$PROJ_DIR$\drivers\drv_gpio.c
+
+ $PROJ_DIR$\drivers\drv_wdt.c
+
Finsh
@@ -2238,79 +2274,43 @@
Kernel
- $PROJ_DIR$\..\..\src\thread.c
+ $PROJ_DIR$\..\..\src\mem.c
- $PROJ_DIR$\..\..\src\irq.c
-
-
- $PROJ_DIR$\..\..\src\device.c
-
-
- $PROJ_DIR$\..\..\src\mempool.c
+ $PROJ_DIR$\..\..\src\kservice.c
$PROJ_DIR$\..\..\src\timer.c
- $PROJ_DIR$\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\src\components.c
-
-
- $PROJ_DIR$\..\..\src\idle.c
+ $PROJ_DIR$\..\..\src\device.c
$PROJ_DIR$\..\..\src\object.c
- $PROJ_DIR$\..\..\src\mem.c
+ $PROJ_DIR$\..\..\src\components.c
$PROJ_DIR$\..\..\src\clock.c
+
+ $PROJ_DIR$\..\..\src\thread.c
+
+
+ $PROJ_DIR$\..\..\src\idle.c
+
+
+ $PROJ_DIR$\..\..\src\mempool.c
+
$PROJ_DIR$\..\..\src\ipc.c
- $PROJ_DIR$\..\..\src\kservice.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+ $PROJ_DIR$\..\..\src\scheduler.c
- $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+ $PROJ_DIR$\..\..\src\irq.c
diff --git a/bsp/acm32f0x0-nucleo/project.uvprojx b/bsp/acm32f0x0-nucleo/project.uvprojx
index db185cd465..309adbf5e0 100644
--- a/bsp/acm32f0x0-nucleo/project.uvprojx
+++ b/bsp/acm32f0x0-nucleo/project.uvprojx
@@ -334,9 +334,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -460,8 +460,53 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
backtrace.c
@@ -478,9 +523,9 @@
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m0\context_rvds.S
@@ -490,13 +535,6 @@
..\..\libcpu\arm\cortex-m0\cpuport.c
-
-
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m0\context_rvds.S
-
-
DeviceDrivers
@@ -530,9 +568,30 @@
- pipe.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
+
+
+
+
+ workqueue.c
+ 1
+ ..\..\components\drivers\src\workqueue.c
@@ -551,30 +610,9 @@
- completion.c
+ pipe.c
1
- ..\..\components\drivers\src\completion.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
-
-
- workqueue.c
- 1
- ..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\pipe.c
@@ -587,13 +625,6 @@
Drivers
-
-
- drv_adc.c
- 1
- drivers\drv_adc.c
-
-
drv_hwtimer.c
@@ -608,13 +639,6 @@
drivers\drv_wdt.c
-
-
- drv_uart.c
- 1
- drivers\drv_uart.c
-
-
board.c
@@ -622,6 +646,13 @@
drivers\board.c
+
+
+ drv_adc.c
+ 1
+ drivers\drv_adc.c
+
+
drv_gpio.c
@@ -629,6 +660,13 @@
drivers\drv_gpio.c
+
+
+ drv_uart.c
+ 1
+ drivers\drv_uart.c
+
+
Finsh
@@ -656,55 +694,6 @@
Kernel
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
mempool.c
@@ -721,9 +710,16 @@
- components.c
+ ipc.c
1
- ..\..\src\components.c
+ ..\..\src\ipc.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
@@ -733,6 +729,13 @@
..\..\src\timer.c
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
kservice.c
@@ -747,42 +750,39 @@
..\..\src\idle.c
-
-
- libc
- libc_syms.c
+ scheduler.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\scheduler.c
- syscalls.c
+ clock.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\clock.c
- mem_std.c
+ device.c
1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\device.c
- time.c
+ object.c
1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\object.c
- stdlib.c
+ thread.c
1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\thread.c
diff --git a/bsp/acm32f0x0-nucleo/rtconfig.h b/bsp/acm32f0x0-nucleo/rtconfig.h
index fb405a49be..7bbe70b3ee 100644
--- a/bsp/acm32f0x0-nucleo/rtconfig.h
+++ b/bsp/acm32f0x0-nucleo/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -48,9 +47,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M0
@@ -64,7 +61,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -81,11 +77,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 */
@@ -101,13 +95,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -118,41 +108,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 */
@@ -163,83 +140,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_SERIES_ACM32F0
/* Hardware Drivers Config */
@@ -258,7 +215,6 @@
#define BSP_USING_GPIO1
#define BSP_USING_GPIO2
-/* end of Hardware GPIO */
#define BSP_USING_ADC
/* Hardware UART */
@@ -270,15 +226,12 @@
#define BSP_USING_UART3
#define BSP_UART3_RX_USING_DMA
#define BSP_UART3_TX_USING_DMA
-/* end of Hardware UART */
/* Hardware I2C */
-/* end of Hardware I2C */
/* Hardware CAN */
-/* end of Hardware CAN */
/* Hardware TIMER */
@@ -289,25 +242,19 @@
#define BSP_USING_TIM15
#define BSP_USING_TIM16
#define BSP_USING_TIM17
-/* end of Hardware TIMER */
/* Hardware WDT */
#define BSP_USING_WDT
#define BSP_USING_IWDT
-/* end of Hardware WDT */
/* Hardware SPI */
-/* end of Hardware SPI */
/* Hardware CRYPTO */
-/* end of Hardware CRYPTO */
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/acm32f4xx-nucleo/.config b/bsp/acm32f4xx-nucleo/.config
index bb1ba6a7ea..c963fda082 100644
--- a/bsp/acm32f4xx-nucleo/.config
+++ b/bsp/acm32f4xx-nucleo/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_DEVICE_OPS=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,13 +117,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
@@ -163,17 +160,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -183,7 +176,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -196,9 +188,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
@@ -208,32 +197,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
@@ -243,14 +226,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
@@ -285,17 +265,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
@@ -317,8 +292,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -353,7 +327,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -363,16 +337,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -384,15 +357,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
@@ -412,8 +382,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -457,7 +428,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
@@ -469,7 +439,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -477,14 +453,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
@@ -495,8 +469,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
@@ -526,11 +498,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -604,10 +574,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -621,7 +592,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
@@ -634,7 +604,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
@@ -648,8 +617,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -671,16 +639,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -701,7 +664,6 @@ CONFIG_SOC_SRAM_START_ADDR=0x20000000
CONFIG_SOC_SRAM_SIZE=0xC0
CONFIG_SOC_FLASH_START_ADDR=0x00000000
CONFIG_SOC_FLASH_SIZE=0x8000
-# end of ACM32F403RET7
#
# Onboard Peripheral Drivers
@@ -717,8 +679,6 @@ CONFIG_SOC_FLASH_SIZE=0x8000
CONFIG_BSP_USING_GPIO1=y
CONFIG_BSP_USING_GPIO2=y
CONFIG_BSP_USING_GPIO3=y
-# end of Hardware GPIO
-
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_DAC is not set
@@ -735,8 +695,6 @@ CONFIG_BSP_UART3_TX_USING_DMA=y
CONFIG_BSP_USING_UART4=y
CONFIG_BSP_UART4_RX_USING_DMA=y
CONFIG_BSP_UART4_TX_USING_DMA=y
-# end of Hardware UART
-
# CONFIG_BSP_USING_RTC is not set
# CONFIG_BSP_USING_LPUART is not set
@@ -745,20 +703,17 @@ CONFIG_BSP_UART4_TX_USING_DMA=y
#
# CONFIG_BSP_USING_I2C1 is not set
# CONFIG_BSP_USING_I2C2 is not set
-# end of Hardware I2C
#
# Hardware I2S
#
# CONFIG_BSP_USING_I2S1 is not set
-# end of Hardware I2S
#
# Hardware CAN
#
# CONFIG_BSP_USING_CAN1 is not set
# CONFIG_BSP_USING_CAN2 is not set
-# end of Hardware CAN
#
# Hardware TIMER
@@ -773,15 +728,12 @@ CONFIG_BSP_UART4_TX_USING_DMA=y
# CONFIG_BSP_USING_TIM15 is not set
# CONFIG_BSP_USING_TIM16 is not set
# CONFIG_BSP_USING_TIM17 is not set
-# end of Hardware TIMER
#
# Hardware WDT
#
# CONFIG_BSP_USING_WDT is not set
# CONFIG_BSP_USING_IWDT is not set
-# end of Hardware WDT
-
# CONFIG_BSP_USING_LCD is not set
#
@@ -791,7 +743,6 @@ CONFIG_BSP_UART4_TX_USING_DMA=y
# CONFIG_BSP_USING_SPI2 is not set
# CONFIG_BSP_USING_SPI3 is not set
# CONFIG_BSP_USING_SPI4 is not set
-# end of Hardware SPI
#
# Hardware CRYPTO
@@ -799,16 +750,12 @@ CONFIG_BSP_UART4_TX_USING_DMA=y
# CONFIG_BSP_USING_CRC is not set
# CONFIG_BSP_USING_AES is not set
# CONFIG_BSP_USING_HRNG is not set
-# end of Hardware CRYPTO
-
# CONFIG_BSP_USING_CMP is not set
# CONFIG_BSP_USING_OPA is not set
# CONFIG_BSP_USING_TKEY is not set
# CONFIG_BSP_USING_RPMU is not set
# CONFIG_BSP_USING_USBD is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/acm32f4xx-nucleo/project.uvprojx b/bsp/acm32f4xx-nucleo/project.uvprojx
index 4aa9914bc5..57aa3046a9 100644
--- a/bsp/acm32f4xx-nucleo/project.uvprojx
+++ b/bsp/acm32f4xx-nucleo/project.uvprojx
@@ -334,9 +334,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m33;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ libraries\HAL_Driver\Inc;libraries\Device;libraries\CMSIS;applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m33;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -439,8 +439,53 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
div0.c
@@ -457,16 +502,9 @@
- showmem.c
+ trustzone.c
1
- ..\..\libcpu\arm\common\showmem.c
-
-
-
-
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m33\context_rvds.S
+ ..\..\libcpu\arm\cortex-m33\trustzone.c
@@ -478,16 +516,16 @@
- trustzone.c
- 1
- ..\..\libcpu\arm\cortex-m33\trustzone.c
+ syscall_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m33\syscall_rvds.S
- syscall_rvds.S
+ context_rvds.S
2
- ..\..\libcpu\arm\cortex-m33\syscall_rvds.S
+ ..\..\libcpu\arm\cortex-m33\context_rvds.S
@@ -509,9 +547,9 @@
- ringbuffer.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\workqueue.c
@@ -523,16 +561,9 @@
- workqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\workqueue.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -544,9 +575,16 @@
- ringblk_buf.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
@@ -568,16 +606,16 @@
- board.c
+ drv_gpio.c
1
- drivers\board.c
+ drivers\drv_gpio.c
- drv_gpio.c
+ board.c
1
- drivers\drv_gpio.c
+ drivers\board.c
@@ -607,6 +645,20 @@
Kernel
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
timer.c
@@ -616,9 +668,9 @@
- idle.c
+ ipc.c
1
- ..\..\src\idle.c
+ ..\..\src\ipc.c
@@ -628,20 +680,6 @@
..\..\src\object.c
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
mem.c
@@ -658,16 +696,16 @@
- thread.c
+ mempool.c
1
- ..\..\src\thread.c
+ ..\..\src\mempool.c
- ipc.c
+ idle.c
1
- ..\..\src\ipc.c
+ ..\..\src\idle.c
@@ -677,13 +715,6 @@
..\..\src\components.c
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
irq.c
@@ -693,47 +724,16 @@
- mempool.c
+ scheduler.c
1
- ..\..\src\mempool.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\scheduler.c
- syscalls.c
+ kservice.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\kservice.c
diff --git a/bsp/acm32f4xx-nucleo/rtconfig.h b/bsp/acm32f4xx-nucleo/rtconfig.h
index 22061493a6..adac23b9fc 100644
--- a/bsp/acm32f4xx-nucleo/rtconfig.h
+++ b/bsp/acm32f4xx-nucleo/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -48,9 +47,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -61,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -78,11 +74,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,41 +102,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 */
@@ -157,83 +134,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -245,7 +202,6 @@
#define SOC_SRAM_SIZE 0xC0
#define SOC_FLASH_START_ADDR 0x00000000
#define SOC_FLASH_SIZE 0x8000
-/* end of ACM32F403RET7 */
/* Onboard Peripheral Drivers */
@@ -256,7 +212,6 @@
#define BSP_USING_GPIO1
#define BSP_USING_GPIO2
#define BSP_USING_GPIO3
-/* end of Hardware GPIO */
/* Hardware UART */
@@ -270,39 +225,29 @@
#define BSP_USING_UART4
#define BSP_UART4_RX_USING_DMA
#define BSP_UART4_TX_USING_DMA
-/* end of Hardware UART */
/* Hardware I2C */
-/* end of Hardware I2C */
/* Hardware I2S */
-/* end of Hardware I2S */
/* Hardware CAN */
-/* end of Hardware CAN */
/* Hardware TIMER */
-/* end of Hardware TIMER */
/* Hardware WDT */
-/* end of Hardware WDT */
/* Hardware SPI */
-/* end of Hardware SPI */
/* Hardware CRYPTO */
-/* end of Hardware CRYPTO */
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/allwinner_tina/.config b/bsp/allwinner_tina/.config
index 21e2f9c9ff..91c1e655ea 100644
--- a/bsp/allwinner_tina/.config
+++ b/bsp/allwinner_tina/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,13 +81,11 @@ 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_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_ARM9=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -101,7 +100,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -121,7 +119,6 @@ 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
@@ -156,12 +153,9 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -216,17 +210,13 @@ 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -236,7 +226,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -249,9 +238,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
@@ -261,32 +247,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
@@ -296,16 +276,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -340,17 +316,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
@@ -372,8 +343,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -408,7 +378,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -418,16 +388,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -439,15 +408,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
@@ -467,8 +433,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -512,7 +479,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
@@ -524,7 +490,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -532,14 +504,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
@@ -550,8 +520,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_PERSIMMON is not set
@@ -582,11 +550,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -660,10 +626,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -677,7 +644,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
@@ -690,7 +656,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
@@ -704,8 +669,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -727,17 +691,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_TINA=y
CONFIG_TINA_USING_UART0=y
# CONFIG_TINA_USING_UART1 is not set
diff --git a/bsp/allwinner_tina/drivers/board.c b/bsp/allwinner_tina/drivers/board.c
index c9be412067..393d0e4151 100644
--- a/bsp/allwinner_tina/drivers/board.c
+++ b/bsp/allwinner_tina/drivers/board.c
@@ -87,13 +87,16 @@ void rt_hw_board_init(void)
/* init memory system */
rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
#endif
+
+#ifdef RT_USING_SERIAL
/* init hardware interrupt */
rt_hw_uart_init();
+#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
/* set console device */
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
-#endif /* RT_USING_CONSOLE */
+#endif
os_clock_init();
diff --git a/bsp/allwinner_tina/rtconfig.h b/bsp/allwinner_tina/rtconfig.h
index 189c3da00f..150a426047 100644
--- a/bsp/allwinner_tina/rtconfig.h
+++ b/bsp/allwinner_tina/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -40,7 +40,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -48,9 +47,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 */
#define ARCH_ARM
#define ARCH_ARM_ARM9
@@ -63,7 +60,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -80,7 +76,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -105,9 +100,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -131,13 +124,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -148,41 +137,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 */
@@ -193,83 +169,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_TINA
#define TINA_USING_UART0
#define TINA_USING_UART2
diff --git a/bsp/amebaz/.config b/bsp/amebaz/.config
index bf193cc7d7..da33f27b18 100644
--- a/bsp/amebaz/.config
+++ b/bsp/amebaz/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=1024
# 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
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="dbg"
-# 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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,13 +117,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
@@ -195,17 +192,13 @@ CONFIG_RT_WLAN_CMD_DEBUG=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -215,7 +208,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -228,9 +220,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
@@ -240,14 +229,12 @@ 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
CONFIG_NETDEV_USING_PING=y
-# end of Network interface device
#
# light weight TCP/IP stack
@@ -273,8 +260,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -309,25 +294,20 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
CONFIG_LWIP_USING_DHCPD=y
CONFIG_DHCPD_SERVER_IP="192.168.169.1"
CONFIG_DHCPD_USING_ROUTER=y
# CONFIG_LWIP_USING_CUSTOMER_DNS_SERVER is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -337,14 +317,11 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -379,17 +356,12 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -411,8 +383,7 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -447,7 +418,7 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -457,16 +428,15 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -478,15 +448,12 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -506,8 +473,9 @@ CONFIG_DHCPD_USING_ROUTER=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -551,7 +519,6 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -563,7 +530,13 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -571,14 +544,12 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -589,8 +560,6 @@ CONFIG_DHCPD_USING_ROUTER=y
# 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
@@ -620,11 +589,9 @@ CONFIG_DHCPD_USING_ROUTER=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -702,10 +669,11 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -719,7 +687,6 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# 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
@@ -732,7 +699,6 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# 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
@@ -746,8 +712,7 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -769,16 +734,11 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Env config
@@ -786,14 +746,11 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest"
# CONFIG_SYS_AUTO_UPDATE_PKGS is not set
# CONFIG_SYS_CREATE_MDK_IAR_PROJECT is not set
# CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE is not set
-# end of Env config
#
# External Libraries
#
CONFIG_RT_USING_SMARTCONFIG_LIB=y
-# end of External Libraries
-
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_WIFI=y
CONFIG_SOC_AMEBAZ=y
diff --git a/bsp/amebaz/drivers/board.c b/bsp/amebaz/drivers/board.c
index 7631bd13d6..5bf7863046 100644
--- a/bsp/amebaz/drivers/board.c
+++ b/bsp/amebaz/drivers/board.c
@@ -90,8 +90,11 @@ void rt_hw_board_init(void)
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#ifdef RT_USING_SERIAL
rt_hw_uart_init();
+#endif
+
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/amebaz/project.ewp b/bsp/amebaz/project.ewp
index cf14d7be00..d86a2c90cd 100644
--- a/bsp/amebaz/project.ewp
+++ b/bsp/amebaz/project.ewp
@@ -174,8 +174,8 @@
RT_USING_DLIBC
_DLIB_FILE_DESCRIPTOR
_DLIB_THREAD_SUPPORT
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -1142,8 +1142,8 @@
CCDefines
NDEBUG
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -1946,14 +1946,53 @@
Applications
- $PROJ_DIR$\applications\main.c
+ $PROJ_DIR$\applications\smartconfig_app.c
- $PROJ_DIR$\applications\smartconfig_app.c
+ $PROJ_DIR$\applications\main.c
+
+
+
+ Compiler
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
CPU
+
+ $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c
+
$PROJ_DIR$\..\..\libcpu\arm\common\showmem.c
@@ -1961,14 +2000,11 @@
$PROJ_DIR$\..\..\libcpu\arm\common\div0.c
- $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c
+ $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c
$PROJ_DIR$\..\..\libcpu\arm\cortex-m4\context_iar.S
-
- $PROJ_DIR$\..\..\libcpu\arm\cortex-m4\cpuport.c
-
DeviceDrivers
@@ -1976,7 +2012,13 @@
$PROJ_DIR$\..\..\components\drivers\serial\serial.c
- $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c
+ $PROJ_DIR$\..\..\components\drivers\src\pipe.c
+
+
+ $PROJ_DIR$\..\..\components\drivers\src\workqueue.c
+
+
+ $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
$PROJ_DIR$\..\..\components\drivers\src\completion.c
@@ -1984,17 +2026,11 @@
$PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
-
- $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
-
-
- $PROJ_DIR$\..\..\components\drivers\src\workqueue.c
-
$PROJ_DIR$\..\..\components\drivers\src\dataqueue.c
- $PROJ_DIR$\..\..\components\drivers\src\pipe.c
+ $PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c
$PROJ_DIR$\..\..\components\drivers\wlan\wlan_dev.c
@@ -2051,23 +2087,17 @@
$PROJ_DIR$\..\..\src\ipc.c
- $PROJ_DIR$\..\..\src\object.c
+ $PROJ_DIR$\..\..\src\scheduler.c
- $PROJ_DIR$\..\..\src\idle.c
+ $PROJ_DIR$\..\..\src\timer.c
$PROJ_DIR$\..\..\src\thread.c
-
- $PROJ_DIR$\..\..\src\device.c
-
$PROJ_DIR$\..\..\src\components.c
-
- $PROJ_DIR$\..\..\src\timer.c
-
$PROJ_DIR$\..\..\src\clock.c
@@ -2075,52 +2105,22 @@
$PROJ_DIR$\..\..\src\kservice.c
- $PROJ_DIR$\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\src\mem.c
+ $PROJ_DIR$\..\..\src\irq.c
$PROJ_DIR$\..\..\src\mempool.c
- $PROJ_DIR$\..\..\src\irq.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+ $PROJ_DIR$\..\..\src\idle.c
- $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+ $PROJ_DIR$\..\..\src\object.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
+ $PROJ_DIR$\..\..\src\device.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+ $PROJ_DIR$\..\..\src\mem.c
@@ -2128,6 +2128,9 @@
lwIP
+
+ $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
+
$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\api\netdb.c
@@ -2143,9 +2146,6 @@
$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\netif.c
-
- $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
-
$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\core\sys.c
diff --git a/bsp/amebaz/rtconfig.h b/bsp/amebaz/rtconfig.h
index 69a2c0975d..e20ff04c9c 100644
--- a/bsp/amebaz/rtconfig.h
+++ b/bsp/amebaz/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -40,7 +40,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -48,9 +47,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "dbg"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -61,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -78,11 +74,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 */
@@ -121,13 +115,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -138,20 +128,14 @@
/* 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 */
#define NETDEV_USING_PING
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -170,7 +154,6 @@
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -197,28 +180,21 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* end of light weight TCP/IP stack */
/* AT commands */
-/* end of AT commands */
#define LWIP_USING_DHCPD
#define DHCPD_SERVER_IP "192.168.169.1"
#define DHCPD_USING_ROUTER
-/* 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 */
@@ -229,94 +205,72 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
#define PKG_USING_REALTEK_AMEBA
#define PKG_USING_REALTEK_AMEBA_LATEST_VERSION
-/* 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 */
/* Env config */
-/* end of Env config */
/* External Libraries */
#define RT_USING_SMARTCONFIG_LIB
-/* end of External Libraries */
#define BSP_USING_WIFI
#define SOC_AMEBAZ
diff --git a/bsp/apm32/apm32f103xe-minibroard/.config b/bsp/apm32/apm32f103xe-minibroard/.config
index 77241ff161..1800c0ae16 100644
--- a/bsp/apm32/apm32f103xe-minibroard/.config
+++ b/bsp/apm32/apm32f103xe-minibroard/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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,15 +79,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M3=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -101,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -121,13 +118,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
@@ -166,16 +161,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -184,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -197,9 +189,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
@@ -209,32 +198,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
@@ -244,16 +227,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -288,17 +267,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
@@ -320,8 +294,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -356,7 +329,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -366,16 +339,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -387,15 +359,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
@@ -415,8 +384,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -460,7 +430,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
@@ -472,7 +441,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -480,14 +455,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
@@ -498,8 +471,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
@@ -529,11 +500,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -607,10 +576,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -624,7 +594,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
@@ -637,7 +606,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
@@ -651,8 +619,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -674,17 +641,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FAMILY_APM32=y
CONFIG_SOC_SERIES_APM32F1=y
@@ -699,5 +660,3 @@ CONFIG_SOC_APM32F103ZE=y
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
CONFIG_BSP_USING_UART1=y
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/apm32/apm32f103xe-minibroard/project.uvprojx b/bsp/apm32/apm32f103xe-minibroard/project.uvprojx
index 8a2a417209..4fcb3b814e 100644
--- a/bsp/apm32/apm32f103xe-minibroard/project.uvprojx
+++ b/bsp/apm32/apm32f103xe-minibroard/project.uvprojx
@@ -334,9 +334,9 @@
0
- USE_STDPERIPH_DRIVER, APM32F103xE, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, APM32F103xE, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\Drivers;..\libraries\Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\APM32F10x_Library\Device\Geehy\APM32F10x\Include;..\libraries\APM32F10x_Library\APM32F10x_StdPeriphDriver\inc;..\libraries\APM32F10x_Library\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\Drivers;..\libraries\Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\APM32F10x_Library\Device\Geehy\APM32F10x\Include;..\libraries\APM32F10x_Library\APM32F10x_StdPeriphDriver\inc;..\libraries\APM32F10x_Library\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -387,13 +387,51 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
- backtrace.c
+ showmem.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
+ ..\..\..\libcpu\arm\common\showmem.c
@@ -405,9 +443,9 @@
- showmem.c
+ backtrace.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\libcpu\arm\common\backtrace.c
@@ -443,16 +481,16 @@
- pipe.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\pipe.c
+ ..\..\..\components\drivers\src\waitqueue.c
- waitqueue.c
+ ringbuffer.c
1
- ..\..\..\components\drivers\src\waitqueue.c
+ ..\..\..\components\drivers\src\ringbuffer.c
@@ -464,16 +502,16 @@
- workqueue.c
+ pipe.c
1
- ..\..\..\components\drivers\src\workqueue.c
+ ..\..\..\components\drivers\src\pipe.c
- completion.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\workqueue.c
@@ -485,9 +523,9 @@
- ringbuffer.c
+ completion.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\completion.c
@@ -555,6 +593,27 @@
Kernel
+
+
+ mem.c
+ 1
+ ..\..\..\src\mem.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
clock.c
@@ -564,9 +623,9 @@
- timer.c
+ mempool.c
1
- ..\..\..\src\timer.c
+ ..\..\..\src\mempool.c
@@ -585,44 +644,16 @@
- idle.c
+ ipc.c
1
- ..\..\..\src\idle.c
+ ..\..\..\src\ipc.c
- mem.c
+ timer.c
1
- ..\..\..\src\mem.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
+ ..\..\..\src\timer.c
@@ -634,26 +665,23 @@
- ipc.c
+ irq.c
1
- ..\..\..\src\ipc.c
+ ..\..\..\src\irq.c
- mempool.c
+ scheduler.c
1
- ..\..\..\src\mempool.c
+ ..\..\..\src\scheduler.c
-
-
- libc
- time.c
+ idle.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\idle.c
diff --git a/bsp/apm32/apm32f103xe-minibroard/rtconfig.h b/bsp/apm32/apm32f103xe-minibroard/rtconfig.h
index 7daa3432ae..0d5ec118de 100644
--- a/bsp/apm32/apm32f103xe-minibroard/rtconfig.h
+++ b/bsp/apm32/apm32f103xe-minibroard/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -62,7 +59,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -79,11 +75,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 */
@@ -96,12 +90,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,41 +103,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 */
@@ -157,83 +135,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FAMILY_APM32
#define SOC_SERIES_APM32F1
@@ -246,7 +204,5 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/apollo2/.config b/bsp/apollo2/.config
index c5bf158801..449d8281f8 100644
--- a/bsp/apollo2/.config
+++ b/bsp/apollo2/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=500
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,15 +81,12 @@ 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_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -103,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -123,7 +120,6 @@ 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
@@ -139,7 +135,6 @@ CONFIG_DFS_FD_MAX=4
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -188,17 +183,13 @@ CONFIG_RT_USING_SPI=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -208,7 +199,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -221,9 +211,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
@@ -233,32 +220,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
@@ -268,16 +249,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -312,17 +289,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
@@ -344,8 +316,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -380,7 +351,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -390,16 +361,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -411,15 +381,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
@@ -439,8 +406,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -484,7 +452,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
@@ -496,7 +463,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -504,14 +477,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
@@ -522,8 +493,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_PERSIMMON is not set
@@ -554,11 +523,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -632,10 +599,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -649,7 +617,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
@@ -662,7 +629,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
@@ -676,8 +642,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -699,15 +664,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_APOLLO2=y
diff --git a/bsp/apollo2/board/board.c b/bsp/apollo2/board/board.c
index 907455a998..4337c7e26f 100644
--- a/bsp/apollo2/board/board.c
+++ b/bsp/apollo2/board/board.c
@@ -151,8 +151,11 @@ void rt_hw_board_init(void)
#endif
-#ifdef RT_USING_CONSOLE
+#ifdef RT_USING_SERIAL
rt_hw_uart_init();
+#endif
+
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/apollo2/project.uvprojx b/bsp/apollo2/project.uvprojx
index 046e600bee..23e20a27f0 100644
--- a/bsp/apollo2/project.uvprojx
+++ b/bsp/apollo2/project.uvprojx
@@ -368,9 +368,9 @@
1
- AM_PACKAGE_BGA, AM_PART_APOLLO2, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ AM_PACKAGE_BGA, AM_PART_APOLLO2, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;board;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;libraries\drivers;libraries\startup;libraries\startup\cmsis\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\include;board;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;libraries\drivers;libraries\startup;libraries\startup\cmsis\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -421,14 +421,45 @@
- CPU
+ Compiler
- div0.c
+ syscall_mem.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ CPU
showmem.c
@@ -436,6 +467,13 @@
..\..\libcpu\arm\common\showmem.c
+
+
+ div0.c
+ 1
+ ..\..\libcpu\arm\common\div0.c
+
+
backtrace.c
@@ -445,16 +483,16 @@
- cpuport.c
- 1
- ..\..\libcpu\arm\cortex-m4\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m4\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -518,9 +556,9 @@
- waitqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\waitqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -530,20 +568,6 @@
..\..\components\drivers\src\workqueue.c
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
-
-
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
-
-
ringbuffer.c
@@ -551,6 +575,20 @@
..\..\components\drivers\src\ringbuffer.c
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
pipe.c
@@ -560,9 +598,9 @@
- ringblk_buf.c
+ completion.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\completion.c
@@ -580,20 +618,6 @@
Drivers
-
-
- spi.c
- 1
- board\spi.c
-
-
-
-
- board_rtc.c
- 1
- board\rtc.c
-
-
gpio.c
@@ -601,13 +625,6 @@
board\gpio.c
-
-
- adc.c
- 1
- board\adc.c
-
-
smbus.c
@@ -615,6 +632,13 @@
board\smbus.c
+
+
+ uart.c
+ 1
+ board\uart.c
+
+
i2c.c
@@ -622,6 +646,27 @@
board\i2c.c
+
+
+ adc.c
+ 1
+ board\adc.c
+
+
+
+
+ pdm.c
+ 1
+ board\pdm.c
+
+
+
+
+ pwm.c
+ 1
+ board\pwm.c
+
+
board.c
@@ -629,6 +674,13 @@
board\board.c
+
+
+ spi.c
+ 1
+ board\spi.c
+
+
led.c
@@ -645,23 +697,9 @@
- pwm.c
+ board_rtc.c
1
- board\pwm.c
-
-
-
-
- uart.c
- 1
- board\uart.c
-
-
-
-
- pdm.c
- 1
- board\pdm.c
+ board\rtc.c
@@ -745,9 +783,9 @@
- kservice.c
+ device.c
1
- ..\..\src\kservice.c
+ ..\..\src\device.c
@@ -757,13 +795,6 @@
..\..\src\timer.c
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
idle.c
@@ -771,27 +802,6 @@
..\..\src\idle.c
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
mem.c
@@ -808,16 +818,37 @@
- thread.c
+ mempool.c
1
- ..\..\src\thread.c
+ ..\..\src\mempool.c
- mempool.c
+ components.c
1
- ..\..\src\mempool.c
+ ..\..\src\components.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
@@ -827,42 +858,11 @@
..\..\src\clock.c
-
-
- libc
- mem_std.c
+ object.c
1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\object.c
diff --git a/bsp/apollo2/rtconfig.h b/bsp/apollo2/rtconfig.h
index 5d99366253..cda3ee5556 100644
--- a/bsp/apollo2/rtconfig.h
+++ b/bsp/apollo2/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 500
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -40,7 +40,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -48,9 +47,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 */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -65,7 +62,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -82,7 +78,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -93,7 +88,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 4
#define DFS_FD_MAX 4
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -110,13 +104,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -127,41 +117,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 */
@@ -172,83 +149,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_APOLLO2
#endif
diff --git a/bsp/asm9260t/.config b/bsp/asm9260t/.config
index 63beea5140..4040cdbe40 100644
--- a/bsp/asm9260t/.config
+++ b/bsp/asm9260t/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -72,7 +74,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -83,21 +84,21 @@ CONFIG_RT_USING_INTERRUPT_INFO=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart3"
-# 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
#
+# CONFIG_RT_USING_COMPONENTS_INIT is not set
+# CONFIG_RT_USING_USER_MAIN is not set
# CONFIG_RT_USING_LEGACY is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -117,13 +118,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
@@ -162,17 +161,13 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -182,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -195,9 +189,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
@@ -207,32 +198,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
@@ -242,14 +227,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
@@ -284,17 +266,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
@@ -316,8 +293,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -352,7 +328,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -362,16 +338,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -383,15 +358,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
@@ -411,8 +383,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -456,7 +429,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
@@ -468,7 +440,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -476,14 +454,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
@@ -494,8 +470,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
@@ -525,11 +499,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -603,10 +575,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -620,7 +593,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
@@ -633,7 +605,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
@@ -647,8 +618,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -670,17 +640,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
# CONFIG_RT_USING_UART0 is not set
CONFIG_RT_USING_UART3=y
# CONFIG_RT_USING_UART4 is not set
diff --git a/bsp/asm9260t/project.ewp b/bsp/asm9260t/project.ewp
index a4bc16a2b9..be28a9e59e 100644
--- a/bsp/asm9260t/project.ewp
+++ b/bsp/asm9260t/project.ewp
@@ -211,8 +211,8 @@
CCDefines
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -338,17 +338,17 @@
CCIncludePath2
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\include
- $PROJ_DIR$\platform
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\..\..\components\libc\posix\ipc
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\libcpu\arm\arm926
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\applications
$PROJ_DIR$\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\platform
$PROJ_DIR$\..\..\components\drivers\include
$PROJ_DIR$\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\components\finsh
@@ -1237,8 +1237,8 @@
CCDefines
NDEBUG
- __RTTHREAD__
RT_USING_DLIBC
+ __RTTHREAD__
CCPreprocFile
@@ -1364,17 +1364,17 @@
CCIncludePath2
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\include
- $PROJ_DIR$\platform
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\..\..\components\libc\posix\ipc
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\..\..\libcpu\arm\arm926
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
$PROJ_DIR$\applications
$PROJ_DIR$\..\..\components\libc\posix\io\poll
+ $PROJ_DIR$\platform
$PROJ_DIR$\..\..\components\drivers\include
$PROJ_DIR$\..\..\libcpu\arm\common
$PROJ_DIR$\..\..\components\finsh
@@ -2059,10 +2059,43 @@
- CPU
+ Compiler
- $PROJ_DIR$\..\..\libcpu\arm\common\div0.c
+ $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+
+ CPU
$PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c
@@ -2070,13 +2103,7 @@
$PROJ_DIR$\..\..\libcpu\arm\common\showmem.c
- $PROJ_DIR$\..\..\libcpu\arm\arm926\machine.c
-
-
- $PROJ_DIR$\..\..\libcpu\arm\arm926\mmu.c
-
-
- $PROJ_DIR$\..\..\libcpu\arm\arm926\context_iar.S
+ $PROJ_DIR$\..\..\libcpu\arm\common\div0.c
$PROJ_DIR$\..\..\libcpu\arm\arm926\stack.c
@@ -2084,29 +2111,32 @@
$PROJ_DIR$\..\..\libcpu\arm\arm926\cpuport.c
+
+ $PROJ_DIR$\..\..\libcpu\arm\arm926\mmu.c
+
$PROJ_DIR$\..\..\libcpu\arm\arm926\start_iar.S
$PROJ_DIR$\..\..\libcpu\arm\arm926\trap.c
+
+ $PROJ_DIR$\..\..\libcpu\arm\arm926\machine.c
+
+
+ $PROJ_DIR$\..\..\libcpu\arm\arm926\context_iar.S
+
DeviceDrivers
$PROJ_DIR$\..\..\components\drivers\serial\serial.c
-
- $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
-
$PROJ_DIR$\..\..\components\drivers\src\dataqueue.c
- $PROJ_DIR$\..\..\components\drivers\src\completion.c
-
-
- $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
+ $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
$PROJ_DIR$\..\..\components\drivers\src\pipe.c
@@ -2114,6 +2144,12 @@
$PROJ_DIR$\..\..\components\drivers\src\workqueue.c
+
+ $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
+
+
+ $PROJ_DIR$\..\..\components\drivers\src\completion.c
+
$PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c
@@ -2130,7 +2166,7 @@
$PROJ_DIR$\drivers\led.c
- $PROJ_DIR$\platform\system_clock.c
+ $PROJ_DIR$\platform\reset.c
$PROJ_DIR$\platform\rt_low_level_init.c
@@ -2139,10 +2175,10 @@
$PROJ_DIR$\platform\gpio.c
- $PROJ_DIR$\platform\timer0.c
+ $PROJ_DIR$\platform\system_clock.c
- $PROJ_DIR$\platform\reset.c
+ $PROJ_DIR$\platform\timer0.c
$PROJ_DIR$\platform\uart.c
@@ -2165,86 +2201,50 @@
Kernel
-
- $PROJ_DIR$\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\src\idle.c
-
-
- $PROJ_DIR$\..\..\src\mem.c
-
-
- $PROJ_DIR$\..\..\src\object.c
-
-
- $PROJ_DIR$\..\..\src\components.c
-
-
- $PROJ_DIR$\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\src\ipc.c
-
-
- $PROJ_DIR$\..\..\src\memheap.c
-
$PROJ_DIR$\..\..\src\slab.c
-
- $PROJ_DIR$\..\..\src\thread.c
-
-
- $PROJ_DIR$\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\src\device.c
-
$PROJ_DIR$\..\..\src\irq.c
- $PROJ_DIR$\..\..\src\clock.c
+ $PROJ_DIR$\..\..\src\idle.c
+
+
+ $PROJ_DIR$\..\..\src\memheap.c
$PROJ_DIR$\..\..\src\timer.c
-
-
- libc
- $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+ $PROJ_DIR$\..\..\src\scheduler.c
- $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+ $PROJ_DIR$\..\..\src\mem.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
+ $PROJ_DIR$\..\..\src\components.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
+ $PROJ_DIR$\..\..\src\mempool.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
+ $PROJ_DIR$\..\..\src\clock.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+ $PROJ_DIR$\..\..\src\kservice.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
+ $PROJ_DIR$\..\..\src\object.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
+ $PROJ_DIR$\..\..\src\ipc.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
+ $PROJ_DIR$\..\..\src\thread.c
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
+ $PROJ_DIR$\..\..\src\device.c
diff --git a/bsp/asm9260t/project.uvproj b/bsp/asm9260t/project.uvproj
index 9bff4825cb..4cde672b7f 100644
--- a/bsp/asm9260t/project.uvproj
+++ b/bsp/asm9260t/project.uvproj
@@ -357,9 +357,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;drivers;platform;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;drivers;platform;..\..\components\finsh;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -409,8 +409,53 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
div0.c
@@ -425,20 +470,6 @@
..\..\libcpu\arm\common\backtrace.c
-
-
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
-
-
-
-
- cpuport.c
- 1
- ..\..\libcpu\arm\arm926\cpuport.c
-
-
mmu.c
@@ -453,6 +484,13 @@
..\..\libcpu\arm\arm926\machine.c
+
+
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\arm926\context_rvds.S
+
+
trap.c
@@ -462,9 +500,9 @@
- stack.c
+ cpuport.c
1
- ..\..\libcpu\arm\arm926\stack.c
+ ..\..\libcpu\arm\arm926\cpuport.c
@@ -476,9 +514,9 @@
- context_rvds.S
- 2
- ..\..\libcpu\arm\arm926\context_rvds.S
+ stack.c
+ 1
+ ..\..\libcpu\arm\arm926\stack.c
@@ -491,6 +529,20 @@
..\..\components\drivers\serial\serial.c
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
waitqueue.c
@@ -507,16 +559,9 @@
- ringblk_buf.c
+ pipe.c
1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\pipe.c
@@ -528,16 +573,9 @@
- ringbuffer.c
+ completion.c
1
- ..\..\components\drivers\src\ringbuffer.c
-
-
-
-
- pipe.c
- 1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\completion.c
@@ -566,9 +604,16 @@
- interrupt.c
+ uart.c
1
- platform\interrupt.c
+ platform\uart.c
+
+
+
+
+ reset.c
+ 1
+ platform\reset.c
@@ -580,16 +625,9 @@
- uart.c
+ interrupt.c
1
- platform\uart.c
-
-
-
-
- reset.c
- 1
- platform\reset.c
+ platform\interrupt.c
@@ -640,20 +678,6 @@
Kernel
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
components.c
@@ -663,23 +687,9 @@
- object.c
+ scheduler.c
1
- ..\..\src\object.c
-
-
-
-
- slab.c
- 1
- ..\..\src\slab.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
+ ..\..\src\scheduler.c
@@ -691,16 +701,23 @@
- mempool.c
+ timer.c
1
- ..\..\src\mempool.c
+ ..\..\src\timer.c
- clock.c
+ slab.c
1
- ..\..\src\clock.c
+ ..\..\src\slab.c
+
+
+
+
+ object.c
+ 1
+ ..\..\src\object.c
@@ -712,9 +729,23 @@
- device.c
+ idle.c
1
- ..\..\src\device.c
+ ..\..\src\idle.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
@@ -724,13 +755,6 @@
..\..\src\kservice.c
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
thread.c
@@ -740,47 +764,23 @@
- idle.c
+ device.c
1
- ..\..\src\idle.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\device.c
- syscalls.c
+ ipc.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\ipc.c
- libc_syms.c
+ clock.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\clock.c
diff --git a/bsp/asm9260t/rtconfig.h b/bsp/asm9260t/rtconfig.h
index b4afda2e8d..93b8c2b668 100644
--- a/bsp/asm9260t/rtconfig.h
+++ b/bsp/asm9260t/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -44,7 +44,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -53,16 +52,13 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart3"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -79,11 +75,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,41 +102,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 */
@@ -157,83 +134,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 RT_USING_UART3
#define RT_USING_LED
diff --git a/bsp/at32/at32f403a-start/.config b/bsp/at32/at32f403a-start/.config
index 5d8382b8b8..975886f1e3 100644
--- a/bsp/at32/at32f403a-start/.config
+++ b/bsp/at32/at32f403a-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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -71,7 +73,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
@@ -82,15 +83,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -105,7 +103,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -125,13 +122,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
@@ -170,17 +165,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -190,7 +181,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -203,9 +193,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
@@ -215,32 +202,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
@@ -250,16 +231,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -294,17 +271,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
@@ -326,8 +298,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -362,7 +333,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -372,16 +343,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -393,15 +363,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
@@ -421,8 +388,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -466,7 +434,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
@@ -478,7 +445,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -486,14 +459,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
@@ -504,8 +475,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_PERSIMMON is not set
@@ -536,11 +505,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -614,10 +581,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -631,7 +599,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
@@ -644,7 +611,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
@@ -658,8 +624,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -681,17 +646,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FAMILY_AT32=y
CONFIG_SOC_SERIES_AT32F403A=y
@@ -704,7 +663,6 @@ CONFIG_SOC_AT32F403AVGT7=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_SERIAL=y
-# end of Onboard Peripheral Drivers
#
# On-chip Peripheral Drivers
@@ -723,5 +681,3 @@ CONFIG_BSP_USING_UART3=y
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_CAN is not set
# CONFIG_BSP_USING_SDIO is not set
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/at32/at32f403a-start/board/board.c b/bsp/at32/at32f403a-start/board/board.c
index 27b672b4da..80d1e94d8a 100644
--- a/bsp/at32/at32f403a-start/board/board.c
+++ b/bsp/at32/at32f403a-start/board/board.c
@@ -77,7 +77,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/at32/at32f403a-start/project.ewp b/bsp/at32/at32f403a-start/project.ewp
index b662b4afc8..90f6243ee7 100644
--- a/bsp/at32/at32f403a-start/project.ewp
+++ b/bsp/at32/at32f403a-start/project.ewp
@@ -219,9 +219,9 @@
CCDefines
+ RT_USING_DLIBC
AT32F403AVGT7
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -1259,9 +1259,9 @@
CCDefines
+ RT_USING_DLIBC
AT32F403AVGT7
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -2086,16 +2086,52 @@
$PROJ_DIR$\applications\main.c
+
+ Compiler
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
CPU
- $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
$PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
- $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -2112,26 +2148,26 @@
$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
$PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
@@ -2170,10 +2206,19 @@
Kernel
- $PROJ_DIR$\..\..\..\src\components.c
+ $PROJ_DIR$\..\..\..\src\ipc.c
- $PROJ_DIR$\..\..\..\src\thread.c
+ $PROJ_DIR$\..\..\..\src\irq.c
+
+
+ $PROJ_DIR$\..\..\..\src\object.c
+
+
+ $PROJ_DIR$\..\..\..\src\idle.c
+
+
+ $PROJ_DIR$\..\..\..\src\mempool.c
$PROJ_DIR$\..\..\..\src\kservice.c
@@ -2182,19 +2227,13 @@
$PROJ_DIR$\..\..\..\src\device.c
- $PROJ_DIR$\..\..\..\src\idle.c
-
-
- $PROJ_DIR$\..\..\..\src\irq.c
-
-
- $PROJ_DIR$\..\..\..\src\timer.c
+ $PROJ_DIR$\..\..\..\src\thread.c
$PROJ_DIR$\..\..\..\src\mem.c
- $PROJ_DIR$\..\..\..\src\mempool.c
+ $PROJ_DIR$\..\..\..\src\timer.c
$PROJ_DIR$\..\..\..\src\clock.c
@@ -2202,51 +2241,12 @@
$PROJ_DIR$\..\..\..\src\scheduler.c
+
+ $PROJ_DIR$\..\..\..\src\components.c
+
$PROJ_DIR$\..\..\..\src\memheap.c
-
- $PROJ_DIR$\..\..\..\src\ipc.c
-
-
- $PROJ_DIR$\..\..\..\src\object.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
Libraries
diff --git a/bsp/at32/at32f403a-start/project.uvproj b/bsp/at32/at32f403a-start/project.uvproj
index e25769185f..fd08635f63 100644
--- a/bsp/at32/at32f403a-start/project.uvproj
+++ b/bsp/at32/at32f403a-start/project.uvproj
@@ -372,9 +372,9 @@
0
- USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, AT32F403AVGT7, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, AT32F403AVGT7, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -425,13 +425,51 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
- showmem.c
+ backtrace.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\libcpu\arm\common\backtrace.c
@@ -443,16 +481,9 @@
- backtrace.c
+ showmem.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
-
-
-
-
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+ ..\..\..\libcpu\arm\common\showmem.c
@@ -462,6 +493,13 @@
..\..\..\libcpu\arm\cortex-m4\cpuport.c
+
+
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
DeviceDrivers
@@ -486,20 +524,6 @@
..\..\..\components\drivers\src\pipe.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
dataqueue.c
@@ -509,9 +533,16 @@
- ringbuffer.c
+ ringblk_buf.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ workqueue.c
+ 1
+ ..\..\..\components\drivers\src\workqueue.c
@@ -523,9 +554,16 @@
- ringblk_buf.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\ringblk_buf.c
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
@@ -602,51 +640,9 @@
Kernel
- memheap.c
+ mem.c
1
- ..\..\..\src\memheap.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\mem.c
@@ -658,30 +654,16 @@
- object.c
+ thread.c
1
- ..\..\..\src\object.c
+ ..\..\..\src\thread.c
- mem.c
+ components.c
1
- ..\..\..\src\mem.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
+ ..\..\..\src\components.c
@@ -691,6 +673,41 @@
..\..\..\src\clock.c
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ object.c
+ 1
+ ..\..\..\src\object.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
irq.c
@@ -698,42 +715,25 @@
..\..\..\src\irq.c
-
-
- libc
- syscalls.c
+ memheap.c
1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\..\src\memheap.c
- libc_syms.c
+ scheduler.c
1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\scheduler.c
- mem_std.c
+ timer.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
+ ..\..\..\src\timer.c
diff --git a/bsp/at32/at32f403a-start/project.uvprojx b/bsp/at32/at32f403a-start/project.uvprojx
index 1c0f58751a..c897fdefff 100644
--- a/bsp/at32/at32f403a-start/project.uvprojx
+++ b/bsp/at32/at32f403a-start/project.uvprojx
@@ -333,9 +333,9 @@
0
- USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, AT32F403AVGT7, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, AT32F403AVGT7, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -386,6 +386,44 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
@@ -411,16 +449,16 @@
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m4\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -440,20 +478,6 @@
..\..\..\components\drivers\serial\serial.c
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
ringblk_buf.c
@@ -470,9 +494,9 @@
- completion.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\workqueue.c
@@ -489,6 +513,20 @@
..\..\..\components\drivers\src\ringbuffer.c
+
+
+ waitqueue.c
+ 1
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
Drivers
@@ -563,16 +601,9 @@
Kernel
- irq.c
+ clock.c
1
- ..\..\..\src\irq.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
+ ..\..\..\src\clock.c
@@ -591,16 +622,16 @@
- clock.c
+ memheap.c
1
- ..\..\..\src\clock.c
+ ..\..\..\src\memheap.c
- object.c
+ kservice.c
1
- ..\..\..\src\object.c
+ ..\..\..\src\kservice.c
@@ -619,30 +650,23 @@
- mempool.c
+ components.c
1
- ..\..\..\src\mempool.c
+ ..\..\..\src\components.c
- memheap.c
+ object.c
1
- ..\..\..\src\memheap.c
+ ..\..\..\src\object.c
- ipc.c
+ irq.c
1
- ..\..\..\src\ipc.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
+ ..\..\..\src\irq.c
@@ -654,47 +678,23 @@
- components.c
+ ipc.c
1
- ..\..\..\src\components.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\..\src\ipc.c
- libc_syms.c
+ mempool.c
1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\mempool.c
- mem_std.c
+ mem.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
+ ..\..\..\src\mem.c
diff --git a/bsp/at32/at32f403a-start/rtconfig.h b/bsp/at32/at32f403a-start/rtconfig.h
index 23ee2f7c77..5ac23d0bc1 100644
--- a/bsp/at32/at32f403a-start/rtconfig.h
+++ b/bsp/at32/at32f403a-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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -42,7 +42,6 @@
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -50,9 +49,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -67,7 +64,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -84,11 +80,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 */
@@ -100,13 +94,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -117,41 +107,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 */
@@ -162,83 +139,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FAMILY_AT32
#define SOC_SERIES_AT32F403A
@@ -249,7 +206,6 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_SERIAL
-/* end of Onboard Peripheral Drivers */
/* On-chip Peripheral Drivers */
@@ -258,7 +214,5 @@
#define BSP_USING_UART1
#define BSP_USING_UART2
#define BSP_USING_UART3
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/at32/at32f407-start/.config b/bsp/at32/at32f407-start/.config
index 6bc40889a9..110a7aa619 100644
--- a/bsp/at32/at32f407-start/.config
+++ b/bsp/at32/at32f407-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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -71,7 +73,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
@@ -82,15 +83,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -105,7 +103,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -125,13 +122,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
@@ -170,17 +165,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -190,7 +181,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -203,9 +193,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
@@ -215,32 +202,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
@@ -250,16 +231,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -294,17 +271,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
@@ -326,8 +298,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -362,7 +333,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -372,16 +343,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -393,15 +363,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
@@ -421,8 +388,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -466,7 +434,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
@@ -478,7 +445,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -486,14 +459,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
@@ -504,8 +475,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_PERSIMMON is not set
@@ -536,11 +505,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -614,10 +581,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -631,7 +599,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
@@ -644,7 +611,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
@@ -658,8 +624,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -681,17 +646,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FAMILY_AT32=y
CONFIG_SOC_SERIES_AT32F407=y
@@ -704,7 +663,6 @@ CONFIG_SOC_AT32F407VGT7=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_SERIAL=y
-# end of Onboard Peripheral Drivers
#
# On-chip Peripheral Drivers
@@ -724,5 +682,3 @@ CONFIG_BSP_USING_UART3=y
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_CAN is not set
# CONFIG_BSP_USING_SDIO is not set
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/at32/at32f407-start/board/board.c b/bsp/at32/at32f407-start/board/board.c
index 27b672b4da..80d1e94d8a 100644
--- a/bsp/at32/at32f407-start/board/board.c
+++ b/bsp/at32/at32f407-start/board/board.c
@@ -77,7 +77,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/at32/at32f407-start/project.ewp b/bsp/at32/at32f407-start/project.ewp
index ebcfe3b5d3..671e8973bc 100644
--- a/bsp/at32/at32f407-start/project.ewp
+++ b/bsp/at32/at32f407-start/project.ewp
@@ -219,9 +219,9 @@
CCDefines
+ RT_USING_DLIBC
AT32F407VGT7
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -1259,9 +1259,9 @@
CCDefines
+ RT_USING_DLIBC
AT32F407VGT7
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -2087,21 +2087,57 @@
- CPU
+ Compiler
- $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+
+ CPU
$PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
+
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+
$PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\context_iar.S
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\context_iar.S
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -2115,15 +2151,12 @@
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
+
$PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
@@ -2131,7 +2164,10 @@
$PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
- $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
@@ -2170,83 +2206,47 @@
Kernel
- $PROJ_DIR$\..\..\..\src\idle.c
+ $PROJ_DIR$\..\..\..\src\mempool.c
+
+
+ $PROJ_DIR$\..\..\..\src\irq.c
+
+
+ $PROJ_DIR$\..\..\..\src\kservice.c
+
+
+ $PROJ_DIR$\..\..\..\src\timer.c
$PROJ_DIR$\..\..\..\src\components.c
+
+ $PROJ_DIR$\..\..\..\src\memheap.c
+
$PROJ_DIR$\..\..\..\src\device.c
+
+ $PROJ_DIR$\..\..\..\src\scheduler.c
+
+
+ $PROJ_DIR$\..\..\..\src\clock.c
+
$PROJ_DIR$\..\..\..\src\object.c
$PROJ_DIR$\..\..\..\src\mem.c
-
- $PROJ_DIR$\..\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\..\src\clock.c
-
$PROJ_DIR$\..\..\..\src\thread.c
- $PROJ_DIR$\..\..\..\src\memheap.c
+ $PROJ_DIR$\..\..\..\src\idle.c
$PROJ_DIR$\..\..\..\src\ipc.c
-
- $PROJ_DIR$\..\..\..\src\timer.c
-
-
- $PROJ_DIR$\..\..\..\src\irq.c
-
-
- $PROJ_DIR$\..\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\..\src\scheduler.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
Libraries
diff --git a/bsp/at32/at32f407-start/project.uvproj b/bsp/at32/at32f407-start/project.uvproj
index 43abcf3daa..7ff7721560 100644
--- a/bsp/at32/at32f407-start/project.uvproj
+++ b/bsp/at32/at32f407-start/project.uvproj
@@ -357,9 +357,9 @@
0
- USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_ARM_LIBC, __RTTHREAD__, AT32F407VGT7
+ USE_STDPERIPH_DRIVER, AT32F407VGT7, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -409,13 +409,51 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
- div0.c
+ backtrace.c
1
- ..\..\..\libcpu\arm\common\div0.c
+ ..\..\..\libcpu\arm\common\backtrace.c
@@ -427,16 +465,9 @@
- backtrace.c
+ div0.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
-
-
-
-
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m4\cpuport.c
+ ..\..\..\libcpu\arm\common\div0.c
@@ -446,6 +477,13 @@
..\..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m4\cpuport.c
+
+
DeviceDrivers
@@ -463,20 +501,6 @@
..\..\..\components\drivers\serial\serial.c
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\src\ringbuffer.c
-
-
workqueue.c
@@ -484,13 +508,6 @@
..\..\..\components\drivers\src\workqueue.c
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
-
-
ringblk_buf.c
@@ -498,6 +515,27 @@
..\..\..\components\drivers\src\ringblk_buf.c
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ pipe.c
+ 1
+ ..\..\..\components\drivers\src\pipe.c
+
+
waitqueue.c
@@ -507,9 +545,9 @@
- completion.c
+ dataqueue.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\dataqueue.c
@@ -584,6 +622,27 @@
Kernel
+
+
+ mem.c
+ 1
+ ..\..\..\src\mem.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\..\src\timer.c
+
+
mempool.c
@@ -591,6 +650,13 @@
..\..\..\src\mempool.c
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
device.c
@@ -598,6 +664,13 @@
..\..\..\src\device.c
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
object.c
@@ -607,9 +680,9 @@
- thread.c
+ scheduler.c
1
- ..\..\..\src\thread.c
+ ..\..\..\src\scheduler.c
@@ -619,6 +692,20 @@
..\..\..\src\ipc.c
+
+
+ memheap.c
+ 1
+ ..\..\..\src\memheap.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
irq.c
@@ -633,93 +720,6 @@
..\..\..\src\idle.c
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
Libraries
diff --git a/bsp/at32/at32f407-start/project.uvprojx b/bsp/at32/at32f407-start/project.uvprojx
index 0a0d8b3f08..b67faf1261 100644
--- a/bsp/at32/at32f407-start/project.uvprojx
+++ b/bsp/at32/at32f407-start/project.uvprojx
@@ -332,9 +332,9 @@
0
- USE_STDPERIPH_DRIVER, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_ARM_LIBC, __RTTHREAD__, AT32F407VGT7
+ USE_STDPERIPH_DRIVER, AT32F407VGT7, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\Libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\Libraries\AT32_Std_Driver\CMSIS\AT32\AT32F4xx\inc;..\Libraries\AT32_Std_Driver\CMSIS;..\Libraries\AT32_Std_Driver\AT32F4xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -386,14 +386,45 @@
- CPU
+ Compiler
- showmem.c
+ syscalls.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ CPU
div0.c
@@ -401,6 +432,13 @@
..\..\..\libcpu\arm\common\div0.c
+
+
+ showmem.c
+ 1
+ ..\..\..\libcpu\arm\common\showmem.c
+
+
backtrace.c
@@ -441,16 +479,9 @@
- waitqueue.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
+ ..\..\..\components\drivers\src\workqueue.c
@@ -460,6 +491,13 @@
..\..\..\components\drivers\src\pipe.c
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
+
+
completion.c
@@ -467,6 +505,13 @@
..\..\..\components\drivers\src\completion.c
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
ringblk_buf.c
@@ -476,16 +521,9 @@
- workqueue.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\waitqueue.c
@@ -562,9 +600,9 @@
Kernel
- components.c
+ device.c
1
- ..\..\..\src\components.c
+ ..\..\..\src\device.c
@@ -576,44 +614,9 @@
- scheduler.c
+ mem.c
1
- ..\..\..\src\scheduler.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
+ ..\..\..\src\mem.c
@@ -625,16 +628,16 @@
- device.c
+ ipc.c
1
- ..\..\..\src\device.c
+ ..\..\..\src\ipc.c
- clock.c
+ object.c
1
- ..\..\..\src\clock.c
+ ..\..\..\src\object.c
@@ -644,6 +647,48 @@
..\..\..\src\irq.c
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
+
+
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ memheap.c
+ 1
+ ..\..\..\src\memheap.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\..\src\scheduler.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
idle.c
@@ -651,51 +696,6 @@
..\..\..\src\idle.c
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
Libraries
diff --git a/bsp/at32/at32f407-start/rtconfig.h b/bsp/at32/at32f407-start/rtconfig.h
index 3fe176b506..fbf7650327 100644
--- a/bsp/at32/at32f407-start/rtconfig.h
+++ b/bsp/at32/at32f407-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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -42,7 +42,6 @@
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -50,9 +49,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -67,7 +64,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -84,11 +80,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 */
@@ -100,13 +94,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -117,41 +107,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 */
@@ -162,83 +139,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FAMILY_AT32
#define SOC_SERIES_AT32F407
@@ -249,7 +206,6 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_SERIAL
-/* end of Onboard Peripheral Drivers */
/* On-chip Peripheral Drivers */
@@ -258,7 +214,5 @@
#define BSP_USING_UART1
#define BSP_USING_UART2
#define BSP_USING_UART3
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/at91sam9260/.config b/bsp/at91sam9260/.config
index 7374dfb088..6d115873ab 100644
--- a/bsp/at91sam9260/.config
+++ b/bsp/at91sam9260/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,9 @@ CONFIG_RT_USING_INTERRUPT_INFO=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -132,7 +130,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -171,17 +168,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -191,7 +184,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -204,9 +196,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 +205,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 +234,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 +273,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 +300,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -361,7 +335,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -371,16 +345,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -392,15 +365,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 +390,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -465,7 +436,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 +447,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -485,14 +461,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 +477,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
@@ -534,11 +506,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -612,10 +582,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -629,7 +600,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 +612,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 +625,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -679,17 +647,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_AT91SAM926=y
CONFIG_RT_USING_DBGU=y
# CONFIG_RT_USING_UART0 is not set
diff --git a/bsp/at91sam9260/drivers/board.c b/bsp/at91sam9260/drivers/board.c
index 8a063cfc86..c009375615 100644
--- a/bsp/at91sam9260/drivers/board.c
+++ b/bsp/at91sam9260/drivers/board.c
@@ -242,9 +242,11 @@ void rt_hw_board_init()
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
+
/* initialize timer0 */
rt_hw_timer_init();
diff --git a/bsp/at91sam9260/project.uvproj b/bsp/at91sam9260/project.uvproj
index aed9954f40..2d06616091 100644
--- a/bsp/at91sam9260/project.uvproj
+++ b/bsp/at91sam9260/project.uvproj
@@ -357,9 +357,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;platform;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -409,6 +409,44 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
@@ -418,13 +456,6 @@
..\..\libcpu\arm\common\backtrace.c
-
-
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
-
-
div0.c
@@ -432,6 +463,13 @@
..\..\libcpu\arm\common\div0.c
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
start_rvds.S
@@ -439,20 +477,6 @@
..\..\libcpu\arm\arm926\start_rvds.S
-
-
- machine.c
- 1
- ..\..\libcpu\arm\arm926\machine.c
-
-
-
-
- stack.c
- 1
- ..\..\libcpu\arm\arm926\stack.c
-
-
cpuport.c
@@ -460,6 +484,20 @@
..\..\libcpu\arm\arm926\cpuport.c
+
+
+ trap.c
+ 1
+ ..\..\libcpu\arm\arm926\trap.c
+
+
+
+
+ machine.c
+ 1
+ ..\..\libcpu\arm\arm926\machine.c
+
+
mmu.c
@@ -469,16 +507,16 @@
- context_rvds.S
- 2
- ..\..\libcpu\arm\arm926\context_rvds.S
+ stack.c
+ 1
+ ..\..\libcpu\arm\arm926\stack.c
- trap.c
- 1
- ..\..\libcpu\arm\arm926\trap.c
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\arm926\context_rvds.S
@@ -500,16 +538,9 @@
- ringblk_buf.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\workqueue.c
@@ -526,6 +557,13 @@
..\..\components\drivers\src\ringbuffer.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
completion.c
@@ -535,9 +573,9 @@
- workqueue.c
+ dataqueue.c
1
- ..\..\components\drivers\src\workqueue.c
+ ..\..\components\drivers\src\dataqueue.c
@@ -643,13 +681,6 @@
Kernel
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
scheduler.c
@@ -657,13 +688,6 @@
..\..\src\scheduler.c
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
thread.c
@@ -673,37 +697,9 @@
- mempool.c
+ object.c
1
- ..\..\src\mempool.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
+ ..\..\src\object.c
@@ -715,9 +711,23 @@
- clock.c
+ kservice.c
1
- ..\..\src\clock.c
+ ..\..\src\kservice.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
@@ -729,47 +739,37 @@
- object.c
+ components.c
1
- ..\..\src\object.c
-
-
-
-
- libc
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\components.c
- syscalls.c
+ mem.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\mem.c
- mem_std.c
+ ipc.c
1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\ipc.c
- stdlib.c
+ clock.c
1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\clock.c
- time.c
+ irq.c
1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\irq.c
@@ -777,16 +777,16 @@
Platform
- interrupt.c
+ system_clock.c
1
- platform\interrupt.c
+ platform\system_clock.c
- rt_low_level_init.c
+ interrupt.c
1
- platform\rt_low_level_init.c
+ platform\interrupt.c
@@ -798,9 +798,9 @@
- system_clock.c
+ rt_low_level_init.c
1
- platform\system_clock.c
+ platform\rt_low_level_init.c
diff --git a/bsp/at91sam9260/rtconfig.h b/bsp/at91sam9260/rtconfig.h
index d122d5e7c3..f002299141 100755
--- a/bsp/at91sam9260/rtconfig.h
+++ b/bsp/at91sam9260/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -46,9 +45,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "dbgu"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -59,7 +56,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -76,7 +72,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -87,7 +82,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -100,13 +94,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -117,41 +107,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 */
@@ -162,83 +139,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_AT91SAM926
#define RT_USING_DBGU
#define RT_USING_LED
diff --git a/bsp/at91sam9g45/.config b/bsp/at91sam9g45/.config
index 27b68b454c..e0c0d0a73e 100644
--- a/bsp/at91sam9g45/.config
+++ b/bsp/at91sam9g45/.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=16
+# 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,13 +81,11 @@ CONFIG_RT_USING_INTERRUPT_INFO=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="dbgu"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_ARM9=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -102,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
#
CONFIG_RT_USING_CPLUSPLUS=y
# CONFIG_RT_USING_CPLUSPLUS11 is not set
-# end of C++ features
#
# Command shell
@@ -122,7 +120,6 @@ 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
@@ -138,7 +135,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -177,17 +173,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -197,7 +189,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
CONFIG_RT_USING_POSIX_DELAY=y
CONFIG_RT_USING_POSIX_CLOCK=y
-# CONFIG_RT_USING_POSIX_GETLINE is not set
CONFIG_RT_USING_PTHREADS=y
CONFIG_PTHREAD_NUM_MAX=8
@@ -211,9 +202,6 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -223,32 +211,26 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -258,16 +240,12 @@ CONFIG_PTHREAD_NUM_MAX=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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -302,17 +280,12 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -334,8 +307,7 @@ CONFIG_PTHREAD_NUM_MAX=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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -370,7 +342,7 @@ CONFIG_PTHREAD_NUM_MAX=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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -380,16 +352,15 @@ CONFIG_PTHREAD_NUM_MAX=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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -401,15 +372,12 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -429,8 +397,9 @@ CONFIG_PTHREAD_NUM_MAX=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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -474,7 +443,6 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -486,7 +454,13 @@ CONFIG_PTHREAD_NUM_MAX=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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -494,14 +468,12 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -512,8 +484,6 @@ CONFIG_PTHREAD_NUM_MAX=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_PERSIMMON is not set
@@ -544,11 +514,9 @@ CONFIG_PTHREAD_NUM_MAX=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -622,10 +590,11 @@ CONFIG_PTHREAD_NUM_MAX=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -639,7 +608,6 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -652,7 +620,6 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -666,8 +633,7 @@ CONFIG_PTHREAD_NUM_MAX=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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -689,21 +655,14 @@ CONFIG_PTHREAD_NUM_MAX=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_AT91SAM9G45=y
#
# Hardware Drivers Config
#
CONFIG_RT_USING_LED=y
-# end of Hardware Drivers Config
diff --git a/bsp/at91sam9g45/drivers/board.c b/bsp/at91sam9g45/drivers/board.c
index 5d97e1d115..4adf2d9689 100644
--- a/bsp/at91sam9g45/drivers/board.c
+++ b/bsp/at91sam9g45/drivers/board.c
@@ -219,7 +219,8 @@ void rt_hw_board_init()
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
/* initialize timer0 */
diff --git a/bsp/at91sam9g45/project.uvproj b/bsp/at91sam9g45/project.uvproj
index 6537c762bf..296331a3f5 100644
--- a/bsp/at91sam9g45/project.uvproj
+++ b/bsp/at91sam9g45/project.uvproj
@@ -357,9 +357,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\components\cplusplus;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;platform;..\..\components\libc\posix\delay;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\libc\posix\pthreads;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\cplusplus;..\..\libcpu\arm\common;..\..\libcpu\arm\arm926;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;.;..\..\include;platform;..\..\components\libc\posix\delay;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\libc\posix\pthreads;..\..\examples\utest\testcases\kernel
@@ -409,13 +409,51 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPlusPlus
- cxx_Mutex.cpp
+ cxx_Semaphore.cpp
8
- ..\..\components\cplusplus\cxx_Mutex.cpp
+ ..\..\components\cplusplus\cxx_Semaphore.cpp
@@ -425,6 +463,13 @@
..\..\components\cplusplus\cxx_Thread.cpp
+
+
+ cxx_Mutex.cpp
+ 8
+ ..\..\components\cplusplus\cxx_Mutex.cpp
+
+
cxx_crt.cpp
@@ -439,13 +484,6 @@
..\..\components\cplusplus\cxx_crt_init.c
-
-
- cxx_Semaphore.cpp
- 8
- ..\..\components\cplusplus\cxx_Semaphore.cpp
-
-
CPU
@@ -456,13 +494,6 @@
..\..\libcpu\arm\common\backtrace.c
-
-
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
-
-
div0.c
@@ -472,37 +503,9 @@
- cpuport.c
+ showmem.c
1
- ..\..\libcpu\arm\arm926\cpuport.c
-
-
-
-
- stack.c
- 1
- ..\..\libcpu\arm\arm926\stack.c
-
-
-
-
- context_rvds.S
- 2
- ..\..\libcpu\arm\arm926\context_rvds.S
-
-
-
-
- start_rvds.S
- 2
- ..\..\libcpu\arm\arm926\start_rvds.S
-
-
-
-
- machine.c
- 1
- ..\..\libcpu\arm\arm926\machine.c
+ ..\..\libcpu\arm\common\showmem.c
@@ -512,6 +515,27 @@
..\..\libcpu\arm\arm926\trap.c
+
+
+ machine.c
+ 1
+ ..\..\libcpu\arm\arm926\machine.c
+
+
+
+
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\arm926\context_rvds.S
+
+
+
+
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\arm926\cpuport.c
+
+
mmu.c
@@ -519,6 +543,20 @@
..\..\libcpu\arm\arm926\mmu.c
+
+
+ stack.c
+ 1
+ ..\..\libcpu\arm\arm926\stack.c
+
+
+
+
+ start_rvds.S
+ 2
+ ..\..\libcpu\arm\arm926\start_rvds.S
+
+
DeviceDrivers
@@ -536,6 +574,13 @@
..\..\components\drivers\serial\serial.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
pipe.c
@@ -543,6 +588,13 @@
..\..\components\drivers\src\pipe.c
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
completion.c
@@ -552,9 +604,9 @@
- waitqueue.c
+ workqueue.c
1
- ..\..\components\drivers\src\waitqueue.c
+ ..\..\components\drivers\src\workqueue.c
@@ -566,23 +618,9 @@
- workqueue.c
+ waitqueue.c
1
- ..\..\components\drivers\src\workqueue.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\waitqueue.c
@@ -681,34 +719,6 @@
Kernel
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
scheduler.c
@@ -716,13 +726,6 @@
..\..\src\scheduler.c
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
idle.c
@@ -730,6 +733,13 @@
..\..\src\idle.c
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
thread.c
@@ -737,27 +747,6 @@
..\..\src\thread.c
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
irq.c
@@ -765,6 +754,34 @@
..\..\src\irq.c
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
mempool.c
@@ -772,42 +789,25 @@
..\..\src\mempool.c
-
-
- libc
- libc_syms.c
+ ipc.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\ipc.c
- mem_std.c
+ device.c
1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\device.c
- syscalls.c
+ object.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\object.c
@@ -815,9 +815,9 @@
Platform
- rt_low_level_init.c
+ system_clock.c
1
- platform\rt_low_level_init.c
+ platform\system_clock.c
@@ -829,9 +829,9 @@
- system_clock.c
+ rt_low_level_init.c
1
- platform\system_clock.c
+ platform\rt_low_level_init.c
@@ -851,27 +851,6 @@
..\..\components\libc\posix\delay\delay.c
-
-
- pthread_barrier.c
- 1
- ..\..\components\libc\posix\pthreads\pthread_barrier.c
-
-
-
-
- pthread_cond.c
- 1
- ..\..\components\libc\posix\pthreads\pthread_cond.c
-
-
-
-
- pthread.c
- 1
- ..\..\components\libc\posix\pthreads\pthread.c
-
-
pthread_mutex.c
@@ -879,6 +858,13 @@
..\..\components\libc\posix\pthreads\pthread_mutex.c
+
+
+ pthread_attr.c
+ 1
+ ..\..\components\libc\posix\pthreads\pthread_attr.c
+
+
pthread_spin.c
@@ -886,6 +872,13 @@
..\..\components\libc\posix\pthreads\pthread_spin.c
+
+
+ pthread_rwlock.c
+ 1
+ ..\..\components\libc\posix\pthreads\pthread_rwlock.c
+
+
sched.c
@@ -902,16 +895,23 @@
- pthread_attr.c
+ pthread_cond.c
1
- ..\..\components\libc\posix\pthreads\pthread_attr.c
+ ..\..\components\libc\posix\pthreads\pthread_cond.c
- pthread_rwlock.c
+ pthread.c
1
- ..\..\components\libc\posix\pthreads\pthread_rwlock.c
+ ..\..\components\libc\posix\pthreads\pthread.c
+
+
+
+
+ pthread_barrier.c
+ 1
+ ..\..\components\libc\posix\pthreads\pthread_barrier.c
diff --git a/bsp/at91sam9g45/rtconfig.h b/bsp/at91sam9g45/rtconfig.h
index af78e27a72..016f95229b 100644
--- a/bsp/at91sam9g45/rtconfig.h
+++ b/bsp/at91sam9g45/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -40,7 +40,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -49,9 +48,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "dbgu"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define ARCH_ARM_ARM9
@@ -65,7 +62,6 @@
/* C++ features */
#define RT_USING_CPLUSPLUS
-/* end of C++ features */
/* Command shell */
@@ -82,7 +78,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -93,7 +88,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -106,13 +100,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -127,41 +117,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 */
@@ -172,88 +149,67 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_AT91SAM9G45
/* Hardware Drivers Config */
#define RT_USING_LED
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/avr32uc3b0/.config b/bsp/avr32uc3b0/.config
index c8ea3e9499..6219d0ad25 100644
--- a/bsp/avr32uc3b0/.config
+++ b/bsp/avr32uc3b0/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,21 +81,21 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-# 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
#
+# CONFIG_RT_USING_COMPONENTS_INIT is not set
+# CONFIG_RT_USING_USER_MAIN is not set
# CONFIG_RT_USING_LEGACY is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -114,13 +115,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
@@ -159,16 +158,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -177,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -190,9 +186,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
@@ -202,32 +195,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
@@ -237,14 +224,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
@@ -279,17 +263,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
@@ -311,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -347,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -357,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -378,15 +355,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
@@ -406,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -451,7 +426,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
@@ -463,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -471,14 +451,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
@@ -489,8 +467,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
@@ -520,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -598,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -615,7 +590,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
@@ -628,7 +602,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
@@ -642,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -665,13 +637,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
diff --git a/bsp/avr32uc3b0/rtconfig.h b/bsp/avr32uc3b0/rtconfig.h
index cfb9a24a60..257de745ec 100644
--- a/bsp/avr32uc3b0/rtconfig.h
+++ b/bsp/avr32uc3b0/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,16 +46,13 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -73,11 +69,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 */
@@ -90,12 +84,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -106,41 +97,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 */
@@ -151,82 +129,62 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
#endif
diff --git a/bsp/beaglebone/.config b/bsp/beaglebone/.config
index 3b04ee7bf1..30717a3fbc 100644
--- a/bsp/beaglebone/.config
+++ b/bsp/beaglebone/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -132,7 +130,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -171,17 +168,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -191,7 +184,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -204,9 +196,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 +205,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 +234,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 +273,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 +300,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -361,7 +335,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -371,16 +345,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -392,15 +365,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 +390,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -465,7 +436,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 +447,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -485,14 +461,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 +477,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
@@ -534,11 +506,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -612,10 +582,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -629,7 +600,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 +612,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 +625,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -679,16 +647,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_AM335X=y
CONFIG_RT_USING_UART1=y
diff --git a/bsp/beaglebone/rtconfig.h b/bsp/beaglebone/rtconfig.h
index ecd0f6b12c..cbb1f0d03a 100644
--- a/bsp/beaglebone/rtconfig.h
+++ b/bsp/beaglebone/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -58,7 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -86,7 +81,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -99,13 +93,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -116,41 +106,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 */
@@ -161,83 +138,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_AM335X
#define RT_USING_UART1
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/.config b/bsp/bluetrum/ab32vg1-ab-prougen/.config
index b00980f15d..e38eff0982 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/.config
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/.config
@@ -18,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=512
@@ -168,9 +169,6 @@ CONFIG_RT_USING_PIN=y
#
# POSIX layer and C standard library
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -180,7 +178,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -297,6 +294,7 @@ 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
+# CONFIG_PKG_USING_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -331,6 +329,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -344,6 +343,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# language packages
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
@@ -442,6 +442,13 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
+
#
# acceleration: Assembly language or algorithmic acceleration packages
#
@@ -493,7 +500,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# CONFIG_PKG_USING_MCUBOOT is not set
# CONFIG_PKG_USING_TINYUSB is not set
# CONFIG_PKG_USING_USB_STACK is not set
@@ -569,15 +575,18 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_MCP23008 is not set
CONFIG_PKG_USING_BLUETRUM_SDK=y
CONFIG_PKG_BLUETRUM_SDK_PATH="/packages/peripherals/bluetrum_sdk"
+# CONFIG_PKG_USING_BLUETRUM_SDK_V003_FIX is not set
CONFIG_PKG_USING_BLUETRUM_SDK_V002=y
# CONFIG_PKG_USING_BLUETRUM_SDK_V001 is not set
# CONFIG_PKG_USING_BLUETRUM_SDK_LATEST_VERSION is not set
CONFIG_PKG_BLUETRUM_SDK_VER="v0.0.2"
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# CONFIG_PKG_USING_BL_MCU_SDK is not set
# CONFIG_PKG_USING_SOFT_SERIAL is not set
# CONFIG_PKG_USING_MB85RS16 is not set
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
index 1cfd4e2e9e..ac4381e99d 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
@@ -204,7 +204,7 @@ void rt_hw_board_init(void)
rt_hw_usart_init();
#endif // RT_USING_SERIAL
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif // RT_USING_CONSOLE
@@ -279,7 +279,7 @@ void exception_isr(void)
#endif
sys_error_hook(1);
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_NULL);
rt_kprintf(stack_info, rt_thread_self()->sp, rt_thread_self()->name);
#endif
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
index b1c588e36b..6b7901c7fc 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.h
@@ -13,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 512
@@ -92,8 +93,6 @@
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -168,6 +167,9 @@
/* enhanced kernel services */
+/* POSIX extension functions */
+
+
/* acceleration: Assembly language or algorithmic acceleration packages */
diff --git a/bsp/bm3803/.config b/bsp/bm3803/.config
index 1342f33bb7..b19cc40009 100644
--- a/bsp/bm3803/.config
+++ b/bsp/bm3803/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=4096
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=4096
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -50,7 +53,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
@@ -69,7 +71,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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_DEVICE_OPS=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,7 +117,6 @@ 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
@@ -134,7 +132,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -173,17 +170,13 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -193,7 +186,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -206,9 +198,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
@@ -218,32 +207,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
@@ -253,14 +236,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
@@ -295,17 +275,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
@@ -327,8 +302,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -363,7 +337,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -373,16 +347,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -394,15 +367,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
@@ -422,8 +392,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -467,7 +438,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
@@ -479,7 +449,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -487,14 +463,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
@@ -505,8 +479,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
@@ -536,11 +508,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -614,10 +584,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -631,7 +602,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
@@ -644,7 +614,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
@@ -658,8 +627,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -681,16 +649,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_BM3803=y
CONFIG_RT_USING_UART1=y
diff --git a/bsp/bm3803/rtconfig.h b/bsp/bm3803/rtconfig.h
index 79be39497f..3042b8df93 100644
--- a/bsp/bm3803/rtconfig.h
+++ b/bsp/bm3803/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 4096
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -28,7 +29,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -38,7 +38,6 @@
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,7 +73,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -88,7 +83,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -99,13 +93,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -116,41 +106,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 */
@@ -161,83 +138,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_BM3803
#define RT_USING_UART1
diff --git a/bsp/ck802/.config b/bsp/ck802/.config
index acb00815fa..87b8aaf8dc 100644
--- a/bsp/ck802/.config
+++ b/bsp/ck802/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,13 +115,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
@@ -161,16 +158,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -179,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -192,9 +186,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
@@ -204,32 +195,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
@@ -239,14 +224,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
@@ -281,17 +263,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
@@ -313,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -349,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -359,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -380,15 +355,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
@@ -408,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -453,7 +426,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
@@ -465,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -473,14 +451,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
@@ -491,8 +467,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
@@ -522,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -600,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -617,7 +590,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
@@ -630,7 +602,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
@@ -644,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -667,16 +637,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_CK802=y
CONFIG_RT_USING_UART1=y
diff --git a/bsp/ck802/drivers/board.c b/bsp/ck802/drivers/board.c
index df1a263f73..356a2a8216 100644
--- a/bsp/ck802/drivers/board.c
+++ b/bsp/ck802/drivers/board.c
@@ -34,7 +34,7 @@ void rt_hw_board_init(void)
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/ck802/rtconfig.h b/bsp/ck802/rtconfig.h
index 7b34211fb2..9075fbcadd 100644
--- a/bsp/ck802/rtconfig.h
+++ b/bsp/ck802/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -58,7 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,11 +71,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 */
@@ -92,12 +86,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -108,41 +99,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 */
@@ -153,83 +131,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_CK802
#define RT_USING_UART1
diff --git a/bsp/cypress/psoc6-pioneerkit_modus/drivers/board.c b/bsp/cypress/psoc6-pioneerkit_modus/drivers/board.c
index 00b6607a7f..cba6511602 100644
--- a/bsp/cypress/psoc6-pioneerkit_modus/drivers/board.c
+++ b/bsp/cypress/psoc6-pioneerkit_modus/drivers/board.c
@@ -31,19 +31,19 @@ void SysTick_Handler_CB(void)
void rt_hw_board_init()
{
/* init systick */
- init_cycfg_all();
+ init_cycfg_all();
- SystemCoreClockUpdate();
+ SystemCoreClockUpdate();
Cy_SysTick_Init(CY_SYSTICK_CLOCK_SOURCE_CLK_CPU, SystemCoreClock/RT_TICK_PER_SECOND);
Cy_SysTick_SetCallback(0, SysTick_Handler_CB);
Cy_SysTick_EnableInterrupt();
-
+
rt_system_heap_init((void*)ucHeap, (void*)(ucHeap+configTOTAL_HEAP_SIZE));
/* initialize UART device */
rt_hw_uart_init();
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/dm365/.config b/bsp/dm365/.config
index 55c48a5bef..994575681c 100644
--- a/bsp/dm365/.config
+++ b/bsp/dm365/.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=32
+# 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=256
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=1024
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -52,7 +55,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
@@ -69,7 +71,6 @@ CONFIG_RT_USING_SLAB_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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_INTERRUPT_INFO=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=1024
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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,7 +117,6 @@ 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
@@ -153,14 +151,11 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
CONFIG_RT_USING_DFS_NFS=y
CONFIG_RT_NFS_HOST_EXPORT="192.168.1.5:/"
-# end of Device virtual file system
#
# Device Drivers
@@ -213,17 +208,13 @@ CONFIG_RT_USING_SPI=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
CONFIG_RT_USING_MODULE=y
# CONFIG_RT_USING_CUSTOM_DLMODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -234,7 +225,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
CONFIG_RT_USING_POSIX_DELAY=y
CONFIG_RT_USING_POSIX_CLOCK=y
-# CONFIG_RT_USING_POSIX_GETLINE is not set
CONFIG_RT_USING_PTHREADS=y
CONFIG_PTHREAD_NUM_MAX=8
@@ -248,9 +238,6 @@ CONFIG_PTHREAD_NUM_MAX=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
@@ -260,14 +247,12 @@ CONFIG_PTHREAD_NUM_MAX=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
CONFIG_NETDEV_USING_PING=y
-# end of Network interface device
#
# light weight TCP/IP stack
@@ -293,8 +278,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -329,22 +312,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -354,14 +332,11 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -396,17 +371,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -428,8 +398,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -464,7 +433,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -474,16 +443,15 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -495,15 +463,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -523,8 +488,9 @@ CONFIG_RT_LWIP_USING_PING=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -568,7 +534,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -580,7 +545,13 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -588,14 +559,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -606,8 +575,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -637,11 +604,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -715,10 +680,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -732,7 +698,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -745,7 +710,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -759,8 +723,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -782,17 +745,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_DM365=y
#
diff --git a/bsp/dm365/applications/board.c b/bsp/dm365/applications/board.c
index 0a4d9596b1..2305587b80 100644
--- a/bsp/dm365/applications/board.c
+++ b/bsp/dm365/applications/board.c
@@ -190,7 +190,7 @@ void rt_hw_board_init()
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/dm365/rtconfig.h b/bsp/dm365/rtconfig.h
index a984bb3242..c5ecc9bae2 100644
--- a/bsp/dm365/rtconfig.h
+++ b/bsp/dm365/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 1024
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -32,7 +33,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -40,7 +40,6 @@
#define RT_USING_SLAB
#define RT_USING_SLAB_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -49,9 +48,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 1024
#define RT_CONSOLE_DEVICE_NAME "uart0"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -62,7 +59,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -79,7 +75,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -104,11 +99,9 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
#define RT_USING_DFS_NFS
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
-/* end of Device virtual file system */
/* Device Drivers */
@@ -130,13 +123,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_USING_MODULE
#define RT_LIBC_DEFAULT_TIMEZONE 8
@@ -152,20 +141,14 @@
/* 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 */
#define NETDEV_USING_PING
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -184,7 +167,6 @@
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -211,25 +193,18 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -240,83 +215,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_DM365
/* BSP configure */
diff --git a/bsp/essemi/es32f0654/.config b/bsp/essemi/es32f0654/.config
index 7854114a04..7665337785 100644
--- a/bsp/essemi/es32f0654/.config
+++ b/bsp/essemi/es32f0654/.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=8
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=512
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=512
# 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 +53,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 +69,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 +79,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart2"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,13 +115,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
@@ -161,16 +158,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -179,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -192,9 +186,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
@@ -204,32 +195,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
@@ -239,14 +224,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
@@ -281,17 +263,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
@@ -313,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -349,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -359,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -380,15 +355,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
@@ -408,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -453,7 +426,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
@@ -465,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -473,14 +451,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
@@ -491,8 +467,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
@@ -522,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -600,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -617,7 +590,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
@@ -630,7 +602,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
@@ -644,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -667,17 +637,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_ES32F0654LT=y
#
@@ -698,27 +662,23 @@ CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_UART3 is not set
# CONFIG_BSP_USING_USART0 is not set
# CONFIG_BSP_USING_USART1 is not set
-# end of UART Drivers
#
# SPI Drivers
#
# CONFIG_BSP_USING_SPI0 is not set
# CONFIG_BSP_USING_SPI1 is not set
-# end of SPI Drivers
#
# I2C Drivers
#
# CONFIG_BSP_USING_I2C0 is not set
# CONFIG_BSP_USING_I2C1 is not set
-# end of I2C Drivers
#
# CAN Drivers
#
# CONFIG_BSP_USING_CAN0 is not set
-# end of CAN Drivers
#
# PWM Drivers
@@ -727,7 +687,6 @@ CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_GP16C4T0_PWM is not set
# CONFIG_BSP_USING_GP16C2T0_PWM is not set
# CONFIG_BSP_USING_GP16C2T1_PWM is not set
-# end of PWM Drivers
#
# HWtimer Drivers
@@ -739,32 +698,26 @@ CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_BS16T0_HWTIMER is not set
# CONFIG_BSP_USING_BS16T2_HWTIMER is not set
# CONFIG_BSP_USING_BS16T3_HWTIMER is not set
-# end of HWtimer Drivers
#
# RTC Drivers
#
# CONFIG_BSP_USING_RTC is not set
-# end of RTC Drivers
#
# PM Drivers
#
# CONFIG_BSP_USING_PM is not set
-# end of PM Drivers
#
# ADC Drivers
#
# CONFIG_BSP_USING_ADC0 is not set
-# end of ADC Drivers
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
#
# CONFIG_BSP_USING_SPI_FLASH is not set
-# end of Onboard Peripheral Drivers
#
# Offboard Peripheral Drivers
@@ -785,5 +738,3 @@ CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_EXAMPLE_UART is not set
# CONFIG_BSP_USING_EXAMPLE_CAN is not set
# CONFIG_BSP_USING_EXAMPLE_PM is not set
-# end of Peripheral Drivers test example
-# end of Hardware Drivers Config
diff --git a/bsp/essemi/es32f0654/drivers/board.c b/bsp/essemi/es32f0654/drivers/board.c
index a9ccb5f184..844abdcad7 100644
--- a/bsp/essemi/es32f0654/drivers/board.c
+++ b/bsp/essemi/es32f0654/drivers/board.c
@@ -176,7 +176,7 @@ void rt_hw_board_init(void)
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/essemi/es32f0654/project.uvprojx b/bsp/essemi/es32f0654/project.uvprojx
index ca9d0a061b..6ad942e160 100644
--- a/bsp/essemi/es32f0654/project.uvprojx
+++ b/bsp/essemi/es32f0654/project.uvprojx
@@ -330,9 +330,9 @@
0
- ES32F065x, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ ES32F065x, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;drivers\ES;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;libraries\CMSIS\Device\EastSoft\ES32F065x\Include;libraries\CMSIS\Include;libraries\ES32F065x_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;drivers\ES;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;libraries\CMSIS\Device\EastSoft\ES32F065x\Include;libraries\CMSIS\Include;libraries\ES32F065x_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -383,8 +383,53 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
+
+
+ div0.c
+ 1
+ ..\..\..\libcpu\arm\common\div0.c
+
+
backtrace.c
@@ -399,13 +444,6 @@
..\..\..\libcpu\arm\common\showmem.c
-
-
- div0.c
- 1
- ..\..\..\libcpu\arm\common\div0.c
-
-
cpuport.c
@@ -439,16 +477,9 @@
- ringblk_buf.c
+ ringbuffer.c
1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- completion.c
- 1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\ringbuffer.c
@@ -458,6 +489,27 @@
..\..\..\components\drivers\src\waitqueue.c
+
+
+ workqueue.c
+ 1
+ ..\..\..\components\drivers\src\workqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
dataqueue.c
@@ -465,13 +517,6 @@
..\..\..\components\drivers\src\dataqueue.c
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\src\ringbuffer.c
-
-
pipe.c
@@ -479,13 +524,6 @@
..\..\..\components\drivers\src\pipe.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
Drivers
@@ -539,9 +577,9 @@
Kernel
- device.c
+ ipc.c
1
- ..\..\..\src\device.c
+ ..\..\..\src\ipc.c
@@ -553,44 +591,9 @@
- clock.c
+ mem.c
1
- ..\..\..\src\clock.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\mem.c
@@ -602,16 +605,30 @@
- timer.c
+ thread.c
1
- ..\..\..\src\timer.c
+ ..\..\..\src\thread.c
- mem.c
+ device.c
1
- ..\..\..\src\mem.c
+ ..\..\..\src\device.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
@@ -623,19 +640,30 @@
- thread.c
+ kservice.c
1
- ..\..\..\src\thread.c
+ ..\..\..\src\kservice.c
-
-
- libc
- time.c
+ timer.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\timer.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
@@ -643,93 +671,16 @@
Libraries
- utils.c
+ ald_spi.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\utils.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_spi.c
- ald_calc.c
+ ald_iap.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_calc.c
-
-
-
-
- ald_crc.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_crc.c
-
-
-
-
- ald_acmp.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_acmp.c
-
-
-
-
- ald_wdt.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_wdt.c
-
-
-
-
- ald_flash_ext.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
-
-
-
-
- ald_pmu.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_pmu.c
-
-
-
-
- ald_smartcard.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_smartcard.c
-
-
-
-
- ald_pis.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_pis.c
-
-
-
-
- ald_tsense.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_tsense.c
-
-
-
-
- ald_bkpc.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_bkpc.c
-
-
-
-
- ald_gpio.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_gpio.c
-
-
-
-
- ald_rmu.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_rmu.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_iap.c
@@ -748,51 +699,23 @@
- ald_iap.c
+ ald_smartcard.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_iap.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_smartcard.c
- ald_flash.c
+ ald_rmu.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_flash.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_rmu.c
- ald_usart.c
+ ald_tsense.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_usart.c
-
-
-
-
- ald_timer.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_timer.c
-
-
-
-
- ald_adc.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_adc.c
-
-
-
-
- ald_crypt.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_crypt.c
-
-
-
-
- ald_cmu.c
- 1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_cmu.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_tsense.c
@@ -804,23 +727,23 @@
- ald_trng.c
+ ald_wdt.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_trng.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_wdt.c
- ald_i2c.c
+ ald_flash_ext.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_i2c.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
- startup_es32f065x.s
- 2
- libraries\CMSIS\Device\EastSoft\ES32F065x\Startup\keil\startup_es32f065x.s
+ ald_adc.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_adc.c
@@ -832,9 +755,114 @@
- ald_spi.c
+ ald_calc.c
1
- libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_spi.c
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_calc.c
+
+
+
+
+ ald_pmu.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_pmu.c
+
+
+
+
+ ald_cmu.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_cmu.c
+
+
+
+
+ utils.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\utils.c
+
+
+
+
+ ald_acmp.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_acmp.c
+
+
+
+
+ ald_pis.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_pis.c
+
+
+
+
+ ald_crc.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_crc.c
+
+
+
+
+ ald_timer.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_timer.c
+
+
+
+
+ ald_gpio.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_gpio.c
+
+
+
+
+ ald_usart.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_usart.c
+
+
+
+
+ ald_i2c.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_i2c.c
+
+
+
+
+ ald_flash.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_flash.c
+
+
+
+
+ ald_crypt.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_crypt.c
+
+
+
+
+ ald_trng.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_trng.c
+
+
+
+
+ startup_es32f065x.s
+ 2
+ libraries\CMSIS\Device\EastSoft\ES32F065x\Startup\keil\startup_es32f065x.s
+
+
+
+
+ ald_bkpc.c
+ 1
+ libraries\ES32F065x_ALD_StdPeriph_Driver\Source\ald_bkpc.c
diff --git a/bsp/essemi/es32f0654/rtconfig.h b/bsp/essemi/es32f0654/rtconfig.h
index fd6c111efb..31ed4b77e2 100644
--- a/bsp/essemi/es32f0654/rtconfig.h
+++ b/bsp/essemi/es32f0654/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 512
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart2"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -58,7 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,11 +71,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 */
@@ -91,12 +85,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -107,41 +98,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 */
@@ -152,83 +130,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_ES32F0654LT
/* Hardware Drivers Config */
@@ -240,50 +198,37 @@
/* UART Drivers */
#define BSP_USING_UART2
-/* end of UART Drivers */
/* SPI Drivers */
-/* end of SPI Drivers */
/* I2C Drivers */
-/* end of I2C Drivers */
/* CAN Drivers */
-/* end of CAN Drivers */
/* PWM Drivers */
-/* end of PWM Drivers */
/* HWtimer Drivers */
-/* end of HWtimer Drivers */
/* RTC Drivers */
-/* end of RTC Drivers */
/* PM Drivers */
-/* end of PM Drivers */
/* ADC Drivers */
-/* end of ADC Drivers */
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Offboard Peripheral Drivers */
/* Peripheral Drivers test example */
-/* end of Peripheral Drivers test example */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/essemi/es32f365x/.config b/bsp/essemi/es32f365x/.config
index 1b13c5983e..99b8da6997 100644
--- a/bsp/essemi/es32f365x/.config
+++ b/bsp/essemi/es32f365x/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=512
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=512
# 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 +53,6 @@ CONFIG_RT_USING_EVENT=y
CONFIG_RT_USING_MAILBOX=y
CONFIG_RT_USING_MESSAGEQUEUE=y
CONFIG_RT_USING_SIGNALS=y
-# end of Inter-Thread communication
#
# Memory Management
@@ -67,7 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,13 +115,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
@@ -161,16 +158,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -179,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -192,9 +186,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
@@ -204,32 +195,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
@@ -239,14 +224,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
@@ -281,17 +263,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
@@ -313,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -349,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -359,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -380,15 +355,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
@@ -408,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -453,7 +426,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
@@ -465,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -473,14 +451,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
@@ -491,8 +467,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
@@ -522,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -600,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -617,7 +590,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
@@ -630,7 +602,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
@@ -644,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -667,17 +637,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_ES32F3696LT=y
#
@@ -700,7 +664,6 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_UART3 is not set
# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_UART5 is not set
-# end of UART Drivers
#
# SPI Drivers
@@ -708,33 +671,28 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_SPI0 is not set
# CONFIG_BSP_USING_SPI1 is not set
# CONFIG_BSP_USING_SPI2 is not set
-# end of SPI Drivers
#
# I2C Drivers
#
# CONFIG_BSP_USING_I2C0 is not set
# CONFIG_BSP_USING_I2C1 is not set
-# end of I2C Drivers
#
# CAN Drivers
#
# CONFIG_BSP_USING_CAN0 is not set
-# end of CAN Drivers
#
# ADC Drivers
#
# CONFIG_BSP_USING_ADC0 is not set
# CONFIG_BSP_USING_ADC1 is not set
-# end of ADC Drivers
#
# RTC Drivers
#
# CONFIG_BSP_USING_RTC is not set
-# end of RTC Drivers
#
# HWTIMER Drivers
@@ -747,7 +705,6 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_GP16C4T1_HWTIMER is not set
# CONFIG_BSP_USING_BS16T0_HWTIMER is not set
# CONFIG_BSP_USING_BS16T1_HWTIMER is not set
-# end of HWTIMER Drivers
#
# PWM Drivers
@@ -758,26 +715,21 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_GP32C4T1_PWM is not set
# CONFIG_BSP_USING_GP16C4T0_PWM is not set
# CONFIG_BSP_USING_GP16C4T1_PWM is not set
-# end of PWM Drivers
#
# PM Drivers
#
# CONFIG_BSP_USING_PM is not set
-# end of PM Drivers
#
# DMA Drivers
#
# CONFIG_BSP_USING_DMA0 is not set
-# end of DMA Drivers
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
#
# CONFIG_BSP_USING_SPI_FLASH is not set
-# end of Onboard Peripheral Drivers
#
# Offboard Peripheral Drivers
@@ -799,5 +751,3 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_EXAMPLE_UART_DMA is not set
# CONFIG_BSP_USING_EXAMPLE_CAN is not set
# CONFIG_BSP_USING_EXAMPLE_PM is not set
-# end of Peripheral Drivers test example
-# end of Hardware Drivers Config
diff --git a/bsp/essemi/es32f365x/drivers/board.c b/bsp/essemi/es32f365x/drivers/board.c
index 39744002d8..3c40a6aa3d 100644
--- a/bsp/essemi/es32f365x/drivers/board.c
+++ b/bsp/essemi/es32f365x/drivers/board.c
@@ -187,7 +187,7 @@ void rt_hw_board_init(void)
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
#ifdef BSP_USING_DMA0
diff --git a/bsp/essemi/es32f365x/project.ewp b/bsp/essemi/es32f365x/project.ewp
index 238dfafe69..3227447858 100644
--- a/bsp/essemi/es32f365x/project.ewp
+++ b/bsp/essemi/es32f365x/project.ewp
@@ -211,6 +211,7 @@
CCDefines
+ RT_USING_DLIBC
__RTTHREAD__
ES32F36xx
@@ -1240,6 +1241,7 @@
CCDefines
+ RT_USING_DLIBC
__RTTHREAD__
ES32F36xx
@@ -2067,16 +2069,52 @@
bsp-drivers-test-samples
+
+ Compiler
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
CPU
$PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
- $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
- $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m3\context_iar.S
@@ -2097,23 +2135,23 @@
$PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
- $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
$PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
+
Drivers
@@ -2142,7 +2180,13 @@
Kernel
- $PROJ_DIR$\..\..\..\src\clock.c
+ $PROJ_DIR$\..\..\..\src\mem.c
+
+
+ $PROJ_DIR$\..\..\..\src\timer.c
+
+
+ $PROJ_DIR$\..\..\..\src\device.c
$PROJ_DIR$\..\..\..\src\components.c
@@ -2151,104 +2195,59 @@
$PROJ_DIR$\..\..\..\src\mempool.c
- $PROJ_DIR$\..\..\..\src\device.c
+ $PROJ_DIR$\..\..\..\src\kservice.c
- $PROJ_DIR$\..\..\..\src\object.c
-
-
- $PROJ_DIR$\..\..\..\src\irq.c
-
-
- $PROJ_DIR$\..\..\..\src\timer.c
+ $PROJ_DIR$\..\..\..\src\thread.c
$PROJ_DIR$\..\..\..\src\ipc.c
+
+ $PROJ_DIR$\..\..\..\src\irq.c
+
$PROJ_DIR$\..\..\..\src\signal.c
+
+ $PROJ_DIR$\..\..\..\src\clock.c
+
+
+ $PROJ_DIR$\..\..\..\src\object.c
+
$PROJ_DIR$\..\..\..\src\scheduler.c
$PROJ_DIR$\..\..\..\src\idle.c
-
- $PROJ_DIR$\..\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\..\src\thread.c
-
-
- $PROJ_DIR$\..\..\..\src\mem.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
Libraries
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2c.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_qspi.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_wdt.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
+
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
+
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_usb.c
@@ -2256,47 +2255,80 @@
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crypt.c
- $PROJ_DIR$\..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Startup\iar\startup_es32f36xx.s
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
-
-
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Startup\iar\startup_es32f36xx.s
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
- $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_wdt.c
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_qspi.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
+
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2c.c
+
$PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
+
+ $PROJ_DIR$\..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
+
POSIX
diff --git a/bsp/essemi/es32f365x/project.uvprojx b/bsp/essemi/es32f365x/project.uvprojx
index a91384c5a5..b5da038f76 100644
--- a/bsp/essemi/es32f365x/project.uvprojx
+++ b/bsp/essemi/es32f365x/project.uvprojx
@@ -333,9 +333,9 @@
0
- ES32F36xx, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ ES32F36xx, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;drivers\ES;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Include;..\es32f369x\libraries\CMSIS\Include;..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;drivers\ES;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Include;..\es32f369x\libraries\CMSIS\Include;..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -387,14 +387,45 @@
- CPU
+ Compiler
- backtrace.c
+ syscalls.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ CPU
showmem.c
@@ -411,9 +442,9 @@
- cpuport.c
+ backtrace.c
1
- ..\..\..\libcpu\arm\cortex-m3\cpuport.c
+ ..\..\..\libcpu\arm\common\backtrace.c
@@ -423,6 +454,13 @@
..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m3\cpuport.c
+
+
DeviceDrivers
@@ -442,9 +480,9 @@
- waitqueue.c
+ pipe.c
1
- ..\..\..\components\drivers\src\waitqueue.c
+ ..\..\..\components\drivers\src\pipe.c
@@ -461,13 +499,6 @@
..\..\..\components\drivers\src\completion.c
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
-
-
ringbuffer.c
@@ -489,6 +520,13 @@
..\..\..\components\drivers\src\workqueue.c
+
+
+ waitqueue.c
+ 1
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
Drivers
@@ -540,13 +578,6 @@
Kernel
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
components.c
@@ -556,65 +587,9 @@
- device.c
+ object.c
1
- ..\..\..\src\device.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- signal.c
- 1
- ..\..\..\src\signal.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\object.c
@@ -624,6 +599,76 @@
..\..\..\src\timer.c
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\..\src\mem.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
+
+
+ signal.c
+ 1
+ ..\..\..\src\signal.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
+
+
scheduler.c
@@ -631,59 +676,14 @@
..\..\..\src\scheduler.c
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- libc
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
Libraries
- ald_flash.c
+ ald_tsense.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
-
-
-
-
- ald_pis.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
-
-
-
-
- ald_gpio.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
-
-
-
-
- ald_bkpc.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
-
-
-
-
- ald_sram.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
@@ -695,23 +695,9 @@
- ald_acmp.c
+ ald_nand.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
-
-
-
-
- ald_uart.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
-
-
-
-
- ald_ebi.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
@@ -723,44 +709,16 @@
- ald_rmu.c
+ ald_pis.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
- ald_timer.c
+ ald_calc.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
-
-
-
-
- ald_i2s.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
-
-
-
-
- ald_rtchw.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
-
-
-
-
- ald_tsense.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
-
-
-
-
- ald_spi.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
@@ -772,9 +730,30 @@
- ald_cmu.c
+ ald_uart.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
+
+
+
+
+ ald_flash.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
+
+
+
+
+ ald_rmu.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
+
+
+
+
+ ald_adc.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
@@ -784,6 +763,27 @@
..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_wdt.c
+
+
+ ald_crc.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+
+
+
+
+ ald_can.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
+
+
+
+
+ ald_cmu.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
+
+
ald_pmu.c
@@ -798,13 +798,6 @@
..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_qspi.c
-
-
- ald_adc.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
-
-
ald_i2c.c
@@ -814,37 +807,37 @@
- ald_rtc.c
+ ald_rtchw.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
- ald_calc.c
+ ald_acmp.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
- ald_dma.c
+ ald_spi.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
- ald_iap.c
+ ald_ebi.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
- ald_crc.c
+ utils.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
@@ -856,30 +849,9 @@
- startup_es32f36xx.s
- 2
- ..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Startup\keil\startup_es32f36xx.s
-
-
-
-
- ald_can.c
+ ald_iap.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
-
-
-
-
- ald_trng.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
-
-
-
-
- ald_nand.c
- 1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
@@ -891,9 +863,65 @@
- utils.c
+ ald_timer.c
1
- ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
+
+
+
+
+ startup_es32f36xx.s
+ 2
+ ..\es32f369x\libraries\CMSIS\Device\EastSoft\ES32F36xx\Startup\keil\startup_es32f36xx.s
+
+
+
+
+ ald_trng.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
+
+
+
+
+ ald_i2s.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
+
+
+
+
+ ald_sram.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
+
+
+
+
+ ald_gpio.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
+
+
+
+
+ ald_bkpc.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
+
+
+
+
+ ald_dma.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
+
+
+
+
+ ald_rtc.c
+ 1
+ ..\es32f369x\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
diff --git a/bsp/essemi/es32f365x/rtconfig.h b/bsp/essemi/es32f365x/rtconfig.h
index 131ba821ec..46c375269a 100644
--- a/bsp/essemi/es32f365x/rtconfig.h
+++ b/bsp/essemi/es32f365x/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 512
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -30,7 +31,6 @@
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
#define RT_USING_SIGNALS
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -38,7 +38,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -46,9 +45,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 */
@@ -59,7 +56,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -76,11 +72,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 */
@@ -92,12 +86,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -108,41 +99,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 */
@@ -153,83 +131,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_ES32F3696LT
/* Hardware Drivers Config */
@@ -241,54 +199,40 @@
/* UART Drivers */
#define BSP_USING_UART0
-/* end of UART Drivers */
/* SPI Drivers */
-/* end of SPI Drivers */
/* I2C Drivers */
-/* end of I2C Drivers */
/* CAN Drivers */
-/* end of CAN Drivers */
/* ADC Drivers */
-/* end of ADC Drivers */
/* RTC Drivers */
-/* end of RTC Drivers */
/* HWTIMER Drivers */
-/* end of HWTIMER Drivers */
/* PWM Drivers */
-/* end of PWM Drivers */
/* PM Drivers */
-/* end of PM Drivers */
/* DMA Drivers */
-/* end of DMA Drivers */
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Offboard Peripheral Drivers */
/* Peripheral Drivers test example */
-/* end of Peripheral Drivers test example */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/essemi/es32f369x/.config b/bsp/essemi/es32f369x/.config
index 1b13c5983e..99b8da6997 100644
--- a/bsp/essemi/es32f369x/.config
+++ b/bsp/essemi/es32f369x/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=512
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=512
# 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 +53,6 @@ CONFIG_RT_USING_EVENT=y
CONFIG_RT_USING_MAILBOX=y
CONFIG_RT_USING_MESSAGEQUEUE=y
CONFIG_RT_USING_SIGNALS=y
-# end of Inter-Thread communication
#
# Memory Management
@@ -67,7 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,13 +115,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
@@ -161,16 +158,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -179,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -192,9 +186,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
@@ -204,32 +195,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
@@ -239,14 +224,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
@@ -281,17 +263,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
@@ -313,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -349,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -359,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -380,15 +355,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
@@ -408,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -453,7 +426,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
@@ -465,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -473,14 +451,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
@@ -491,8 +467,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
@@ -522,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -600,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -617,7 +590,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
@@ -630,7 +602,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
@@ -644,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -667,17 +637,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_ES32F3696LT=y
#
@@ -700,7 +664,6 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_UART3 is not set
# CONFIG_BSP_USING_UART4 is not set
# CONFIG_BSP_USING_UART5 is not set
-# end of UART Drivers
#
# SPI Drivers
@@ -708,33 +671,28 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_SPI0 is not set
# CONFIG_BSP_USING_SPI1 is not set
# CONFIG_BSP_USING_SPI2 is not set
-# end of SPI Drivers
#
# I2C Drivers
#
# CONFIG_BSP_USING_I2C0 is not set
# CONFIG_BSP_USING_I2C1 is not set
-# end of I2C Drivers
#
# CAN Drivers
#
# CONFIG_BSP_USING_CAN0 is not set
-# end of CAN Drivers
#
# ADC Drivers
#
# CONFIG_BSP_USING_ADC0 is not set
# CONFIG_BSP_USING_ADC1 is not set
-# end of ADC Drivers
#
# RTC Drivers
#
# CONFIG_BSP_USING_RTC is not set
-# end of RTC Drivers
#
# HWTIMER Drivers
@@ -747,7 +705,6 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_GP16C4T1_HWTIMER is not set
# CONFIG_BSP_USING_BS16T0_HWTIMER is not set
# CONFIG_BSP_USING_BS16T1_HWTIMER is not set
-# end of HWTIMER Drivers
#
# PWM Drivers
@@ -758,26 +715,21 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_GP32C4T1_PWM is not set
# CONFIG_BSP_USING_GP16C4T0_PWM is not set
# CONFIG_BSP_USING_GP16C4T1_PWM is not set
-# end of PWM Drivers
#
# PM Drivers
#
# CONFIG_BSP_USING_PM is not set
-# end of PM Drivers
#
# DMA Drivers
#
# CONFIG_BSP_USING_DMA0 is not set
-# end of DMA Drivers
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
#
# CONFIG_BSP_USING_SPI_FLASH is not set
-# end of Onboard Peripheral Drivers
#
# Offboard Peripheral Drivers
@@ -799,5 +751,3 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_EXAMPLE_UART_DMA is not set
# CONFIG_BSP_USING_EXAMPLE_CAN is not set
# CONFIG_BSP_USING_EXAMPLE_PM is not set
-# end of Peripheral Drivers test example
-# end of Hardware Drivers Config
diff --git a/bsp/essemi/es32f369x/drivers/board.c b/bsp/essemi/es32f369x/drivers/board.c
index 39744002d8..3c40a6aa3d 100644
--- a/bsp/essemi/es32f369x/drivers/board.c
+++ b/bsp/essemi/es32f369x/drivers/board.c
@@ -187,7 +187,7 @@ void rt_hw_board_init(void)
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
#ifdef BSP_USING_DMA0
diff --git a/bsp/essemi/es32f369x/project.ewp b/bsp/essemi/es32f369x/project.ewp
index a233843fa2..56772eb18e 100644
--- a/bsp/essemi/es32f369x/project.ewp
+++ b/bsp/essemi/es32f369x/project.ewp
@@ -211,6 +211,7 @@
CCDefines
+ RT_USING_DLIBC
__RTTHREAD__
ES32F36xx
@@ -1240,6 +1241,7 @@
CCDefines
+ RT_USING_DLIBC
__RTTHREAD__
ES32F36xx
@@ -2067,23 +2069,59 @@
bsp-drivers-test-samples
+
+ Compiler
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
CPU
- $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
$PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
- $PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
-
-
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m3\context_iar.S
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m3\cpuport.c
+
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m3\context_iar.S
+
DeviceDrivers
@@ -2093,26 +2131,26 @@
$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
+
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
$PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
@@ -2142,16 +2180,7 @@
Kernel
- $PROJ_DIR$\..\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\..\src\mem.c
-
-
- $PROJ_DIR$\..\..\..\src\signal.c
+ $PROJ_DIR$\..\..\..\src\thread.c
$PROJ_DIR$\..\..\..\src\components.c
@@ -2160,67 +2189,115 @@
$PROJ_DIR$\..\..\..\src\ipc.c
- $PROJ_DIR$\..\..\..\src\thread.c
-
-
- $PROJ_DIR$\..\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\..\src\object.c
-
-
- $PROJ_DIR$\..\..\..\src\device.c
-
-
- $PROJ_DIR$\..\..\..\src\idle.c
-
-
- $PROJ_DIR$\..\..\..\src\timer.c
+ $PROJ_DIR$\..\..\..\src\mem.c
$PROJ_DIR$\..\..\..\src\clock.c
+
+ $PROJ_DIR$\..\..\..\src\signal.c
+
+
+ $PROJ_DIR$\..\..\..\src\device.c
+
$PROJ_DIR$\..\..\..\src\irq.c
-
-
- libc
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+ $PROJ_DIR$\..\..\..\src\object.c
+
+
+ $PROJ_DIR$\..\..\..\src\mempool.c
+
+
+ $PROJ_DIR$\..\..\..\src\timer.c
+
+
+ $PROJ_DIR$\..\..\..\src\kservice.c
+
+
+ $PROJ_DIR$\..\..\..\src\scheduler.c
+
+
+ $PROJ_DIR$\..\..\..\src\idle.c
Libraries
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_wdt.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2c.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_qspi.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2c.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_iap.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crypt.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
+
+
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_usb.c
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
@@ -2229,71 +2306,26 @@
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_wdt.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtchw.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_trng.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crypt.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_qspi.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_usb.c
+ $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
$PROJ_DIR$\libraries\CMSIS\Device\EastSoft\ES32F36xx\Startup\iar\startup_es32f36xx.s
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
-
-
- $PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
-
$PROJ_DIR$\libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
diff --git a/bsp/essemi/es32f369x/project.uvprojx b/bsp/essemi/es32f369x/project.uvprojx
index 2cae57647f..a1e51d1192 100644
--- a/bsp/essemi/es32f369x/project.uvprojx
+++ b/bsp/essemi/es32f369x/project.uvprojx
@@ -333,9 +333,9 @@
0
- ES32F36xx, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ ES32F36xx, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;drivers\ES;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;libraries\CMSIS\Device\EastSoft\ES32F36xx\Include;libraries\CMSIS\Include;libraries\ES32F36xx_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;drivers\ES;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;drivers;..\..\..\components\finsh;.;..\..\..\include;libraries\CMSIS\Device\EastSoft\ES32F36xx\Include;libraries\CMSIS\Include;libraries\ES32F36xx_ALD_StdPeriph_Driver\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -386,13 +386,51 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
- div0.c
+ showmem.c
1
- ..\..\..\libcpu\arm\common\div0.c
+ ..\..\..\libcpu\arm\common\showmem.c
@@ -404,16 +442,9 @@
- showmem.c
+ div0.c
1
- ..\..\..\libcpu\arm\common\showmem.c
-
-
-
-
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+ ..\..\..\libcpu\arm\common\div0.c
@@ -423,6 +454,13 @@
..\..\..\libcpu\arm\cortex-m3\cpuport.c
+
+
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m3\context_rvds.S
+
+
DeviceDrivers
@@ -442,9 +480,9 @@
- ringbuffer.c
+ pipe.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\pipe.c
@@ -456,16 +494,9 @@
- ringblk_buf.c
+ ringbuffer.c
1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
+ ..\..\..\components\drivers\src\ringbuffer.c
@@ -484,9 +515,16 @@
- pipe.c
+ ringblk_buf.c
1
- ..\..\..\components\drivers\src\pipe.c
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\..\components\drivers\src\waitqueue.c
@@ -540,34 +578,6 @@
Kernel
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
irq.c
@@ -575,6 +585,13 @@
..\..\..\src\irq.c
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
mem.c
@@ -589,6 +606,13 @@
..\..\..\src\signal.c
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
components.c
@@ -596,34 +620,6 @@
..\..\..\src\components.c
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
clock.c
@@ -631,6 +627,48 @@
..\..\..\src\clock.c
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\..\src\timer.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
+
+
+ object.c
+ 1
+ ..\..\..\src\object.c
+
+
scheduler.c
@@ -639,44 +677,13 @@
-
- libc
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
-
Libraries
- ald_nor_lcd.c
+ ald_uart.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
-
-
-
-
- ald_timer.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
-
-
-
-
- ald_rtc.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
-
-
-
-
- ald_usb.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_usb.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
@@ -688,65 +695,9 @@
- ald_pmu.c
+ ald_flash_ext.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
-
-
-
-
- ald_can.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
-
-
-
-
- ald_rmu.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
-
-
-
-
- ald_nand.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
-
-
-
-
- ald_dma.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
-
-
-
-
- ald_sram.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
-
-
-
-
- utils.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
-
-
-
-
- ald_calc.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
-
-
-
-
- ald_uart.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_uart.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
@@ -758,9 +709,9 @@
- ald_spi.c
+ ald_dma.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dma.c
@@ -772,16 +723,9 @@
- ald_flash.c
+ ald_nor_lcd.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
-
-
-
-
- ald_crypt.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crypt.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nor_lcd.c
@@ -793,44 +737,16 @@
- ald_acmp.c
+ utils.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\utils.c
- ald_cmu.c
+ ald_rtc.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
-
-
-
-
- ald_crc.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
-
-
-
-
- ald_ebi.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
-
-
-
-
- ald_i2s.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
-
-
-
-
- ald_flash_ext.c
- 1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash_ext.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rtc.c
@@ -842,9 +758,23 @@
- ald_dac.c
+ ald_bkpc.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
+
+
+
+
+ ald_acmp.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_acmp.c
+
+
+
+
+ ald_flash.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_flash.c
@@ -854,6 +784,27 @@
libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_tsense.c
+
+
+ ald_pmu.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pmu.c
+
+
+
+
+ ald_crc.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crc.c
+
+
+
+
+ ald_rmu.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_rmu.c
+
+
startup_es32f36xx.s
@@ -863,16 +814,72 @@
- ald_adc.c
+ ald_spi.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_spi.c
- ald_gpio.c
+ ald_cmu.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_cmu.c
+
+
+
+
+ ald_calc.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_calc.c
+
+
+
+
+ ald_i2s.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_i2s.c
+
+
+
+
+ ald_ebi.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_ebi.c
+
+
+
+
+ ald_sram.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_sram.c
+
+
+
+
+ ald_timer.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_timer.c
+
+
+
+
+ ald_dac.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_dac.c
+
+
+
+
+ ald_nand.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_nand.c
+
+
+
+
+ ald_usb.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_usb.c
@@ -882,6 +889,13 @@
libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_pis.c
+
+
+ ald_adc.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_adc.c
+
+
ald_iap.c
@@ -891,9 +905,23 @@
- ald_bkpc.c
+ ald_crypt.c
1
- libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_bkpc.c
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_crypt.c
+
+
+
+
+ ald_gpio.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_gpio.c
+
+
+
+
+ ald_can.c
+ 1
+ libraries\ES32F36xx_ALD_StdPeriph_Driver\Source\ald_can.c
diff --git a/bsp/essemi/es32f369x/rtconfig.h b/bsp/essemi/es32f369x/rtconfig.h
index 131ba821ec..46c375269a 100644
--- a/bsp/essemi/es32f369x/rtconfig.h
+++ b/bsp/essemi/es32f369x/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 512
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -30,7 +31,6 @@
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
#define RT_USING_SIGNALS
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -38,7 +38,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -46,9 +45,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 */
@@ -59,7 +56,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -76,11 +72,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 */
@@ -92,12 +86,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -108,41 +99,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 */
@@ -153,83 +131,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_ES32F3696LT
/* Hardware Drivers Config */
@@ -241,54 +199,40 @@
/* UART Drivers */
#define BSP_USING_UART0
-/* end of UART Drivers */
/* SPI Drivers */
-/* end of SPI Drivers */
/* I2C Drivers */
-/* end of I2C Drivers */
/* CAN Drivers */
-/* end of CAN Drivers */
/* ADC Drivers */
-/* end of ADC Drivers */
/* RTC Drivers */
-/* end of RTC Drivers */
/* HWTIMER Drivers */
-/* end of HWTIMER Drivers */
/* PWM Drivers */
-/* end of PWM Drivers */
/* PM Drivers */
-/* end of PM Drivers */
/* DMA Drivers */
-/* end of DMA Drivers */
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Offboard Peripheral Drivers */
/* Peripheral Drivers test example */
-/* end of Peripheral Drivers test example */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c b/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c
index 27eb76cc84..37079c5f8a 100644
--- a/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c
+++ b/bsp/fm33lc026/libraries/HAL_Drivers/drv_common.c
@@ -111,7 +111,7 @@ RT_WEAK void rt_hw_board_init()
#endif
/* Set the shell console output device */
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/fm33lc026/project.uvprojx b/bsp/fm33lc026/project.uvprojx
index a871d32b68..3660366775 100644
--- a/bsp/fm33lc026/project.uvprojx
+++ b/bsp/fm33lc026/project.uvprojx
@@ -331,9 +331,9 @@
0
- USE_HAL_DRIVER, FM33LC0XX, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_HAL_DRIVER, FM33LC0XX, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;board;libraries\HAL_Drivers;libraries\HAL_Drivers\config;..\..\components\finsh;libraries\FM33LC0xx_FL_Driver\CMSIS\Include;libraries\FM33LC0xx_FL_Driver\Inc;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;board;libraries\HAL_Drivers;libraries\HAL_Drivers\config;..\..\components\finsh;libraries\FM33LC0xx_FL_Driver\CMSIS\Include;libraries\FM33LC0xx_FL_Driver\Inc;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -384,13 +384,51 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
- backtrace.c
+ div0.c
1
- ..\..\libcpu\arm\common\backtrace.c
+ ..\..\libcpu\arm\common\div0.c
@@ -402,9 +440,9 @@
- div0.c
+ backtrace.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\libcpu\arm\common\backtrace.c
@@ -431,20 +469,6 @@
..\..\components\drivers\serial\serial.c
-
-
- workqueue.c
- 1
- ..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
ringbuffer.c
@@ -454,9 +478,9 @@
- dataqueue.c
+ workqueue.c
1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\workqueue.c
@@ -473,6 +497,13 @@
..\..\components\drivers\src\waitqueue.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
completion.c
@@ -480,6 +511,13 @@
..\..\components\drivers\src\completion.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
Drivers
@@ -590,20 +628,6 @@
Kernel
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
kservice.c
@@ -611,27 +635,6 @@
..\..\src\kservice.c
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
ipc.c
@@ -641,9 +644,23 @@
- scheduler.c
+ irq.c
1
- ..\..\src\scheduler.c
+ ..\..\src\irq.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
@@ -653,6 +670,13 @@
..\..\src\mem.c
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
components.c
@@ -662,9 +686,23 @@
- irq.c
+ object.c
1
- ..\..\src\irq.c
+ ..\..\src\object.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
@@ -676,9 +714,9 @@
- object.c
+ thread.c
1
- ..\..\src\object.c
+ ..\..\src\thread.c
diff --git a/bsp/frdm-k64f/.config b/bsp/frdm-k64f/.config
index 1974882f14..1390b0705b 100644
--- a/bsp/frdm-k64f/.config
+++ b/bsp/frdm-k64f/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=1024
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,27 +81,24 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
#
CONFIG_RT_USING_COMPONENTS_INIT=y
+# CONFIG_RT_USING_USER_MAIN is not set
# CONFIG_RT_USING_LEGACY is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -120,13 +118,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
@@ -165,17 +161,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -185,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -198,9 +189,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
@@ -210,14 +198,12 @@ 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
CONFIG_NETDEV_USING_PING=y
-# end of Network interface device
#
# light weight TCP/IP stack
@@ -243,8 +229,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.201"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -279,22 +263,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -304,16 +283,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -348,17 +323,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -380,8 +350,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -416,7 +385,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -426,16 +395,15 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -447,15 +415,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -475,8 +440,9 @@ CONFIG_RT_LWIP_USING_PING=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -520,7 +486,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -532,7 +497,13 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -540,14 +511,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -558,8 +527,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_PERSIMMON is not set
@@ -590,11 +557,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -668,10 +633,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -685,7 +651,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -698,7 +663,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -712,8 +676,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -735,15 +698,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FRDM_K64F=y
diff --git a/bsp/frdm-k64f/board/board.c b/bsp/frdm-k64f/board/board.c
index d21982756f..ceda089bb1 100644
--- a/bsp/frdm-k64f/board/board.c
+++ b/bsp/frdm-k64f/board/board.c
@@ -77,7 +77,7 @@ void rt_hw_board_init()
rt_hw_uart_init();
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(CONSOLE_DEVICE);
#endif
}
diff --git a/bsp/frdm-k64f/project.uvproj b/bsp/frdm-k64f/project.uvproj
index 4171c88dec..1b224e9c59 100644
--- a/bsp/frdm-k64f/project.uvproj
+++ b/bsp/frdm-k64f/project.uvproj
@@ -357,9 +357,9 @@
0
- CPU_MK64FN1M0VLL12, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ CPU_MK64FN1M0VLL12, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;device;device\MK64F12;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;device;device\MK64F12;..\..\components\finsh;.;..\..\include;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -401,6 +401,13 @@
Applications
+
+
+ application.c
+ 1
+ applications\application.c
+
+
startup.c
@@ -408,11 +415,42 @@
applications\startup.c
+
+
+ Compiler
- application.c
+ libc_syms.c
1
- applications\application.c
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
@@ -425,13 +463,6 @@
..\..\libcpu\arm\common\backtrace.c
-
-
- div0.c
- 1
- ..\..\libcpu\arm\common\div0.c
-
-
showmem.c
@@ -441,9 +472,9 @@
- cpuport.c
+ div0.c
1
- ..\..\libcpu\arm\cortex-m4\cpuport.c
+ ..\..\libcpu\arm\common\div0.c
@@ -453,6 +484,13 @@
..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m4\cpuport.c
+
+
DeviceDrivers
@@ -470,13 +508,6 @@
..\..\components\drivers\serial\serial.c
-
-
- ringbuffer.c
- 1
- ..\..\components\drivers\src\ringbuffer.c
-
-
pipe.c
@@ -484,20 +515,6 @@
..\..\components\drivers\src\pipe.c
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
-
-
-
-
- workqueue.c
- 1
- ..\..\components\drivers\src\workqueue.c
-
-
waitqueue.c
@@ -507,9 +524,16 @@
- ringblk_buf.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
@@ -519,6 +543,20 @@
..\..\components\drivers\src\dataqueue.c
+
+
+ workqueue.c
+ 1
+ ..\..\components\drivers\src\workqueue.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
Drivers
@@ -566,16 +604,9 @@
- fsl_pit.c
+ fsl_vref.c
1
- device\MK64F12\fsl_pit.c
-
-
-
-
- fsl_sai.c
- 1
- device\MK64F12\fsl_sai.c
+ device\MK64F12\fsl_vref.c
@@ -587,100 +618,9 @@
- fsl_smc.c
+ fsl_rnga.c
1
- device\MK64F12\fsl_smc.c
-
-
-
-
- fsl_cmp.c
- 1
- device\MK64F12\fsl_cmp.c
-
-
-
-
- fsl_flexcan.c
- 1
- device\MK64F12\fsl_flexcan.c
-
-
-
-
- fsl_dspi_edma.c
- 1
- device\MK64F12\fsl_dspi_edma.c
-
-
-
-
- fsl_pdb.c
- 1
- device\MK64F12\fsl_pdb.c
-
-
-
-
- fsl_clock.c
- 1
- device\MK64F12\fsl_clock.c
-
-
-
-
- fsl_rcm.c
- 1
- device\MK64F12\fsl_rcm.c
-
-
-
-
- fsl_lptmr.c
- 1
- device\MK64F12\fsl_lptmr.c
-
-
-
-
- fsl_sai_edma.c
- 1
- device\MK64F12\fsl_sai_edma.c
-
-
-
-
- fsl_dmamux.c
- 1
- device\MK64F12\fsl_dmamux.c
-
-
-
-
- fsl_i2c_edma.c
- 1
- device\MK64F12\fsl_i2c_edma.c
-
-
-
-
- fsl_sim.c
- 1
- device\MK64F12\fsl_sim.c
-
-
-
-
- system_MK64F12.c
- 1
- device\system_MK64F12.c
-
-
-
-
- fsl_i2c.c
- 1
- device\MK64F12\fsl_i2c.c
+ device\MK64F12\fsl_rnga.c
@@ -692,107 +632,23 @@
- fsl_wdog.c
+ fsl_ewm.c
1
- device\MK64F12\fsl_wdog.c
+ device\MK64F12\fsl_ewm.c
- fsl_dac.c
+ fsl_sai_edma.c
1
- device\MK64F12\fsl_dac.c
+ device\MK64F12\fsl_sai_edma.c
- fsl_vref.c
+ fsl_cmp.c
1
- device\MK64F12\fsl_vref.c
-
-
-
-
- fsl_flexbus.c
- 1
- device\MK64F12\fsl_flexbus.c
-
-
-
-
- fsl_uart.c
- 1
- device\MK64F12\fsl_uart.c
-
-
-
-
- fsl_common.c
- 1
- device\MK64F12\fsl_common.c
-
-
-
-
- fsl_uart_edma.c
- 1
- device\MK64F12\fsl_uart_edma.c
-
-
-
-
- fsl_dspi.c
- 1
- device\MK64F12\fsl_dspi.c
-
-
-
-
- fsl_pmc.c
- 1
- device\MK64F12\fsl_pmc.c
-
-
-
-
- fsl_sysmpu.c
- 1
- device\MK64F12\fsl_sysmpu.c
-
-
-
-
- fsl_edma.c
- 1
- device\MK64F12\fsl_edma.c
-
-
-
-
- startup_MK64F12.s
- 2
- device\TOOLCHAIN_ARM_STD\startup_MK64F12.s
-
-
-
-
- fsl_rnga.c
- 1
- device\MK64F12\fsl_rnga.c
-
-
-
-
- fsl_cmt.c
- 1
- device\MK64F12\fsl_cmt.c
-
-
-
-
- fsl_adc16.c
- 1
- device\MK64F12\fsl_adc16.c
+ device\MK64F12\fsl_cmp.c
@@ -804,23 +660,44 @@
- fsl_rtc.c
+ fsl_uart_edma.c
1
- device\MK64F12\fsl_rtc.c
+ device\MK64F12\fsl_uart_edma.c
- fsl_llwu.c
+ fsl_flexbus.c
1
- device\MK64F12\fsl_llwu.c
+ device\MK64F12\fsl_flexbus.c
- fsl_ewm.c
+ fsl_smc.c
1
- device\MK64F12\fsl_ewm.c
+ device\MK64F12\fsl_smc.c
+
+
+
+
+ fsl_clock.c
+ 1
+ device\MK64F12\fsl_clock.c
+
+
+
+
+ fsl_edma.c
+ 1
+ device\MK64F12\fsl_edma.c
+
+
+
+
+ fsl_pdb.c
+ 1
+ device\MK64F12\fsl_pdb.c
@@ -832,9 +709,58 @@
- fsl_ftm.c
+ fsl_llwu.c
1
- device\MK64F12\fsl_ftm.c
+ device\MK64F12\fsl_llwu.c
+
+
+
+
+ system_MK64F12.c
+ 1
+ device\system_MK64F12.c
+
+
+
+
+ fsl_common.c
+ 1
+ device\MK64F12\fsl_common.c
+
+
+
+
+ fsl_i2c_edma.c
+ 1
+ device\MK64F12\fsl_i2c_edma.c
+
+
+
+
+ fsl_rcm.c
+ 1
+ device\MK64F12\fsl_rcm.c
+
+
+
+
+ fsl_dac.c
+ 1
+ device\MK64F12\fsl_dac.c
+
+
+
+
+ fsl_flexcan.c
+ 1
+ device\MK64F12\fsl_flexcan.c
+
+
+
+
+ fsl_sai.c
+ 1
+ device\MK64F12\fsl_sai.c
@@ -844,6 +770,118 @@
device\MK64F12\fsl_crc.c
+
+
+ fsl_pit.c
+ 1
+ device\MK64F12\fsl_pit.c
+
+
+
+
+ fsl_sysmpu.c
+ 1
+ device\MK64F12\fsl_sysmpu.c
+
+
+
+
+ fsl_ftm.c
+ 1
+ device\MK64F12\fsl_ftm.c
+
+
+
+
+ fsl_dspi_edma.c
+ 1
+ device\MK64F12\fsl_dspi_edma.c
+
+
+
+
+ fsl_sim.c
+ 1
+ device\MK64F12\fsl_sim.c
+
+
+
+
+ fsl_lptmr.c
+ 1
+ device\MK64F12\fsl_lptmr.c
+
+
+
+
+ startup_MK64F12.s
+ 2
+ device\TOOLCHAIN_ARM_STD\startup_MK64F12.s
+
+
+
+
+ fsl_dmamux.c
+ 1
+ device\MK64F12\fsl_dmamux.c
+
+
+
+
+ fsl_rtc.c
+ 1
+ device\MK64F12\fsl_rtc.c
+
+
+
+
+ fsl_i2c.c
+ 1
+ device\MK64F12\fsl_i2c.c
+
+
+
+
+ fsl_adc16.c
+ 1
+ device\MK64F12\fsl_adc16.c
+
+
+
+
+ fsl_pmc.c
+ 1
+ device\MK64F12\fsl_pmc.c
+
+
+
+
+ fsl_wdog.c
+ 1
+ device\MK64F12\fsl_wdog.c
+
+
+
+
+ fsl_cmt.c
+ 1
+ device\MK64F12\fsl_cmt.c
+
+
+
+
+ fsl_uart.c
+ 1
+ device\MK64F12\fsl_uart.c
+
+
+
+
+ fsl_dspi.c
+ 1
+ device\MK64F12\fsl_dspi.c
+
+
Finsh
@@ -880,9 +918,9 @@
- irq.c
+ device.c
1
- ..\..\src\irq.c
+ ..\..\src\device.c
@@ -892,6 +930,20 @@
..\..\src\scheduler.c
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
ipc.c
@@ -899,34 +951,6 @@
..\..\src\ipc.c
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
timer.c
@@ -948,6 +972,27 @@
..\..\src\mempool.c
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
object.c
@@ -955,54 +1000,16 @@
..\..\src\object.c
-
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
-
-
- libc
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
lwIP
+
+
+ ping.c
+ 1
+ ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c
+
+
netdb.c
@@ -1129,13 +1136,6 @@
..\..\components\net\lwip-2.0.3\src\core\raw.c
-
-
- ping.c
- 1
- ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c
-
-
ip4_frag.c
diff --git a/bsp/frdm-k64f/project.uvprojx b/bsp/frdm-k64f/project.uvprojx
index 9f2f5fc016..0ffb9bc386 100644
--- a/bsp/frdm-k64f/project.uvprojx
+++ b/bsp/frdm-k64f/project.uvprojx
@@ -329,9 +329,9 @@
0
- CPU_MK64FN1M0VLL12, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ CPU_MK64FN1M0VLL12, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;device;device\MK64F12;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;device;device\MK64F12;..\..\components\finsh;.;..\..\include;..\..\components\net\lwip-2.0.3\src;..\..\components\net\lwip-2.0.3\src\include;..\..\components\net\lwip-2.0.3\src\include\ipv4;..\..\components\net\lwip-2.0.3\src\arch\include;..\..\components\net\lwip-2.0.3\src\include\netif;..\..\components\net\lwip-2.0.3\src\include\posix;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -374,6 +374,13 @@
Applications
+
+
+ startup.c
+ 1
+ applications\startup.c
+
+
application.c
@@ -381,11 +388,42 @@
applications\application.c
+
+
+ Compiler
- startup.c
+ syscall_mem.c
1
- applications\startup.c
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
@@ -398,13 +436,6 @@
..\..\libcpu\arm\common\div0.c
-
-
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
-
-
backtrace.c
@@ -414,9 +445,9 @@
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m4\context_rvds.S
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
@@ -426,6 +457,13 @@
..\..\libcpu\arm\cortex-m4\cpuport.c
+
+
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
DeviceDrivers
@@ -443,13 +481,6 @@
..\..\components\drivers\serial\serial.c
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
ringbuffer.c
@@ -457,13 +488,6 @@
..\..\components\drivers\src\ringbuffer.c
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
workqueue.c
@@ -471,6 +495,13 @@
..\..\components\drivers\src\workqueue.c
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
+
+
completion.c
@@ -480,9 +511,16 @@
- pipe.c
+ waitqueue.c
1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -539,107 +577,9 @@
- fsl_sai.c
+ fsl_sdhc.c
1
- device\MK64F12\fsl_sai.c
-
-
-
-
- fsl_enet.c
- 1
- device\MK64F12\fsl_enet.c
-
-
-
-
- fsl_ftm.c
- 1
- device\MK64F12\fsl_ftm.c
-
-
-
-
- fsl_uart_edma.c
- 1
- device\MK64F12\fsl_uart_edma.c
-
-
-
-
- fsl_common.c
- 1
- device\MK64F12\fsl_common.c
-
-
-
-
- fsl_flexbus.c
- 1
- device\MK64F12\fsl_flexbus.c
-
-
-
-
- fsl_rtc.c
- 1
- device\MK64F12\fsl_rtc.c
-
-
-
-
- fsl_dspi.c
- 1
- device\MK64F12\fsl_dspi.c
-
-
-
-
- fsl_pit.c
- 1
- device\MK64F12\fsl_pit.c
-
-
-
-
- fsl_wdog.c
- 1
- device\MK64F12\fsl_wdog.c
-
-
-
-
- fsl_dspi_edma.c
- 1
- device\MK64F12\fsl_dspi_edma.c
-
-
-
-
- fsl_rcm.c
- 1
- device\MK64F12\fsl_rcm.c
-
-
-
-
- fsl_ewm.c
- 1
- device\MK64F12\fsl_ewm.c
-
-
-
-
- fsl_lptmr.c
- 1
- device\MK64F12\fsl_lptmr.c
-
-
-
-
- fsl_sysmpu.c
- 1
- device\MK64F12\fsl_sysmpu.c
+ device\MK64F12\fsl_sdhc.c
@@ -651,44 +591,44 @@
- fsl_vref.c
+ fsl_sai_edma.c
1
- device\MK64F12\fsl_vref.c
+ device\MK64F12\fsl_sai_edma.c
- fsl_cmp.c
+ fsl_uart_edma.c
1
- device\MK64F12\fsl_cmp.c
+ device\MK64F12\fsl_uart_edma.c
- fsl_pmc.c
+ fsl_dspi.c
1
- device\MK64F12\fsl_pmc.c
+ device\MK64F12\fsl_dspi.c
- fsl_edma.c
+ fsl_common.c
1
- device\MK64F12\fsl_edma.c
+ device\MK64F12\fsl_common.c
- fsl_i2c_edma.c
+ fsl_lptmr.c
1
- device\MK64F12\fsl_i2c_edma.c
+ device\MK64F12\fsl_lptmr.c
- fsl_flexcan.c
+ fsl_enet.c
1
- device\MK64F12\fsl_flexcan.c
+ device\MK64F12\fsl_enet.c
@@ -698,90 +638,6 @@
device\MK64F12\fsl_cmt.c
-
-
- fsl_i2c.c
- 1
- device\MK64F12\fsl_i2c.c
-
-
-
-
- fsl_sim.c
- 1
- device\MK64F12\fsl_sim.c
-
-
-
-
- fsl_sdhc.c
- 1
- device\MK64F12\fsl_sdhc.c
-
-
-
-
- fsl_crc.c
- 1
- device\MK64F12\fsl_crc.c
-
-
-
-
- fsl_pdb.c
- 1
- device\MK64F12\fsl_pdb.c
-
-
-
-
- system_MK64F12.c
- 1
- device\system_MK64F12.c
-
-
-
-
- fsl_rnga.c
- 1
- device\MK64F12\fsl_rnga.c
-
-
-
-
- fsl_llwu.c
- 1
- device\MK64F12\fsl_llwu.c
-
-
-
-
- fsl_uart.c
- 1
- device\MK64F12\fsl_uart.c
-
-
-
-
- fsl_gpio.c
- 1
- device\MK64F12\fsl_gpio.c
-
-
-
-
- fsl_clock.c
- 1
- device\MK64F12\fsl_clock.c
-
-
-
-
- fsl_dac.c
- 1
- device\MK64F12\fsl_dac.c
-
-
fsl_flash.c
@@ -791,16 +647,9 @@
- fsl_adc16.c
+ fsl_wdog.c
1
- device\MK64F12\fsl_adc16.c
-
-
-
-
- fsl_sai_edma.c
- 1
- device\MK64F12\fsl_sai_edma.c
+ device\MK64F12\fsl_wdog.c
@@ -810,6 +659,104 @@
device\MK64F12\fsl_smc.c
+
+
+ system_MK64F12.c
+ 1
+ device\system_MK64F12.c
+
+
+
+
+ fsl_rcm.c
+ 1
+ device\MK64F12\fsl_rcm.c
+
+
+
+
+ fsl_sai.c
+ 1
+ device\MK64F12\fsl_sai.c
+
+
+
+
+ fsl_edma.c
+ 1
+ device\MK64F12\fsl_edma.c
+
+
+
+
+ fsl_gpio.c
+ 1
+ device\MK64F12\fsl_gpio.c
+
+
+
+
+ fsl_crc.c
+ 1
+ device\MK64F12\fsl_crc.c
+
+
+
+
+ fsl_sysmpu.c
+ 1
+ device\MK64F12\fsl_sysmpu.c
+
+
+
+
+ fsl_dac.c
+ 1
+ device\MK64F12\fsl_dac.c
+
+
+
+
+ fsl_i2c.c
+ 1
+ device\MK64F12\fsl_i2c.c
+
+
+
+
+ fsl_clock.c
+ 1
+ device\MK64F12\fsl_clock.c
+
+
+
+
+ fsl_pit.c
+ 1
+ device\MK64F12\fsl_pit.c
+
+
+
+
+ fsl_dspi_edma.c
+ 1
+ device\MK64F12\fsl_dspi_edma.c
+
+
+
+
+ fsl_cmp.c
+ 1
+ device\MK64F12\fsl_cmp.c
+
+
+
+
+ fsl_flexbus.c
+ 1
+ device\MK64F12\fsl_flexbus.c
+
+
startup_MK64F12.s
@@ -817,6 +764,97 @@
device\TOOLCHAIN_ARM_STD\startup_MK64F12.s
+
+
+ fsl_ewm.c
+ 1
+ device\MK64F12\fsl_ewm.c
+
+
+
+
+ fsl_vref.c
+ 1
+ device\MK64F12\fsl_vref.c
+
+
+
+
+ fsl_pdb.c
+ 1
+ device\MK64F12\fsl_pdb.c
+
+
+
+
+ fsl_rtc.c
+ 1
+ device\MK64F12\fsl_rtc.c
+
+
+
+
+ fsl_pmc.c
+ 1
+ device\MK64F12\fsl_pmc.c
+
+
+
+
+ fsl_llwu.c
+ 1
+ device\MK64F12\fsl_llwu.c
+
+
+
+
+ fsl_rnga.c
+ 1
+ device\MK64F12\fsl_rnga.c
+
+
+
+
+ fsl_ftm.c
+ 1
+ device\MK64F12\fsl_ftm.c
+
+
+
+
+ fsl_sim.c
+ 1
+ device\MK64F12\fsl_sim.c
+
+
+
+
+ fsl_i2c_edma.c
+ 1
+ device\MK64F12\fsl_i2c_edma.c
+
+
+
+
+ fsl_uart.c
+ 1
+ device\MK64F12\fsl_uart.c
+
+
+
+
+ fsl_adc16.c
+ 1
+ device\MK64F12\fsl_adc16.c
+
+
+
+
+ fsl_flexcan.c
+ 1
+ device\MK64F12\fsl_flexcan.c
+
+
Finsh
@@ -846,16 +884,16 @@
Kernel
- object.c
+ components.c
1
- ..\..\src\object.c
+ ..\..\src\components.c
- components.c
+ scheduler.c
1
- ..\..\src\components.c
+ ..\..\src\scheduler.c
@@ -867,9 +905,16 @@
- idle.c
+ irq.c
1
- ..\..\src\idle.c
+ ..\..\src\irq.c
+
+
+
+
+ object.c
+ 1
+ ..\..\src\object.c
@@ -886,6 +931,20 @@
..\..\src\kservice.c
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
timer.c
@@ -895,30 +954,9 @@
- irq.c
+ idle.c
1
- ..\..\src\irq.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
+ ..\..\src\idle.c
@@ -930,47 +968,9 @@
- mempool.c
+ clock.c
1
- ..\..\src\mempool.c
-
-
-
-
- libc
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\clock.c
@@ -1130,6 +1130,13 @@
..\..\components\net\lwip-2.0.3\src\core\ipv4\icmp.c
+
+
+ ping.c
+ 1
+ ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c
+
+
api_lib.c
@@ -1200,13 +1207,6 @@
..\..\components\net\lwip-2.0.3\src\core\udp.c
-
-
- ping.c
- 1
- ..\..\components\net\lwip-2.0.3\src\apps\ping\ping.c
-
-
pbuf.c
diff --git a/bsp/frdm-k64f/rtconfig.h b/bsp/frdm-k64f/rtconfig.h
index ba9347539a..9a7f4a0fcb 100644
--- a/bsp/frdm-k64f/rtconfig.h
+++ b/bsp/frdm-k64f/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 1024
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -61,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -78,11 +74,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,20 +102,14 @@
/* 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 */
#define NETDEV_USING_PING
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -144,7 +128,6 @@
#define RT_LWIP_IPADDR "192.168.1.201"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -171,25 +154,18 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -200,83 +176,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FRDM_K64F
#endif
diff --git a/bsp/ft2004/.config b/bsp/ft2004/.config
index 4c9ad3c993..66d1682b90 100644
--- a/bsp/ft2004/.config
+++ b/bsp/ft2004/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project Configuration
+#
#
# RT-Thread Kernel
#
CONFIG_RT_NAME_MAX=32
+# CONFIG_RT_USING_BIG_ENDIAN is not set
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
CONFIG_RT_USING_SMP=y
CONFIG_RT_CPUS_NR=4
@@ -15,6 +19,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=4096
@@ -30,8 +35,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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
@@ -54,7 +57,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
@@ -73,7 +75,6 @@ CONFIG_RT_USING_SLAB_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
@@ -84,15 +85,14 @@ CONFIG_RT_USING_INTERRUPT_INFO=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=4096
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_A=y
+# CONFIG_RT_SMP_AUTO_BOOT is not set
+# CONFIG_RT_USING_GIC_V2 is not set
CONFIG_RT_USING_GIC_V3=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -107,7 +107,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -127,7 +126,6 @@ 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
@@ -162,13 +160,10 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_NFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -224,17 +219,13 @@ 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -244,7 +235,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -257,9 +247,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
@@ -269,7 +256,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# Socket abstraction layer
#
# CONFIG_RT_USING_SAL is not set
-# end of Socket abstraction layer
#
# Network interface device
@@ -282,7 +268,7 @@ CONFIG_NETDEV_USING_AUTO_DEFAULT=y
# CONFIG_NETDEV_USING_IPV6 is not set
CONFIG_NETDEV_IPV4=1
CONFIG_NETDEV_IPV6=0
-# end of Network interface device
+# CONFIG_NETDEV_IPV6_SCOPES is not set
#
# light weight TCP/IP stack
@@ -306,8 +292,6 @@ CONFIG_RT_LWIP_DNS=y
CONFIG_RT_LWIP_IPADDR="192.168.3.20"
CONFIG_RT_LWIP_GWADDR="192.168.3.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -342,22 +326,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -385,24 +364,18 @@ CONFIG_ULOG_OUTPUT_TIME=y
CONFIG_ULOG_OUTPUT_LEVEL=y
CONFIG_ULOG_OUTPUT_TAG=y
# CONFIG_ULOG_OUTPUT_THREAD_NAME is not set
-# end of log format
-
CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_ULOG_USING_FILTER is not set
# CONFIG_ULOG_USING_SYSLOG is not set
# 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -437,17 +410,12 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -469,8 +437,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -505,7 +472,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -515,16 +482,15 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -536,15 +502,12 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -564,8 +527,9 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -609,7 +573,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -621,7 +584,13 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -629,14 +598,12 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -647,8 +614,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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_PERSIMMON is not set
@@ -679,11 +644,9 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -757,10 +720,11 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -774,7 +738,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -787,7 +750,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -801,8 +763,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -824,17 +785,11 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_FT2004=y
#
@@ -863,9 +818,7 @@ CONFIG_BSP_USE_CAN=y
CONFIG_BSP_USING_CAN0=y
# CONFIG_BSP_USING_CAN1 is not set
# CONFIG_BSP_USING_CAN0_DEBUG is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/ft2004/rtconfig.h b/bsp/ft2004/rtconfig.h
index a725910239..844617bb35 100644
--- a/bsp/ft2004/rtconfig.h
+++ b/bsp/ft2004/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 Project Configuration */
/* RT-Thread Kernel */
@@ -14,6 +15,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 4096
@@ -24,7 +26,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -35,7 +36,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -44,7 +44,6 @@
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SLAB_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -53,9 +52,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 4096
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_A
@@ -70,7 +67,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -87,7 +83,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -112,9 +107,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -140,13 +133,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -157,15 +146,10 @@
/* 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 */
@@ -176,7 +160,6 @@
#define NETDEV_USING_AUTO_DEFAULT
#define NETDEV_IPV4 1
#define NETDEV_IPV6 0
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -192,7 +175,6 @@
#define RT_LWIP_IPADDR "192.168.3.20"
#define RT_LWIP_GWADDR "192.168.3.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -219,16 +201,12 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -244,14 +222,10 @@
#define ULOG_OUTPUT_TIME
#define ULOG_OUTPUT_LEVEL
#define ULOG_OUTPUT_TAG
-/* end of log format */
#define ULOG_BACKEND_USING_CONSOLE
-/* end of Utilities */
-/* end of RT-Thread Components */
/* RT-Thread Utestcases */
-/* end of RT-Thread Utestcases */
/* RT-Thread online packages */
@@ -262,83 +236,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 FT2004
/* Hardware Drivers Config */
@@ -355,10 +309,8 @@
#define BSP_USE_GPIO
#define BSP_USE_CAN
#define BSP_USING_CAN0
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/gd32/gd32407v-start/.config b/bsp/gd32/gd32407v-start/.config
index df22c29d4f..146f71174d 100644
--- a/bsp/gd32/gd32407v-start/.config
+++ b/bsp/gd32/gd32407v-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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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,15 +79,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -101,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -121,13 +118,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
@@ -168,16 +163,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -186,7 +179,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -199,9 +191,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
@@ -211,32 +200,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
@@ -246,16 +229,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -290,17 +269,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
@@ -322,8 +296,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -358,7 +331,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -368,16 +341,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -389,15 +361,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
@@ -417,8 +386,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -462,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
@@ -474,7 +443,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -482,14 +457,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
@@ -500,8 +473,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_PERSIMMON is not set
@@ -532,11 +503,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -610,10 +579,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -627,7 +597,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
@@ -640,7 +609,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
@@ -654,8 +622,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -677,17 +644,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FAMILY_GD32=y
CONFIG_SOC_SERIES_GD32F4=y
@@ -709,9 +670,7 @@ CONFIG_BSP_USING_UART1=y
# CONFIG_BSP_UART1_RX_USING_DMA is not set
# CONFIG_BSP_USING_SPI is not set
# CONFIG_BSP_USING_I2C1 is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/gd32/gd32407v-start/board/board.c b/bsp/gd32/gd32407v-start/board/board.c
index 0e9f89865a..e9bf4a1582 100644
--- a/bsp/gd32/gd32407v-start/board/board.c
+++ b/bsp/gd32/gd32407v-start/board/board.c
@@ -71,7 +71,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32/gd32407v-start/project.uvproj b/bsp/gd32/gd32407v-start/project.uvproj
index e61bd5e518..262ef5bf42 100644
--- a/bsp/gd32/gd32407v-start/project.uvproj
+++ b/bsp/gd32/gd32407v-start/project.uvproj
@@ -370,9 +370,9 @@
0
- GD32F407xx, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ GD32F407xx, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\HAL_Drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\GD32F4xx_HAL\CMSIS\GD\GD32F4xx\Include;..\libraries\GD32F4xx_HAL\CMSIS;..\libraries\GD32F4xx_HAL\GD32F4xx_standard_peripheral\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\HAL_Drivers;..\..\..\components\finsh;.;..\..\..\include;..\libraries\GD32F4xx_HAL\CMSIS\GD\GD32F4xx\Include;..\libraries\GD32F4xx_HAL\CMSIS;..\libraries\GD32F4xx_HAL\GD32F4xx_standard_peripheral\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -424,14 +424,45 @@
- CPU
+ Compiler
- backtrace.c
+ syscall_mem.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ CPU
div0.c
@@ -446,6 +477,13 @@
..\..\..\libcpu\arm\common\showmem.c
+
+
+ backtrace.c
+ 1
+ ..\..\..\libcpu\arm\common\backtrace.c
+
+
context_rvds.S
@@ -477,6 +515,13 @@
..\..\..\components\drivers\serial\serial.c
+
+
+ workqueue.c
+ 1
+ ..\..\..\components\drivers\src\workqueue.c
+
+
ringblk_buf.c
@@ -491,20 +536,6 @@
..\..\..\components\drivers\src\ringbuffer.c
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
pipe.c
@@ -521,9 +552,16 @@
- workqueue.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\workqueue.c
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
@@ -593,44 +631,9 @@
- irq.c
+ kservice.c
1
- ..\..\..\src\irq.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
+ ..\..\..\src\kservice.c
@@ -642,16 +645,9 @@
- clock.c
+ idle.c
1
- ..\..\..\src\clock.c
-
-
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
+ ..\..\..\src\idle.c
@@ -663,26 +659,58 @@
- kservice.c
+ thread.c
1
- ..\..\..\src\kservice.c
+ ..\..\..\src\thread.c
- idle.c
+ device.c
1
- ..\..\..\src\idle.c
+ ..\..\..\src\device.c
-
-
- libc
- time.c
+ scheduler.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\scheduler.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\..\src\mem.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ object.c
+ 1
+ ..\..\..\src\object.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
diff --git a/bsp/gd32/gd32407v-start/project.uvprojx b/bsp/gd32/gd32407v-start/project.uvprojx
index a41ce298ba..00fbf30b75 100644
--- a/bsp/gd32/gd32407v-start/project.uvprojx
+++ b/bsp/gd32/gd32407v-start/project.uvprojx
@@ -333,9 +333,9 @@
0
- GD32F407xx, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ GD32F407xx, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\HAL_Drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\GD32F4xx_HAL\CMSIS\GD\GD32F4xx\Include;..\libraries\GD32F4xx_HAL\CMSIS;..\libraries\GD32F4xx_HAL\GD32F4xx_standard_peripheral\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;..\libraries\HAL_Drivers;..\..\..\components\finsh;.;..\..\..\include;..\libraries\GD32F4xx_HAL\CMSIS\GD\GD32F4xx\Include;..\libraries\GD32F4xx_HAL\CMSIS;..\libraries\GD32F4xx_HAL\GD32F4xx_standard_peripheral\Include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -386,8 +386,53 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
+
+
+ backtrace.c
+ 1
+ ..\..\..\libcpu\arm\common\backtrace.c
+
+
showmem.c
@@ -404,9 +449,9 @@
- backtrace.c
+ cpuport.c
1
- ..\..\..\libcpu\arm\common\backtrace.c
+ ..\..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -416,13 +461,6 @@
..\..\..\libcpu\arm\cortex-m4\context_rvds.S
-
-
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m4\cpuport.c
-
-
DeviceDrivers
@@ -442,23 +480,9 @@
- workqueue.c
+ dataqueue.c
1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
+ ..\..\..\components\drivers\src\dataqueue.c
@@ -468,6 +492,13 @@
..\..\..\components\drivers\src\ringbuffer.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
waitqueue.c
@@ -475,6 +506,13 @@
..\..\..\components\drivers\src\waitqueue.c
+
+
+ pipe.c
+ 1
+ ..\..\..\components\drivers\src\pipe.c
+
+
completion.c
@@ -484,9 +522,9 @@
- dataqueue.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\dataqueue.c
+ ..\..\..\components\drivers\src\workqueue.c
@@ -547,13 +585,6 @@
Kernel
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
mem.c
@@ -563,37 +594,9 @@
- thread.c
+ object.c
1
- ..\..\..\src\thread.c
-
-
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\object.c
@@ -605,9 +608,16 @@
- idle.c
+ ipc.c
1
- ..\..\..\src\idle.c
+ ..\..\..\src\ipc.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
@@ -617,13 +627,6 @@
..\..\..\src\kservice.c
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
components.c
@@ -633,19 +636,44 @@
- object.c
+ clock.c
1
- ..\..\..\src\object.c
+ ..\..\..\src\clock.c
-
-
- libc
- time.c
+ irq.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\irq.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\..\src\scheduler.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
diff --git a/bsp/gd32/gd32407v-start/rtconfig.h b/bsp/gd32/gd32407v-start/rtconfig.h
index dbaa1a76a2..b9a408c968 100644
--- a/bsp/gd32/gd32407v-start/rtconfig.h
+++ b/bsp/gd32/gd32407v-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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -62,7 +59,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -79,11 +75,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 */
@@ -99,12 +93,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -115,41 +106,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 */
@@ -160,83 +138,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FAMILY_GD32
#define SOC_SERIES_GD32F4
@@ -251,10 +209,8 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/gd32/libraries/HAL_Drivers/.config b/bsp/gd32/libraries/HAL_Drivers/.config
new file mode 100644
index 0000000000..8e83ac5122
--- /dev/null
+++ b/bsp/gd32/libraries/HAL_Drivers/.config
@@ -0,0 +1,4 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# RootMenu
+#
diff --git a/bsp/gd32/libraries/HAL_Drivers/rtconfig.h b/bsp/gd32/libraries/HAL_Drivers/rtconfig.h
new file mode 100644
index 0000000000..61ff1aa508
--- /dev/null
+++ b/bsp/gd32/libraries/HAL_Drivers/rtconfig.h
@@ -0,0 +1,8 @@
+#ifndef RT_CONFIG_H__
+#define RT_CONFIG_H__
+
+/* Automatically generated file; DO NOT EDIT. */
+/* RootMenu */
+
+
+#endif
diff --git a/bsp/gd32103c-eval/.config b/bsp/gd32103c-eval/.config
index 9e4b06cfda..de1ea1ac0c 100644
--- a/bsp/gd32103c-eval/.config
+++ b/bsp/gd32103c-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,7 +117,6 @@ 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
@@ -134,7 +132,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -173,16 +170,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -191,7 +186,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -204,9 +198,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 +207,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 +236,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 +275,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 +302,7 @@ 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_EZ_IOT_OS is not set
# 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,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -371,16 +347,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -392,15 +367,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 +392,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -465,7 +438,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 +449,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -485,14 +463,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 +479,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
@@ -534,11 +508,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -612,10 +584,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -629,7 +602,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 +614,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 +627,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -679,17 +649,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_SERIES_GD32F1=y
CONFIG_SOC_GD32103C=y
@@ -706,4 +670,3 @@ CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_HWTIMER is not set
# CONFIG_BSP_USING_WDT is not set
# CONFIG_BSP_USING_RTC is not set
-# end of On-chip Peripheral Drivers
diff --git a/bsp/gd32103c-eval/drivers/board.c b/bsp/gd32103c-eval/drivers/board.c
index 8e50bd8b36..0e4d1a1305 100644
--- a/bsp/gd32103c-eval/drivers/board.c
+++ b/bsp/gd32103c-eval/drivers/board.c
@@ -60,7 +60,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32103c-eval/rtconfig.h b/bsp/gd32103c-eval/rtconfig.h
index 869c7879b5..8f2fc9739e 100644
--- a/bsp/gd32103c-eval/rtconfig.h
+++ b/bsp/gd32103c-eval/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,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 */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,7 +73,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -88,7 +83,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -101,12 +95,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -117,41 +108,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 */
@@ -162,83 +140,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_SERIES_GD32F1
#define SOC_GD32103C
@@ -246,6 +204,5 @@
#define BSP_USING_UART
#define BSP_USING_UART0
-/* end of On-chip Peripheral Drivers */
#endif
diff --git a/bsp/gd32105c-eval/.config b/bsp/gd32105c-eval/.config
index 0ab9044f4e..4937226db1 100644
--- a/bsp/gd32105c-eval/.config
+++ b/bsp/gd32105c-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -151,12 +149,9 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=4096
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -207,16 +202,14 @@ 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -225,7 +218,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -238,9 +230,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
@@ -250,32 +239,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
@@ -285,14 +268,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
@@ -327,17 +307,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
@@ -359,8 +334,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -395,7 +369,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -405,16 +379,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -426,15 +399,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
@@ -454,8 +424,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -499,7 +470,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
@@ -511,7 +481,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -519,14 +495,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
@@ -537,8 +511,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
@@ -568,11 +540,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -646,10 +616,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -663,7 +634,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
@@ -676,7 +646,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
@@ -690,8 +659,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -713,16 +681,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -746,9 +709,7 @@ CONFIG_RT_USING_SPI0=y
# CONFIG_RT_USING_SPI2 is not set
CONFIG_RT_USING_I2C0=y
# CONFIG_RT_USING_I2C1 is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/gd32105c-eval/drivers/board.c b/bsp/gd32105c-eval/drivers/board.c
index 6cfd569f1a..528c166884 100644
--- a/bsp/gd32105c-eval/drivers/board.c
+++ b/bsp/gd32105c-eval/drivers/board.c
@@ -71,7 +71,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32105c-eval/project.uvprojx b/bsp/gd32105c-eval/project.uvprojx
index 36d45ec6e9..6ae90bf6e7 100644
--- a/bsp/gd32105c-eval/project.uvprojx
+++ b/bsp/gd32105c-eval/project.uvprojx
@@ -360,9 +360,9 @@
0
- GD32F10X_CL, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, GD32F10X_CL, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F10x\Include;Libraries\CMSIS;Libraries\GD32F10x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F10x\Include;Libraries\CMSIS;Libraries\GD32F10x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -412,13 +412,51 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
- backtrace.c
+ showmem.c
1
- ..\..\libcpu\arm\common\backtrace.c
+ ..\..\libcpu\arm\common\showmem.c
@@ -430,9 +468,9 @@
- showmem.c
+ backtrace.c
1
- ..\..\libcpu\arm\common\showmem.c
+ ..\..\libcpu\arm\common\backtrace.c
@@ -524,16 +562,9 @@
- completion.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\completion.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -545,9 +576,9 @@
- ringblk_buf.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\workqueue.c
@@ -559,9 +590,16 @@
- workqueue.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\workqueue.c
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
@@ -659,6 +697,13 @@
..\..\components\dfs\filesystems\devfs\devfs.c
+
+
+ ffunicode.c
+ 1
+ ..\..\components\dfs\filesystems\elmfat\ffunicode.c
+
+
dfs_elm.c
@@ -673,13 +718,6 @@
..\..\components\dfs\filesystems\elmfat\ff.c
-
-
- ffunicode.c
- 1
- ..\..\components\dfs\filesystems\elmfat\ffunicode.c
-
-
Finsh
@@ -716,37 +754,9 @@
Kernel
- irq.c
+ kservice.c
1
- ..\..\src\irq.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
+ ..\..\src\kservice.c
@@ -758,23 +768,30 @@
- mempool.c
+ ipc.c
1
- ..\..\src\mempool.c
+ ..\..\src\ipc.c
- idle.c
+ thread.c
1
- ..\..\src\idle.c
+ ..\..\src\thread.c
- mem.c
+ irq.c
1
- ..\..\src\mem.c
+ ..\..\src\irq.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
@@ -786,9 +803,9 @@
- kservice.c
+ idle.c
1
- ..\..\src\kservice.c
+ ..\..\src\idle.c
@@ -798,6 +815,27 @@
..\..\src\device.c
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ object.c
+ 1
+ ..\..\src\object.c
+
+
components.c
@@ -806,39 +844,8 @@
-
- libc
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
Libraries
-
-
- gd32f10x_crc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_crc.c
-
-
-
-
- gd32f10x_pmu.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_pmu.c
-
-
-
-
- gd32f10x_wwdgt.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_wwdgt.c
-
-
gd32f10x_fmc.c
@@ -846,55 +853,6 @@
Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fmc.c
-
-
- gd32f10x_rtc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rtc.c
-
-
-
-
- gd32f10x_dac.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dac.c
-
-
-
-
- gd32f10x_rcu.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
-
-
-
-
- gd32f10x_gpio.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
-
-
-
-
- gd32f10x_exmc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exmc.c
-
-
-
-
- gd32f10x_dma.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dma.c
-
-
-
-
- gd32f10x_timer.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_timer.c
-
-
gd32f10x_spi.c
@@ -902,48 +860,6 @@
Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
-
-
- gd32f10x_enet.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_enet.c
-
-
-
-
- gd32f10x_bkp.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_bkp.c
-
-
-
-
- gd32f10x_usart.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
-
-
-
-
- startup_gd32f10x_cl.s
- 2
- Libraries\CMSIS\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
-
-
-
-
- gd32f10x_fwdgt.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fwdgt.c
-
-
-
-
- gd32f10x_can.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_can.c
-
-
gd32f10x_dbg.c
@@ -960,16 +876,79 @@
- gd32f10x_adc.c
+ gd32f10x_crc.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_adc.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_crc.c
- gd32f10x_exti.c
+ gd32f10x_i2c.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_i2c.c
+
+
+
+
+ gd32f10x_can.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_can.c
+
+
+
+
+ gd32f10x_gpio.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+
+
+
+
+ gd32f10x_dma.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dma.c
+
+
+
+
+ gd32f10x_usart.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
+
+
+
+
+ gd32f10x_dac.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dac.c
+
+
+
+
+ gd32f10x_rcu.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
+
+
+ gd32f10x_enet.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_enet.c
+
+
+
+
+ gd32f10x_bkp.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_bkp.c
+
+
+
+
+ gd32f10x_fwdgt.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fwdgt.c
@@ -979,6 +958,41 @@
Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+
+
+ gd32f10x_timer.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_timer.c
+
+
+
+
+ startup_gd32f10x_cl.s
+ 2
+ Libraries\CMSIS\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
+
+
+
+
+ gd32f10x_pmu.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_pmu.c
+
+
+
+
+ gd32f10x_wwdgt.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_wwdgt.c
+
+
+
+
+ gd32f10x_exti.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+
+
system_gd32f10x.c
@@ -988,9 +1002,23 @@
- gd32f10x_i2c.c
+ gd32f10x_adc.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_i2c.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_adc.c
+
+
+
+
+ gd32f10x_rtc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rtc.c
+
+
+
+
+ gd32f10x_exmc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exmc.c
diff --git a/bsp/gd32105c-eval/rtconfig.h b/bsp/gd32105c-eval/rtconfig.h
index 7d0c03205b..c3cd547b6e 100644
--- a/bsp/gd32105c-eval/rtconfig.h
+++ b/bsp/gd32105c-eval/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,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 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -100,9 +95,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -121,12 +114,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -137,41 +127,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 */
@@ -182,83 +159,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -271,10 +228,8 @@
#define RT_USING_USART0
#define RT_USING_SPI0
#define RT_USING_I2C0
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/gd32107c-eval/.config b/bsp/gd32107c-eval/.config
index 14883efd1c..120d96df60 100644
--- a/bsp/gd32107c-eval/.config
+++ b/bsp/gd32107c-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -151,12 +149,9 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=4096
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -207,16 +202,14 @@ 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -225,7 +218,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -238,9 +230,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
@@ -250,32 +239,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
@@ -285,14 +268,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
@@ -327,17 +307,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
@@ -359,8 +334,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -395,7 +369,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -405,16 +379,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -426,15 +399,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
@@ -454,8 +424,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -499,7 +470,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
@@ -511,7 +481,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -519,14 +495,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
@@ -537,8 +511,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
@@ -568,11 +540,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -646,10 +616,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -663,7 +634,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
@@ -676,7 +646,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
@@ -690,8 +659,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -713,16 +681,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -746,9 +709,7 @@ CONFIG_RT_USING_SPI0=y
# CONFIG_RT_USING_SPI2 is not set
CONFIG_RT_USING_I2C0=y
# CONFIG_RT_USING_I2C1 is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/gd32107c-eval/drivers/board.c b/bsp/gd32107c-eval/drivers/board.c
index 6cfd569f1a..528c166884 100644
--- a/bsp/gd32107c-eval/drivers/board.c
+++ b/bsp/gd32107c-eval/drivers/board.c
@@ -71,7 +71,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32107c-eval/project.uvprojx b/bsp/gd32107c-eval/project.uvprojx
index 7121186190..1bf39d203a 100644
--- a/bsp/gd32107c-eval/project.uvprojx
+++ b/bsp/gd32107c-eval/project.uvprojx
@@ -360,9 +360,9 @@
0
- GD32F10X_CL, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, GD32F10X_CL, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F10x\Include;Libraries\CMSIS;Libraries\GD32F10x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F10x\Include;Libraries\CMSIS;Libraries\GD32F10x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -413,14 +413,45 @@
- CPU
+ Compiler
- showmem.c
+ libc_syms.c
1
- ..\..\libcpu\arm\common\showmem.c
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ CPU
div0.c
@@ -428,6 +459,13 @@
..\..\libcpu\arm\common\div0.c
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
backtrace.c
@@ -517,16 +555,9 @@
- pipe.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\pipe.c
-
-
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\ringbuffer.c
@@ -536,13 +567,6 @@
..\..\components\drivers\src\ringblk_buf.c
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
dataqueue.c
@@ -552,9 +576,16 @@
- ringbuffer.c
+ waitqueue.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
@@ -564,6 +595,13 @@
..\..\components\drivers\src\workqueue.c
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
+
+
@@ -668,16 +706,16 @@
- ffunicode.c
+ dfs_elm.c
1
- ..\..\components\dfs\filesystems\elmfat\ffunicode.c
+ ..\..\components\dfs\filesystems\elmfat\dfs_elm.c
- dfs_elm.c
+ ffunicode.c
1
- ..\..\components\dfs\filesystems\elmfat\dfs_elm.c
+ ..\..\components\dfs\filesystems\elmfat\ffunicode.c
@@ -716,9 +754,37 @@
Kernel
- device.c
+ thread.c
1
- ..\..\src\device.c
+ ..\..\src\thread.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
@@ -737,16 +803,9 @@
- clock.c
+ object.c
1
- ..\..\src\clock.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
+ ..\..\src\object.c
@@ -763,6 +822,13 @@
..\..\src\ipc.c
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
irq.c
@@ -772,47 +838,9 @@
- object.c
+ idle.c
1
- ..\..\src\object.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- libc
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\idle.c
@@ -820,16 +848,16 @@
Libraries
- gd32f10x_i2c.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_i2c.c
+ startup_gd32f10x_cl.s
+ 2
+ Libraries\CMSIS\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
- startup_gd32f10x_cl.s
- 2
- Libraries\CMSIS\GD\GD32F10x\Source\ARM\startup_gd32f10x_cl.s
+ gd32f10x_dma.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dma.c
@@ -841,44 +869,9 @@
- gd32f10x_pmu.c
+ gd32f10x_wwdgt.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_pmu.c
-
-
-
-
- gd32f10x_exti.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
-
-
-
-
- gd32f10x_spi.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
-
-
-
-
- gd32f10x_enet.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_enet.c
-
-
-
-
- gd32f10x_crc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_crc.c
-
-
-
-
- gd32f10x_fwdgt.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fwdgt.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_wwdgt.c
@@ -888,6 +881,83 @@
Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rcu.c
+
+
+ gd32f10x_gpio.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
+
+
+
+
+ gd32f10x_exmc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exmc.c
+
+
+
+
+ gd32f10x_dbg.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dbg.c
+
+
+
+
+ gd32f10x_timer.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_timer.c
+
+
+
+
+ gd32f10x_pmu.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_pmu.c
+
+
+
+
+ gd32f10x_crc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_crc.c
+
+
+
+
+ gd32f10x_misc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
+
+
+
+
+ gd32f10x_enet.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_enet.c
+
+
+
+
+ gd32f10x_rtc.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rtc.c
+
+
+
+
+ gd32f10x_exti.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exti.c
+
+
+
+
+ system_gd32f10x.c
+ 1
+ Libraries\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
+
+
gd32f10x_adc.c
@@ -897,9 +967,30 @@
- gd32f10x_fmc.c
+ gd32f10x_i2c.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fmc.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_i2c.c
+
+
+
+
+ gd32f10x_spi.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_spi.c
+
+
+
+
+ gd32f10x_dac.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dac.c
+
+
+
+
+ gd32f10x_fwdgt.c
+ 1
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fwdgt.c
@@ -918,44 +1009,9 @@
- gd32f10x_misc.c
+ gd32f10x_fmc.c
1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_misc.c
-
-
-
-
- system_gd32f10x.c
- 1
- Libraries\CMSIS\GD\GD32F10x\Source\system_gd32f10x.c
-
-
-
-
- gd32f10x_exmc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_exmc.c
-
-
-
-
- gd32f10x_timer.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_timer.c
-
-
-
-
- gd32f10x_dma.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dma.c
-
-
-
-
- gd32f10x_dac.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dac.c
+ Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_fmc.c
@@ -965,34 +1021,6 @@
Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_usart.c
-
-
- gd32f10x_wwdgt.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_wwdgt.c
-
-
-
-
- gd32f10x_gpio.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_gpio.c
-
-
-
-
- gd32f10x_rtc.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_rtc.c
-
-
-
-
- gd32f10x_dbg.c
- 1
- Libraries\GD32F10x_standard_peripheral\Source\gd32f10x_dbg.c
-
-
diff --git a/bsp/gd32107c-eval/rtconfig.h b/bsp/gd32107c-eval/rtconfig.h
index d0fe577cad..c071b0e863 100644
--- a/bsp/gd32107c-eval/rtconfig.h
+++ b/bsp/gd32107c-eval/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,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 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -100,9 +95,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -121,12 +114,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -137,41 +127,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 */
@@ -182,83 +159,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -271,10 +228,8 @@
#define RT_USING_USART0
#define RT_USING_SPI0
#define RT_USING_I2C0
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/gd32303e-eval/.config b/bsp/gd32303e-eval/.config
index 8c4280eaf4..277df8dd52 100644
--- a/bsp/gd32303e-eval/.config
+++ b/bsp/gd32303e-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -151,12 +149,9 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=4096
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -207,17 +202,13 @@ 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -227,7 +218,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -240,9 +230,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
@@ -252,32 +239,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
@@ -287,14 +268,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
@@ -329,17 +307,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
@@ -361,8 +334,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -397,7 +369,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -407,16 +379,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -428,15 +399,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
@@ -456,8 +424,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -501,7 +470,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
@@ -513,7 +481,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -521,14 +495,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
@@ -539,8 +511,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
@@ -570,11 +540,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -648,10 +616,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -665,7 +634,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
@@ -678,7 +646,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
@@ -692,8 +659,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -715,17 +681,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_GD32303E=y
CONFIG_RT_USING_USART0=y
CONFIG_RT_USING_USART1=y
diff --git a/bsp/gd32303e-eval/drivers/board.c b/bsp/gd32303e-eval/drivers/board.c
index 5910ec4124..239d842054 100644
--- a/bsp/gd32303e-eval/drivers/board.c
+++ b/bsp/gd32303e-eval/drivers/board.c
@@ -71,7 +71,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32303e-eval/project.uvprojx b/bsp/gd32303e-eval/project.uvprojx
index d194a847cc..1c3ecf997a 100644
--- a/bsp/gd32303e-eval/project.uvprojx
+++ b/bsp/gd32303e-eval/project.uvprojx
@@ -331,9 +331,9 @@
0
- USE_STDPERIPH_DRIVER, GD32F30X_HD, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, GD32F30X_HD, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F30x\Include;Libraries\CMSIS;Libraries\GD32F30x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\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\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F30x\Include;Libraries\CMSIS;Libraries\GD32F30x_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -384,6 +384,44 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
@@ -489,16 +527,9 @@
- workqueue.c
+ ringbuffer.c
1
- ..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\ringbuffer.c
@@ -510,16 +541,9 @@
- dataqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\dataqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\ringblk_buf.c
@@ -529,6 +553,20 @@
..\..\components\drivers\src\waitqueue.c
+
+
+ workqueue.c
+ 1
+ ..\..\components\drivers\src\workqueue.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
@@ -624,6 +662,13 @@
..\..\components\dfs\filesystems\devfs\devfs.c
+
+
+ dfs_elm.c
+ 1
+ ..\..\components\dfs\filesystems\elmfat\dfs_elm.c
+
+
ffunicode.c
@@ -638,13 +683,6 @@
..\..\components\dfs\filesystems\elmfat\ff.c
-
-
- dfs_elm.c
- 1
- ..\..\components\dfs\filesystems\elmfat\dfs_elm.c
-
-
Finsh
@@ -679,6 +717,27 @@
Kernel
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
+
+
+ object.c
+ 1
+ ..\..\src\object.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
ipc.c
@@ -688,23 +747,9 @@
- irq.c
+ idle.c
1
- ..\..\src\irq.c
-
-
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
+ ..\..\src\idle.c
@@ -721,20 +766,6 @@
..\..\src\scheduler.c
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
-
-
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
device.c
@@ -744,23 +775,23 @@
- thread.c
+ mempool.c
1
- ..\..\src\thread.c
+ ..\..\src\mempool.c
- object.c
+ mem.c
1
- ..\..\src\object.c
+ ..\..\src\mem.c
- idle.c
+ irq.c
1
- ..\..\src\idle.c
+ ..\..\src\irq.c
@@ -770,54 +801,16 @@
..\..\src\timer.c
-
-
- libc
- libc_syms.c
+ components.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\components.c
Libraries
-
-
- gd32f30x_fmc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_fmc.c
-
-
gd32f30x_ctc.c
@@ -825,118 +818,6 @@
Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_ctc.c
-
-
- gd32f30x_rcu.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
-
-
-
-
- gd32f30x_exti.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
-
-
-
-
- gd32f30x_enet.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_enet.c
-
-
-
-
- gd32f30x_i2c.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_i2c.c
-
-
-
-
- gd32f30x_pmu.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_pmu.c
-
-
-
-
- gd32f30x_spi.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_spi.c
-
-
-
-
- gd32f30x_adc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_adc.c
-
-
-
-
- gd32f30x_crc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_crc.c
-
-
-
-
- gd32f30x_dbg.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_dbg.c
-
-
-
-
- gd32f30x_rtc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_rtc.c
-
-
-
-
- gd32f30x_exmc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_exmc.c
-
-
-
-
- gd32f30x_usart.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
-
-
-
-
- gd32f30x_misc.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
-
-
-
-
- gd32f30x_gpio.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
-
-
-
-
- gd32f30x_can.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_can.c
-
-
-
-
- gd32f30x_sdio.c
- 1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_sdio.c
-
-
gd32f30x_bkp.c
@@ -946,9 +827,37 @@
- gd32f30x_fwdgt.c
+ gd32f30x_usart.c
1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_fwdgt.c
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_usart.c
+
+
+
+
+ gd32f30x_dbg.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_dbg.c
+
+
+
+
+ gd32f30x_gpio.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_gpio.c
+
+
+
+
+ gd32f30x_spi.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_spi.c
+
+
+
+
+ gd32f30x_i2c.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_i2c.c
@@ -960,9 +869,51 @@
- gd32f30x_dac.c
+ gd32f30x_sdio.c
1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_dac.c
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_sdio.c
+
+
+
+
+ gd32f30x_crc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_crc.c
+
+
+
+
+ gd32f30x_rcu.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_rcu.c
+
+
+
+
+ gd32f30x_enet.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_enet.c
+
+
+
+
+ gd32f30x_fmc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_fmc.c
+
+
+
+
+ gd32f30x_rtc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_rtc.c
+
+
+
+
+ gd32f30x_can.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_can.c
@@ -972,6 +923,48 @@
Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_dma.c
+
+
+ gd32f30x_exmc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_exmc.c
+
+
+
+
+ gd32f30x_dac.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_dac.c
+
+
+
+
+ gd32f30x_misc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_misc.c
+
+
+
+
+ gd32f30x_adc.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_adc.c
+
+
+
+
+ gd32f30x_pmu.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_pmu.c
+
+
+
+
+ gd32f30x_wwdgt.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_wwdgt.c
+
+
system_gd32f30x.c
@@ -988,9 +981,16 @@
- gd32f30x_wwdgt.c
+ gd32f30x_fwdgt.c
1
- Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_wwdgt.c
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_fwdgt.c
+
+
+
+
+ gd32f30x_exti.c
+ 1
+ Libraries\GD32F30x_standard_peripheral\Source\gd32f30x_exti.c
diff --git a/bsp/gd32303e-eval/rtconfig.h b/bsp/gd32303e-eval/rtconfig.h
index 34b4715e30..745d3deae4 100644
--- a/bsp/gd32303e-eval/rtconfig.h
+++ b/bsp/gd32303e-eval/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,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 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -100,9 +95,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -120,13 +113,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -137,41 +126,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 */
@@ -182,83 +158,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_GD32303E
#define RT_USING_USART0
#define RT_USING_USART1
diff --git a/bsp/gd32350r-eval/.config b/bsp/gd32350r-eval/.config
index 6046df93d2..839de3b6e2 100644
--- a/bsp/gd32350r-eval/.config
+++ b/bsp/gd32350r-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
-# 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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,13 +117,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
@@ -163,16 +160,15 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-# CONFIG_RT_LIBC_USING_TIME is not set
+# CONFIG_RT_USING_MODULE is not set
+CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# POSIX (Portable Operating System Interface) layer
@@ -180,7 +176,6 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -193,9 +188,6 @@ CONFIG_RT_USING_PIN=y
#
# 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
@@ -205,32 +197,26 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -240,14 +226,11 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -282,17 +265,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -314,8 +292,7 @@ CONFIG_RT_USING_PIN=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -350,7 +327,7 @@ CONFIG_RT_USING_PIN=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -360,16 +337,15 @@ CONFIG_RT_USING_PIN=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -381,15 +357,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -409,8 +382,9 @@ CONFIG_RT_USING_PIN=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -454,7 +428,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -466,7 +439,13 @@ CONFIG_RT_USING_PIN=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -474,14 +453,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -492,8 +469,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -523,11 +498,9 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -601,10 +574,11 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -618,7 +592,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -631,7 +604,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -645,8 +617,7 @@ CONFIG_RT_USING_PIN=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -668,17 +639,11 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_GD32350R=y
CONFIG_BSP_USING_UART0=y
# CONFIG_BSP_USING_UART1 is not set
diff --git a/bsp/gd32350r-eval/drivers/board.c b/bsp/gd32350r-eval/drivers/board.c
index 93d3f93bd5..e07bbfc45c 100644
--- a/bsp/gd32350r-eval/drivers/board.c
+++ b/bsp/gd32350r-eval/drivers/board.c
@@ -75,14 +75,14 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
#ifdef BSP_USING_SDRAM
rt_system_heap_init((void *)EXT_SDRAM_BEGIN, (void *)EXT_SDRAM_END);
#else
- rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);
+ rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);
#endif
}
diff --git a/bsp/gd32350r-eval/project.uvprojx b/bsp/gd32350r-eval/project.uvprojx
index 1384f166a9..1ba4f8d083 100644
--- a/bsp/gd32350r-eval/project.uvprojx
+++ b/bsp/gd32350r-eval/project.uvprojx
@@ -332,9 +332,9 @@
0
- GD32F350, USE_STDPERIPH_DRIVER, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, GD32F350, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F3x0\Include;Libraries\CMSIS;Libraries\GD32F3x0_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F3x0\Include;Libraries\CMSIS;Libraries\GD32F3x0_standard_peripheral\Include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -386,14 +386,45 @@
- CPU
+ Compiler
- backtrace.c
+ syscalls.c
1
- ..\..\libcpu\arm\common\backtrace.c
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ CPU
showmem.c
@@ -401,6 +432,13 @@
..\..\libcpu\arm\common\showmem.c
+
+
+ backtrace.c
+ 1
+ ..\..\libcpu\arm\common\backtrace.c
+
+
div0.c
@@ -439,34 +477,6 @@
..\..\components\drivers\serial\serial.c
-
-
- pipe.c
- 1
- ..\..\components\drivers\src\pipe.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\components\drivers\src\ringbuffer.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
workqueue.c
@@ -474,6 +484,13 @@
..\..\components\drivers\src\workqueue.c
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
+
+
completion.c
@@ -481,6 +498,20 @@
..\..\components\drivers\src\completion.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
dataqueue.c
@@ -488,6 +519,13 @@
..\..\components\drivers\src\dataqueue.c
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
Drivers
@@ -541,30 +579,9 @@
Kernel
- thread.c
+ ipc.c
1
- ..\..\src\thread.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
+ ..\..\src\ipc.c
@@ -574,6 +591,27 @@
..\..\src\clock.c
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
+
+
+ object.c
+ 1
+ ..\..\src\object.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
components.c
@@ -583,9 +621,9 @@
- irq.c
+ mem.c
1
- ..\..\src\irq.c
+ ..\..\src\mem.c
@@ -604,9 +642,9 @@
- device.c
+ idle.c
1
- ..\..\src\device.c
+ ..\..\src\idle.c
@@ -618,16 +656,16 @@
- ipc.c
+ scheduler.c
1
- ..\..\src\ipc.c
+ ..\..\src\scheduler.c
- object.c
+ irq.c
1
- ..\..\src\object.c
+ ..\..\src\irq.c
@@ -635,65 +673,9 @@
Libraries
- gd32f3x0_misc.c
+ gd32f3x0_usart.c
1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_misc.c
-
-
-
-
- gd32f3x0_fwdgt.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_fwdgt.c
-
-
-
-
- gd32f3x0_cmp.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_cmp.c
-
-
-
-
- gd32f3x0_tsi.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_tsi.c
-
-
-
-
- gd32f3x0_pmu.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_pmu.c
-
-
-
-
- startup_gd32f3x0.s
- 2
- Libraries\CMSIS\GD\GD32F3x0\Source\ARM\startup_gd32f3x0.s
-
-
-
-
- gd32f3x0_crc.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_crc.c
-
-
-
-
- gd32f3x0_syscfg.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_syscfg.c
-
-
-
-
- gd32f3x0_cec.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_cec.c
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_usart.c
@@ -705,86 +687,9 @@
- gd32f3x0_adc.c
+ gd32f3x0_cmp.c
1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_adc.c
-
-
-
-
- gd32f3x0_spi.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_spi.c
-
-
-
-
- gd32f3x0_dbg.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dbg.c
-
-
-
-
- system_gd32f3x0.c
- 1
- Libraries\CMSIS\GD\GD32F3x0\Source\system_gd32f3x0.c
-
-
-
-
- gd32f3x0_dac.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dac.c
-
-
-
-
- gd32f3x0_fmc.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_fmc.c
-
-
-
-
- gd32f3x0_dma.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dma.c
-
-
-
-
- gd32f3x0_exti.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_exti.c
-
-
-
-
- gd32f3x0_timer.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_timer.c
-
-
-
-
- gd32f3x0_i2c.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_i2c.c
-
-
-
-
- gd32f3x0_rcu.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_rcu.c
-
-
-
-
- gd32f3x0_usart.c
- 1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_usart.c
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_cmp.c
@@ -796,9 +701,135 @@
- gd32f3x0_gpio.c
+ gd32f3x0_dac.c
1
- Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_gpio.c
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dac.c
+
+
+
+
+ system_gd32f3x0.c
+ 1
+ Libraries\CMSIS\GD\GD32F3x0\Source\system_gd32f3x0.c
+
+
+
+
+ gd32f3x0_fmc.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_fmc.c
+
+
+
+
+ gd32f3x0_cec.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_cec.c
+
+
+
+
+ startup_gd32f3x0.s
+ 2
+ Libraries\CMSIS\GD\GD32F3x0\Source\ARM\startup_gd32f3x0.s
+
+
+
+
+ gd32f3x0_dbg.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dbg.c
+
+
+
+
+ gd32f3x0_timer.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_timer.c
+
+
+
+
+ gd32f3x0_dma.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_dma.c
+
+
+
+
+ gd32f3x0_crc.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_crc.c
+
+
+
+
+ gd32f3x0_tsi.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_tsi.c
+
+
+
+
+ gd32f3x0_spi.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_spi.c
+
+
+
+
+ gd32f3x0_i2c.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_i2c.c
+
+
+
+
+ gd32f3x0_pmu.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_pmu.c
+
+
+
+
+ gd32f3x0_misc.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_misc.c
+
+
+
+
+ gd32f3x0_exti.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_exti.c
+
+
+
+
+ gd32f3x0_adc.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_adc.c
+
+
+
+
+ gd32f3x0_syscfg.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_syscfg.c
+
+
+
+
+ gd32f3x0_fwdgt.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_fwdgt.c
+
+
+
+
+ gd32f3x0_rcu.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_rcu.c
@@ -808,6 +839,13 @@
Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_wwdgt.c
+
+
+ gd32f3x0_gpio.c
+ 1
+ Libraries\GD32F3x0_standard_peripheral\Source\gd32f3x0_gpio.c
+
+
diff --git a/bsp/gd32350r-eval/rtconfig.h b/bsp/gd32350r-eval/rtconfig.h
index fd6ec07281..0ae71b7a8a 100644
--- a/bsp/gd32350r-eval/rtconfig.h
+++ b/bsp/gd32350r-eval/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -94,11 +88,10 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
+#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -108,41 +101,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 */
@@ -153,83 +133,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_GD32350R
#define BSP_USING_UART0
diff --git a/bsp/gd32450z-eval/.config b/bsp/gd32450z-eval/.config
index bc514476b0..5102985dc4 100644
--- a/bsp/gd32450z-eval/.config
+++ b/bsp/gd32450z-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -151,13 +149,10 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT=y
CONFIG_RT_DFS_ELM_MUTEX_TIMEOUT=3000
-# end of elm-chan's FatFs, Generic FAT Filesystem Module
-
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_NFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -198,17 +193,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -217,6 +208,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
CONFIG_RT_USING_POSIX_FS=y
# CONFIG_RT_USING_POSIX_DEVIO is not set
+# CONFIG_RT_USING_POSIX_STDIO is not set
CONFIG_RT_USING_POSIX_POLL=y
CONFIG_RT_USING_POSIX_SELECT=y
# CONFIG_RT_USING_POSIX_TERMIOS is not set
@@ -224,7 +216,6 @@ CONFIG_RT_USING_POSIX_SELECT=y
# CONFIG_RT_USING_POSIX_MMAN is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -237,9 +228,6 @@ CONFIG_RT_USING_POSIX_SELECT=y
#
# 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
@@ -255,10 +243,7 @@ CONFIG_SAL_INTERNET_CHECK=y
# protocol stack implement
#
CONFIG_SAL_USING_LWIP=y
-# end of protocol stack implement
-
CONFIG_SAL_USING_POSIX=y
-# end of Socket abstraction layer
#
# Network interface device
@@ -271,7 +256,7 @@ CONFIG_NETDEV_USING_AUTO_DEFAULT=y
# CONFIG_NETDEV_USING_IPV6 is not set
CONFIG_NETDEV_IPV4=1
CONFIG_NETDEV_IPV6=0
-# end of Network interface device
+# CONFIG_NETDEV_IPV6_SCOPES is not set
#
# light weight TCP/IP stack
@@ -297,8 +282,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -333,22 +316,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -358,14 +336,11 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -400,17 +375,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -432,8 +402,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -468,7 +437,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -478,16 +447,15 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -499,15 +467,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -527,8 +492,9 @@ CONFIG_RT_LWIP_USING_PING=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -572,7 +538,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -584,7 +549,13 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -592,14 +563,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -610,8 +579,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -641,11 +608,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -719,10 +684,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -736,7 +702,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -749,7 +714,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -763,8 +727,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -786,17 +749,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_GD32450Z=y
CONFIG_BSP_USING_SDRAM=y
CONFIG_BSP_USING_UART0=y
diff --git a/bsp/gd32450z-eval/drivers/board.c b/bsp/gd32450z-eval/drivers/board.c
index fb17c159eb..b69adfc41f 100644
--- a/bsp/gd32450z-eval/drivers/board.c
+++ b/bsp/gd32450z-eval/drivers/board.c
@@ -74,7 +74,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32450z-eval/project.uvproj b/bsp/gd32450z-eval/project.uvproj
index 7251800c36..68699611c6 100644
--- a/bsp/gd32450z-eval/project.uvproj
+++ b/bsp/gd32450z-eval/project.uvproj
@@ -370,9 +370,9 @@
0
- USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\components\net\lwip-2.0.2\src;..\..\components\net\lwip-2.0.2\src\include;..\..\components\net\lwip-2.0.2\src\include\ipv4;..\..\components\net\lwip-2.0.2\src\arch\include;..\..\components\net\lwip-2.0.2\src\include\netif;..\..\components\libc\posix\io;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\components\net\lwip-2.0.2\src;..\..\components\net\lwip-2.0.2\src\include;..\..\components\net\lwip-2.0.2\src\include\ipv4;..\..\components\net\lwip-2.0.2\src\arch\include;..\..\components\net\lwip-2.0.2\src\include\netif;..\..\components\libc\posix\io;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel
@@ -423,6 +423,44 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
@@ -448,16 +486,16 @@
- cpuport.c
- 1
- ..\..\libcpu\arm\cortex-m4\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m4\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -479,16 +517,9 @@
- ringbuffer.c
+ waitqueue.c
1
- ..\..\components\drivers\src\ringbuffer.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\waitqueue.c
@@ -500,9 +531,9 @@
- completion.c
+ pipe.c
1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\pipe.c
@@ -514,16 +545,23 @@
- pipe.c
+ dataqueue.c
1
- ..\..\components\drivers\src\pipe.c
+ ..\..\components\drivers\src\dataqueue.c
- waitqueue.c
+ completion.c
1
- ..\..\components\drivers\src\waitqueue.c
+ ..\..\components\drivers\src\completion.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
@@ -657,20 +695,6 @@
Kernel
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
scheduler.c
@@ -680,37 +704,9 @@
- mem.c
+ irq.c
1
- ..\..\src\mem.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
+ ..\..\src\irq.c
@@ -722,9 +718,23 @@
- components.c
+ idle.c
1
- ..\..\src\components.c
+ ..\..\src\idle.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
@@ -736,54 +746,44 @@
- idle.c
+ mempool.c
1
- ..\..\src\idle.c
+ ..\..\src\mempool.c
- irq.c
+ components.c
1
- ..\..\src\irq.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\src\components.c
- libc_syms.c
+ clock.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\clock.c
- syscalls.c
+ object.c
1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\object.c
- stdlib.c
+ thread.c
1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\thread.c
- time.c
+ mem.c
1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\mem.c
@@ -791,30 +791,9 @@
Libraries
- gd32f4xx_wwdgt.c
+ gd32f4xx_fmc.c
1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c
-
-
-
-
- gd32f4xx_dbg.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c
-
-
-
-
- gd32f4xx_trng.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c
-
-
-
-
- gd32f4xx_usart.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c
@@ -824,48 +803,6 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c
-
-
- gd32f4xx_gpio.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
-
-
-
-
- gd32f4xx_syscfg.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
-
-
-
-
- gd32f4xx_sdio.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c
-
-
-
-
- gd32f4xx_exti.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
-
-
-
-
- gd32f4xx_misc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
-
-
-
-
- gd32f4xx_spi.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_spi.c
-
-
gd32f4xx_crc.c
@@ -873,55 +810,6 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c
-
-
- gd32f4xx_fmc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c
-
-
-
-
- system_gd32f4xx.c
- 1
- Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
-
-
-
-
- gd32f4xx_dci.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c
-
-
-
-
- gd32f4xx_timer.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c
-
-
-
-
- gd32f4xx_dac.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c
-
-
-
-
- gd32f4xx_rtc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c
-
-
-
-
- gd32f4xx_iref.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c
-
-
gd32f4xx_enet.c
@@ -929,48 +817,6 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c
-
-
- gd32f4xx_i2c.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
-
-
-
-
- gd32f4xx_exmc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c
-
-
-
-
- startup_gd32f4xx.s
- 2
- Libraries\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
-
-
-
-
- gd32f4xx_tli.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c
-
-
-
-
- gd32f4xx_fwdgt.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c
-
-
-
-
- gd32f4xx_ipa.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c
-
-
gd32f4xx_rcu.c
@@ -978,6 +824,27 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+
+
+ gd32f4xx_sdio.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c
+
+
+
+
+ gd32f4xx_syscfg.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+
+
+
+
+ gd32f4xx_wwdgt.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c
+
+
gd32f4xx_dma.c
@@ -987,9 +854,114 @@
- gd32f4xx_ctc.c
+ gd32f4xx_ipa.c
1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c
+
+
+
+
+ gd32f4xx_dbg.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c
+
+
+
+
+ gd32f4xx_fwdgt.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c
+
+
+
+
+ gd32f4xx_usart.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+
+
+
+
+ gd32f4xx_dac.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c
+
+
+
+
+ gd32f4xx_spi.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_spi.c
+
+
+
+
+ gd32f4xx_trng.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c
+
+
+
+
+ gd32f4xx_tli.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c
+
+
+
+
+ gd32f4xx_dci.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c
+
+
+
+
+ gd32f4xx_iref.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c
+
+
+
+
+ gd32f4xx_rtc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c
+
+
+
+
+ startup_gd32f4xx.s
+ 2
+ Libraries\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
+
+
+
+
+ gd32f4xx_adc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c
+
+
+
+
+ gd32f4xx_timer.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c
+
+
+
+
+ gd32f4xx_exti.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+
+
+
+
+ gd32f4xx_gpio.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
@@ -1001,14 +973,49 @@
- gd32f4xx_adc.c
+ gd32f4xx_misc.c
1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+
+
+
+
+ gd32f4xx_exmc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c
+
+
+
+
+ gd32f4xx_ctc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c
+
+
+
+
+ gd32f4xx_i2c.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+
+
+
+
+ system_gd32f4xx.c
+ 1
+ Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
lwIP
+
+
+ ping.c
+ 1
+ ..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
+
+
netdb.c
@@ -1072,13 +1079,6 @@
..\..\components\net\lwip-2.0.2\src\api\tcpip.c
-
-
- ping.c
- 1
- ..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
-
-
ip4_addr.c
@@ -1288,13 +1288,6 @@
SAL
-
-
- netdev.c
- 1
- ..\..\components\net\netdev\src\netdev.c
-
-
netdev_ipaddr.c
@@ -1304,23 +1297,9 @@
- dfs_net.c
+ netdev.c
1
- ..\..\components\net\sal_socket\dfs_net\dfs_net.c
-
-
-
-
- net_sockets.c
- 1
- ..\..\components\net\sal_socket\socket\net_sockets.c
-
-
-
-
- sal_socket.c
- 1
- ..\..\components\net\sal_socket\src\sal_socket.c
+ ..\..\components\net\netdev\src\netdev.c
@@ -1330,6 +1309,13 @@
..\..\components\net\sal_socket\impl\af_inet_lwip.c
+
+
+ net_sockets.c
+ 1
+ ..\..\components\net\sal_socket\socket\net_sockets.c
+
+
net_netdb.c
@@ -1337,6 +1323,20 @@
..\..\components\net\sal_socket\socket\net_netdb.c
+
+
+ dfs_net.c
+ 1
+ ..\..\components\net\sal_socket\dfs_net\dfs_net.c
+
+
+
+
+ sal_socket.c
+ 1
+ ..\..\components\net\sal_socket\src\sal_socket.c
+
+
diff --git a/bsp/gd32450z-eval/project.uvprojx b/bsp/gd32450z-eval/project.uvprojx
index c9c0bd9866..1fb3e8e5f0 100644
--- a/bsp/gd32450z-eval/project.uvprojx
+++ b/bsp/gd32450z-eval/project.uvprojx
@@ -331,9 +331,9 @@
0
- USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\components\net\lwip-2.0.2\src;..\..\components\net\lwip-2.0.2\src\include;..\..\components\net\lwip-2.0.2\src\include\ipv4;..\..\components\net\lwip-2.0.2\src\arch\include;..\..\components\net\lwip-2.0.2\src\include\netif;..\..\components\libc\posix\io;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\finsh;.;..\..\include;Libraries\CMSIS\GD\GD32F4xx\Include;Libraries\CMSIS;Libraries\GD32F4xx_standard_peripheral\Include;..\..\components\net\lwip-2.0.2\src;..\..\components\net\lwip-2.0.2\src\include;..\..\components\net\lwip-2.0.2\src\include\ipv4;..\..\components\net\lwip-2.0.2\src\arch\include;..\..\components\net\lwip-2.0.2\src\include\netif;..\..\components\libc\posix\io;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\components\net\netdev\include;..\..\components\net\sal_socket\include;..\..\components\net\sal_socket\include\socket;..\..\components\net\sal_socket\impl;..\..\components\net\sal_socket\include\dfs_net;..\..\components\net\sal_socket\include\socket\sys_socket;..\..\examples\utest\testcases\kernel
@@ -384,13 +384,51 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
- div0.c
+ backtrace.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\libcpu\arm\common\backtrace.c
@@ -402,9 +440,9 @@
- backtrace.c
+ div0.c
1
- ..\..\libcpu\arm\common\backtrace.c
+ ..\..\libcpu\arm\common\div0.c
@@ -440,9 +478,9 @@
- ringbuffer.c
+ dataqueue.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\dataqueue.c
@@ -452,13 +490,6 @@
..\..\components\drivers\src\pipe.c
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
workqueue.c
@@ -466,13 +497,6 @@
..\..\components\drivers\src\workqueue.c
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
-
-
ringblk_buf.c
@@ -482,9 +506,23 @@
- dataqueue.c
+ completion.c
1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\completion.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
@@ -618,13 +656,6 @@
Kernel
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
ipc.c
@@ -634,9 +665,9 @@
- components.c
+ thread.c
1
- ..\..\src\components.c
+ ..\..\src\thread.c
@@ -648,9 +679,9 @@
- mem.c
+ clock.c
1
- ..\..\src\mem.c
+ ..\..\src\clock.c
@@ -662,9 +693,23 @@
- clock.c
+ device.c
1
- ..\..\src\clock.c
+ ..\..\src\device.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
@@ -674,6 +719,20 @@
..\..\src\mempool.c
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
idle.c
@@ -688,208 +747,9 @@
..\..\src\irq.c
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
Libraries
-
-
- gd32f4xx_fmc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c
-
-
-
-
- gd32f4xx_enet.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c
-
-
-
-
- gd32f4xx_timer.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c
-
-
-
-
- gd32f4xx_ctc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c
-
-
-
-
- gd32f4xx_iref.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c
-
-
-
-
- gd32f4xx_misc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
-
-
-
-
- gd32f4xx_usart.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
-
-
-
-
- gd32f4xx_syscfg.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
-
-
-
-
- gd32f4xx_gpio.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
-
-
-
-
- gd32f4xx_trng.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c
-
-
-
-
- gd32f4xx_tli.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c
-
-
-
-
- gd32f4xx_rcu.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
-
-
-
-
- gd32f4xx_fwdgt.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c
-
-
-
-
- gd32f4xx_rtc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c
-
-
-
-
- gd32f4xx_dbg.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c
-
-
-
-
- gd32f4xx_i2c.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
-
-
-
-
- gd32f4xx_crc.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c
-
-
-
-
- system_gd32f4xx.c
- 1
- Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
-
-
-
-
- gd32f4xx_ipa.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c
-
-
-
-
- gd32f4xx_wwdgt.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c
-
-
gd32f4xx_dma.c
@@ -897,48 +757,6 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dma.c
-
-
- gd32f4xx_dci.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c
-
-
-
-
- gd32f4xx_sdio.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c
-
-
-
-
- gd32f4xx_dac.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c
-
-
-
-
- gd32f4xx_pmu.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c
-
-
-
-
- startup_gd32f4xx.s
- 2
- Libraries\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
-
-
-
-
- gd32f4xx_exti.c
- 1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
-
-
gd32f4xx_spi.c
@@ -948,9 +766,156 @@
- gd32f4xx_adc.c
+ gd32f4xx_exti.c
1
- Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exti.c
+
+
+
+
+ gd32f4xx_rcu.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rcu.c
+
+
+
+
+ gd32f4xx_enet.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_enet.c
+
+
+
+
+ gd32f4xx_trng.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_trng.c
+
+
+
+
+ gd32f4xx_rtc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_rtc.c
+
+
+
+
+ gd32f4xx_i2c.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_i2c.c
+
+
+
+
+ gd32f4xx_gpio.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_gpio.c
+
+
+
+
+ gd32f4xx_dac.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dac.c
+
+
+
+
+ gd32f4xx_misc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_misc.c
+
+
+
+
+ gd32f4xx_crc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_crc.c
+
+
+
+
+ gd32f4xx_sdio.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_sdio.c
+
+
+
+
+ gd32f4xx_dci.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dci.c
+
+
+
+
+ gd32f4xx_iref.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_iref.c
+
+
+
+
+ system_gd32f4xx.c
+ 1
+ Libraries\CMSIS\GD\GD32F4xx\Source\system_gd32f4xx.c
+
+
+
+
+ gd32f4xx_usart.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_usart.c
+
+
+
+
+ gd32f4xx_dbg.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_dbg.c
+
+
+
+
+ gd32f4xx_syscfg.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_syscfg.c
+
+
+
+
+ startup_gd32f4xx.s
+ 2
+ Libraries\CMSIS\GD\GD32F4xx\Source\ARM\startup_gd32f4xx.s
+
+
+
+
+ gd32f4xx_fmc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fmc.c
+
+
+
+
+ gd32f4xx_pmu.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_pmu.c
+
+
+
+
+ gd32f4xx_wwdgt.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_wwdgt.c
+
+
+
+
+ gd32f4xx_ctc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ctc.c
@@ -960,6 +925,34 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_exmc.c
+
+
+ gd32f4xx_ipa.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_ipa.c
+
+
+
+
+ gd32f4xx_adc.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_adc.c
+
+
+
+
+ gd32f4xx_tli.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_tli.c
+
+
+
+
+ gd32f4xx_timer.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_timer.c
+
+
gd32f4xx_can.c
@@ -967,9 +960,23 @@
Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_can.c
+
+
+ gd32f4xx_fwdgt.c
+ 1
+ Libraries\GD32F4xx_standard_peripheral\Source\gd32f4xx_fwdgt.c
+
+
lwIP
+
+
+ ping.c
+ 1
+ ..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
+
+
netdb.c
@@ -1040,13 +1047,6 @@
..\..\components\net\lwip-2.0.2\src\core\ipv4\ip4_addr.c
-
-
- ping.c
- 1
- ..\..\components\net\lwip-2.0.2\src\apps\ping\ping.c
-
-
dhcp.c
@@ -1249,13 +1249,6 @@
SAL
-
-
- netdev.c
- 1
- ..\..\components\net\netdev\src\netdev.c
-
-
netdev_ipaddr.c
@@ -1265,16 +1258,16 @@
- sal_socket.c
+ netdev.c
1
- ..\..\components\net\sal_socket\src\sal_socket.c
+ ..\..\components\net\netdev\src\netdev.c
- af_inet_lwip.c
+ net_sockets.c
1
- ..\..\components\net\sal_socket\impl\af_inet_lwip.c
+ ..\..\components\net\sal_socket\socket\net_sockets.c
@@ -1293,9 +1286,16 @@
- net_sockets.c
+ sal_socket.c
1
- ..\..\components\net\sal_socket\socket\net_sockets.c
+ ..\..\components\net\sal_socket\src\sal_socket.c
+
+
+
+
+ af_inet_lwip.c
+ 1
+ ..\..\components\net\sal_socket\impl\af_inet_lwip.c
diff --git a/bsp/gd32450z-eval/rtconfig.h b/bsp/gd32450z-eval/rtconfig.h
index 0e7c4c3f15..24e31e0e72 100644
--- a/bsp/gd32450z-eval/rtconfig.h
+++ b/bsp/gd32450z-eval/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,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 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -100,9 +95,7 @@
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
-/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -118,13 +111,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -138,10 +127,6 @@
/* 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 */
@@ -152,9 +137,7 @@
/* protocol stack implement */
#define SAL_USING_LWIP
-/* end of protocol stack implement */
#define SAL_USING_POSIX
-/* end of Socket abstraction layer */
/* Network interface device */
@@ -165,7 +148,6 @@
#define NETDEV_USING_AUTO_DEFAULT
#define NETDEV_IPV4 1
#define NETDEV_IPV6 0
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -184,7 +166,6 @@
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -211,25 +192,18 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -240,83 +214,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_GD32450Z
#define BSP_USING_SDRAM
#define BSP_USING_UART0
diff --git a/bsp/gd32e230k-start/.config b/bsp/gd32e230k-start/.config
index 2e87d66002..b511a61f43 100644
--- a/bsp/gd32e230k-start/.config
+++ b/bsp/gd32e230k-start/.config
@@ -18,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -176,8 +177,7 @@ CONFIG_RT_SFUD_SPI_MAX_HZ=50000000
#
# POSIX layer and C standard library
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -186,7 +186,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -303,6 +302,7 @@ 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
+# CONFIG_PKG_USING_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -337,6 +337,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -350,6 +351,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# language packages
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
@@ -364,6 +366,7 @@ 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
#
# u8g2: a monochrome graphic library
@@ -389,6 +392,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# CONFIG_PKG_USING_PAINTERENGINE is not set
# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -444,6 +450,13 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
+
#
# acceleration: Assembly language or algorithmic acceleration packages
#
@@ -495,7 +508,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# CONFIG_PKG_USING_MCUBOOT is not set
# CONFIG_PKG_USING_TINYUSB is not set
# CONFIG_PKG_USING_USB_STACK is not set
@@ -572,9 +584,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# CONFIG_PKG_USING_BL_MCU_SDK is not set
# CONFIG_PKG_USING_SOFT_SERIAL is not set
# CONFIG_PKG_USING_MB85RS16 is not set
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -613,6 +627,7 @@ 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
+# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -634,14 +649,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# CONFIG_PKG_USING_MCURSES is not set
-# CONFIG_PKG_USING_COWSAY is not set
-# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_GD32E230K=y
CONFIG_RT_USING_USART0=y
CONFIG_RT_USING_USART1=y
diff --git a/bsp/gd32e230k-start/drivers/board.c b/bsp/gd32e230k-start/drivers/board.c
index 5910ec4124..239d842054 100644
--- a/bsp/gd32e230k-start/drivers/board.c
+++ b/bsp/gd32e230k-start/drivers/board.c
@@ -71,7 +71,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32e230k-start/project.uvoptx b/bsp/gd32e230k-start/project.uvoptx
index 56e00b8e0d..090bdb9227 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; *.md
+ *.txt; *.h; *.inc
*.plm
*.cpp
0
@@ -103,7 +103,7 @@
1
0
0
- 13
+ 19
@@ -174,838 +174,6 @@
-
- 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 7721f6fa03..25f27c0e6a 100644
--- a/bsp/gd32e230k-start/project.uvprojx
+++ b/bsp/gd32e230k-start/project.uvprojx
@@ -1,46 +1,43 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread_gd32e230
0x4
ARM-ADS
- 6170000::V6.17::.\AC6.17
+ 5060750::V5.06 update 6 (build 750)::ARMCC
1
GD32E230K8
GigaDevice
- GigaDevice.GD32E23x_DFP.1.0.1
- http://gd32mcu.com/data/documents/pack/
+ GigaDevice.GD32E230_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:GD32E230K8$Flash\GD32E230.FLM))
0
$$Device:GD32E230K8$Device\Include\gd32e230.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:GD32E230K8$SVD\GD32E230.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-M23"
-
+
0
0
0
@@ -185,7 +182,6 @@
0
0
0
- 0
0
0
8
@@ -309,7 +305,7 @@
0x0
-
+
1
@@ -336,10 +332,10 @@
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
+
+ GD32E230, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
+
+ applications;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\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;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
@@ -352,12 +348,12 @@
0
0
0
- 4
+ 0
-
-
-
-
+
+
+
+
@@ -369,13 +365,13 @@
0
0x08000000
0x20000000
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -390,184 +386,201 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
+
+
+ backtrace.c
+ 1
+ ..\..\libcpu\arm\common\backtrace.c
+
+
+
+
+ showmem.c
+ 1
+ ..\..\libcpu\arm\common\showmem.c
+
+
div0.c
1
..\..\libcpu\arm\common\div0.c
-
- showmem.c
- 1
- ..\..\libcpu\arm\common\showmem.c
-
-
- backtrace.c
- 1
- ..\..\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
-
- 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
+ ringblk_buf.c
1
- ..\..\components\drivers\src\ringbuffer.c
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
completion.c
1
..\..\components\drivers\src\completion.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+
+
+ -std=c99
+
+
+
+
+
+
+
Drivers
@@ -577,21 +590,29 @@
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
@@ -607,11 +628,15 @@
1
..\..\components\finsh\shell.c
+
+
msh.c
1
..\..\components\finsh\msh.c
+
+
cmd.c
1
@@ -623,210 +648,259 @@
Kernel
- irq.c
+ components.c
1
- ..\..\src\irq.c
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
+ ..\..\src\components.c
+
+
timer.c
1
..\..\src\timer.c
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
- clock.c
- 1
- ..\..\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
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\src\ipc.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
mempool.c
1
..\..\src\mempool.c
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
device.c
1
..\..\src\device.c
-
-
- libc
- time.c
+ object.c
1
- ..\..\components\libc\compilers\common\time.c
+ ..\..\src\object.c
Libraries
+
+
+ gd32e230_gpio.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_gpio.c
+
+
gd32e230_dbg.c
1
Libraries\GD32E230_standard_peripheral\Source\gd32e230_dbg.c
-
- gd32e230_adc.c
- 1
- Libraries\GD32E230_standard_peripheral\Source\gd32e230_adc.c
-
-
- gd32e230_usart.c
- 1
- Libraries\GD32E230_standard_peripheral\Source\gd32e230_usart.c
-
-
- gd32e230_dma.c
- 1
- Libraries\GD32E230_standard_peripheral\Source\gd32e230_dma.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
+ gd32e230_dma.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
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_dma.c
+
+
gd32e230_rtc.c
1
Libraries\GD32E230_standard_peripheral\Source\gd32e230_rtc.c
+
+
- gd32e230_crc.c
+ gd32e230_i2c.c
1
- Libraries\GD32E230_standard_peripheral\Source\gd32e230_crc.c
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_i2c.c
+
+
+
+ gd32e230_fwdgt.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_fwdgt.c
+
+
+
+
+ gd32e230_adc.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_adc.c
+
+
+
+
+ gd32e230_usart.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_usart.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
+ startup_gd32e230.s
+ 2
+ Libraries\CMSIS\GD\GD32E230\Source\ARM\startup_gd32e230.s
+
+
gd32e230_fmc.c
1
Libraries\GD32E230_standard_peripheral\Source\gd32e230_fmc.c
-
-
- ::CMSIS
+
+
+ gd32e230_spi.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_spi.c
+
+
+
+
+ gd32e230_cmp.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_cmp.c
+
+
+
+
+ gd32e230_timer.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_timer.c
+
+
+
+
+ gd32e230_misc.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_misc.c
+
+
+
+
+ gd32e230_wwdgt.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_wwdgt.c
+
+
+
+
+ gd32e230_crc.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_crc.c
+
+
+
+
+ gd32e230_rcu.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_rcu.c
+
+
+
+
+ gd32e230_exti.c
+ 1
+ Libraries\GD32E230_standard_peripheral\Source\gd32e230_exti.c
+
+
-
-
+
-
+
-
+
-
+
-
diff --git a/bsp/gd32e230k-start/rtconfig.h b/bsp/gd32e230k-start/rtconfig.h
index f7cbb880f8..6a25ecef98 100644
--- a/bsp/gd32e230k-start/rtconfig.h
+++ b/bsp/gd32e230k-start/rtconfig.h
@@ -13,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -93,7 +94,6 @@
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -168,6 +168,9 @@
/* enhanced kernel services */
+/* POSIX extension functions */
+
+
/* acceleration: Assembly language or algorithmic acceleration packages */
diff --git a/bsp/gd32vf103v-eval/.config b/bsp/gd32vf103v-eval/.config
index 3264bc7298..d5396c2999 100644
--- a/bsp/gd32vf103v-eval/.config
+++ b/bsp/gd32vf103v-eval/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,10 +81,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
@@ -98,7 +98,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -118,13 +117,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
@@ -163,16 +160,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -181,7 +176,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -194,9 +188,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
@@ -206,32 +197,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
@@ -241,14 +226,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
@@ -283,17 +265,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
@@ -315,8 +292,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -351,7 +327,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -361,16 +337,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -382,15 +357,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
@@ -410,8 +382,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -455,7 +428,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
@@ -467,7 +439,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -475,14 +453,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
@@ -493,8 +469,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
@@ -524,11 +498,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -602,10 +574,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -619,7 +592,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
@@ -632,7 +604,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
@@ -646,8 +617,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -669,16 +639,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -689,7 +654,6 @@ CONFIG_SOC_GD32VF103V=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_USART=y
-# end of Onboard Peripheral Drivers
#
# On-chip Peripheral Drivers
@@ -697,11 +661,8 @@ CONFIG_BSP_USING_USART=y
CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
CONFIG_BSP_USING_UART0=y
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
-
CONFIG_SOC_GD32VF103=y
diff --git a/bsp/gd32vf103v-eval/board/board.c b/bsp/gd32vf103v-eval/board/board.c
index 3c03e3fc83..e8d61deec1 100644
--- a/bsp/gd32vf103v-eval/board/board.c
+++ b/bsp/gd32vf103v-eval/board/board.c
@@ -62,7 +62,7 @@ extern void riscv_clock_init(void);
#endif
/* Set the shell console output device */
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/gd32vf103v-eval/rtconfig.h b/bsp/gd32vf103v-eval/rtconfig.h
index 2fb30b2834..f6043414bc 100644
--- a/bsp/gd32vf103v-eval/rtconfig.h
+++ b/bsp/gd32vf103v-eval/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 */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,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 */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -93,12 +87,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -109,41 +100,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 */
@@ -154,83 +132,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -239,18 +197,15 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_USART
-/* end of Onboard Peripheral Drivers */
/* On-chip Peripheral Drivers */
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART0
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#define SOC_GD32VF103
#endif
diff --git a/bsp/hc32f460/.config b/bsp/hc32f460/.config
index 3fef2a6577..bb11c58ffb 100644
--- a/bsp/hc32f460/.config
+++ b/bsp/hc32f460/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,15 +81,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart4"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -103,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -123,7 +120,6 @@ 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
@@ -139,7 +135,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -178,17 +173,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -198,7 +189,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -211,9 +201,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
@@ -223,32 +210,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
@@ -258,16 +239,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -302,17 +279,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
@@ -334,8 +306,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -370,7 +341,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -380,16 +351,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -401,15 +371,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
@@ -429,8 +396,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -474,7 +442,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
@@ -486,7 +453,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -494,14 +467,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
@@ -512,8 +483,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_PERSIMMON is not set
@@ -544,11 +513,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -622,10 +589,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -639,7 +607,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
@@ -652,7 +619,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
@@ -666,8 +632,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -689,16 +654,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -714,5 +674,3 @@ CONFIG_BSP_USING_UART=y
# CONFIG_BSP_USING_UART2 is not set
# CONFIG_BSP_USING_UART3 is not set
CONFIG_BSP_USING_UART4=y
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/hc32f460/board/board.c b/bsp/hc32f460/board/board.c
index 6eb57a4cdc..2b04dff8c5 100644
--- a/bsp/hc32f460/board/board.c
+++ b/bsp/hc32f460/board/board.c
@@ -107,7 +107,7 @@ void rt_hw_board_init(void)
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/hc32f460/project.uvprojx b/bsp/hc32f460/project.uvprojx
index 557b2adc62..7fb1f60958 100644
--- a/bsp/hc32f460/project.uvprojx
+++ b/bsp/hc32f460/project.uvprojx
@@ -336,7 +336,7 @@
--diag_suppress=186,66
USE_DEVICE_DRIVER_LIB, __CLK_TCK=RT_TICK_PER_SECOND, HC32F460, __RTTHREAD__, __DEBUG, RT_USING_ARM_LIBC
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32F460\Include;Libraries\HC32F460_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32F460\Include;Libraries\HC32F460_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -387,6 +387,44 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
@@ -450,16 +488,9 @@
- ringblk_buf.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\workqueue.c
@@ -469,20 +500,6 @@
..\..\components\drivers\src\ringbuffer.c
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
-
-
-
-
- workqueue.c
- 1
- ..\..\components\drivers\src\workqueue.c
-
-
pipe.c
@@ -490,6 +507,27 @@
..\..\components\drivers\src\pipe.c
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
Drivers
@@ -689,23 +727,23 @@
Kernel
- idle.c
+ thread.c
1
- ..\..\src\idle.c
+ ..\..\src\thread.c
- timer.c
+ ipc.c
1
- ..\..\src\timer.c
+ ..\..\src\ipc.c
- mem.c
+ components.c
1
- ..\..\src\mem.c
+ ..\..\src\components.c
@@ -717,16 +755,23 @@
- mempool.c
+ idle.c
1
- ..\..\src\mempool.c
+ ..\..\src\idle.c
- ipc.c
+ kservice.c
1
- ..\..\src\ipc.c
+ ..\..\src\kservice.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
@@ -752,16 +797,9 @@
- thread.c
+ mempool.c
1
- ..\..\src\thread.c
-
-
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
+ ..\..\src\mempool.c
@@ -773,47 +811,9 @@
- components.c
+ timer.c
1
- ..\..\src\components.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\timer.c
diff --git a/bsp/hc32f460/rtconfig.h b/bsp/hc32f460/rtconfig.h
index ab3d03b8bd..f237905fe0 100644
--- a/bsp/hc32f460/rtconfig.h
+++ b/bsp/hc32f460/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart4"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -64,7 +61,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -81,7 +77,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -92,7 +87,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 4
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -104,13 +98,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -121,41 +111,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 */
@@ -166,83 +143,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -253,7 +210,5 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART4
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/hc32f4a0/.config b/bsp/hc32f4a0/.config
index 58c0f47bb0..ecf902fd42 100644
--- a/bsp/hc32f4a0/.config
+++ b/bsp/hc32f4a0/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,15 +81,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M4=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -103,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -123,7 +120,6 @@ 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
@@ -139,7 +135,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -178,17 +173,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -198,7 +189,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -211,9 +201,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
@@ -223,32 +210,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
@@ -258,16 +239,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -302,17 +279,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
@@ -334,8 +306,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -370,7 +341,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -380,16 +351,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -401,15 +371,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
@@ -429,8 +396,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -474,7 +442,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
@@ -486,7 +453,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -494,14 +467,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
@@ -512,8 +483,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_PERSIMMON is not set
@@ -544,11 +513,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -622,10 +589,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -639,7 +607,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
@@ -652,7 +619,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
@@ -666,8 +632,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -689,16 +654,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -732,9 +692,7 @@ CONFIG_BSP_UART1_TX_USING_DMA=y
# CONFIG_BSP_USING_PWM is not set
# CONFIG_BSP_USING_TIMER is not set
# CONFIG_BSP_USING_PULSE_ENCODER is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/hc32f4a0/board/board.c b/bsp/hc32f4a0/board/board.c
index de249f4b7c..b229ca4d4c 100644
--- a/bsp/hc32f4a0/board/board.c
+++ b/bsp/hc32f4a0/board/board.c
@@ -7,7 +7,7 @@
* Date Author Notes
* 2020-10-30 CDT first version
*/
-
+
#include
@@ -169,7 +169,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/hc32f4a0/project.uvprojx b/bsp/hc32f4a0/project.uvprojx
index 72504307e7..22064a3a5a 100644
--- a/bsp/hc32f4a0/project.uvprojx
+++ b/bsp/hc32f4a0/project.uvprojx
@@ -370,7 +370,7 @@
--diag_suppress=186,66
__CLK_TCK=RT_TICK_PER_SECOND, USE_DDL_DRIVER, HC32F4A0, __RTTHREAD__, __DEBUG, RT_USING_ARM_LIBC
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32F4A0\Include;Libraries\HC32F4A0_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32F4A0\Include;Libraries\HC32F4A0_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -420,6 +420,44 @@
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
CPU
@@ -445,16 +483,16 @@
- cpuport.c
- 1
- ..\..\libcpu\arm\cortex-m4\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 2
- ..\..\libcpu\arm\cortex-m4\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m4\cpuport.c
@@ -474,20 +512,6 @@
..\..\components\drivers\serial\serial.c
-
-
- pipe.c
- 1
- ..\..\components\drivers\src\pipe.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
-
waitqueue.c
@@ -495,6 +519,13 @@
..\..\components\drivers\src\waitqueue.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
ringbuffer.c
@@ -504,9 +535,16 @@
- workqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\workqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
@@ -518,9 +556,9 @@
- dataqueue.c
+ workqueue.c
1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\workqueue.c
@@ -729,72 +767,9 @@
Kernel
- components.c
+ thread.c
1
- ..\..\src\components.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- device.c
- 1
- ..\..\src\device.c
-
-
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
-
-
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
+ ..\..\src\thread.c
@@ -806,9 +781,72 @@
- thread.c
+ ipc.c
1
- ..\..\src\thread.c
+ ..\..\src\ipc.c
+
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
@@ -819,44 +857,6 @@
-
- libc
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
-
-
-
diff --git a/bsp/hc32f4a0/rtconfig.h b/bsp/hc32f4a0/rtconfig.h
index 677d02e0d2..a80db51ffa 100644
--- a/bsp/hc32f4a0/rtconfig.h
+++ b/bsp/hc32f4a0/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_M
@@ -64,7 +61,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -81,7 +77,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -92,7 +87,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -105,13 +99,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -122,41 +112,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 */
@@ -167,83 +144,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -258,10 +215,8 @@
#define BSP_USING_UART1
#define BSP_UART1_RX_USING_DMA
#define BSP_UART1_TX_USING_DMA
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/hc32l136/.config b/bsp/hc32l136/.config
index 3b865bf724..aaa80fe17a 100644
--- a/bsp/hc32l136/.config
+++ b/bsp/hc32l136/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,14 +81,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M0=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -102,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -122,13 +120,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
@@ -167,16 +163,15 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-# CONFIG_RT_LIBC_USING_TIME is not set
+# CONFIG_RT_USING_MODULE is not set
+CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# POSIX (Portable Operating System Interface) layer
@@ -184,7 +179,6 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -197,9 +191,6 @@ CONFIG_RT_USING_PIN=y
#
# 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
@@ -209,32 +200,26 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -244,16 +229,12 @@ CONFIG_RT_USING_PIN=y
# 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -288,17 +269,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -320,8 +296,7 @@ CONFIG_RT_USING_PIN=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -356,7 +331,7 @@ CONFIG_RT_USING_PIN=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -366,16 +341,15 @@ CONFIG_RT_USING_PIN=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -387,15 +361,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -415,8 +386,9 @@ CONFIG_RT_USING_PIN=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -460,7 +432,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -472,7 +443,13 @@ CONFIG_RT_USING_PIN=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -480,14 +457,12 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -498,8 +473,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -529,11 +502,9 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -607,10 +578,11 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -624,7 +596,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -637,7 +608,6 @@ CONFIG_RT_USING_PIN=y
# 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
@@ -651,8 +621,7 @@ CONFIG_RT_USING_PIN=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -674,16 +643,11 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -702,9 +666,7 @@ CONFIG_BSP_USING_UART=y
# CONFIG_BSP_USING_UART0 is not set
CONFIG_BSP_USING_UART1=y
# CONFIG_BSP_USING_I2C1 is not set
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/hc32l136/board/board.c b/bsp/hc32l136/board/board.c
index d39b09be9a..868a739bd4 100644
--- a/bsp/hc32l136/board/board.c
+++ b/bsp/hc32l136/board/board.c
@@ -7,7 +7,7 @@
* Date Author Notes
* 2021-08-19 pjq first version
*/
-
+
#include
@@ -29,7 +29,7 @@
*/
void rt_hw_board_clock_init(void)
{
- Sysctrl_SetRCHTrim(SysctrlRchFreq24MHz);
+ Sysctrl_SetRCHTrim(SysctrlRchFreq24MHz);
Sysctrl_ClkSourceEnable(SysctrlClkRCH, TRUE);
}
@@ -80,7 +80,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/hc32l136/project.ewp b/bsp/hc32l136/project.ewp
index 14fdaa1d43..375e6f17d6 100644
--- a/bsp/hc32l136/project.ewp
+++ b/bsp/hc32l136/project.ewp
@@ -180,6 +180,7 @@
CCDefines
+ RT_USING_DLIBC
USE_DDL_DRIVER
HC32L136
__DEBUG
@@ -314,12 +315,12 @@
CCIncludePath2
$PROJ_DIR$\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
- $PROJ_DIR$\Libraries\CMSIS\Include
$PROJ_DIR$\..\..\include
+ $PROJ_DIR$\Libraries\CMSIS\Include
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\Libraries\CMSIS\Device\HDSC\HC32L136\Include
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\Libraries\HC32L136_StdPeriph_Driver\inc
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
@@ -1164,6 +1165,7 @@
CCDefines
__DEBUG
+ RT_USING_DLIBC
USE_DDL_DRIVER
HC32L136
__DEBUG
@@ -1298,12 +1300,12 @@
CCIncludePath2
$PROJ_DIR$\..\..\components\libc\posix\ipc
- $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
- $PROJ_DIR$\Libraries\CMSIS\Include
$PROJ_DIR$\..\..\include
+ $PROJ_DIR$\Libraries\CMSIS\Include
+ $PROJ_DIR$\..\..\components\libc\compilers\common
$PROJ_DIR$\Libraries\CMSIS\Device\HDSC\HC32L136\Include
$PROJ_DIR$\drivers
- $PROJ_DIR$\..\..\components\libc\compilers\common
+ $PROJ_DIR$\..\..\components\libc\compilers\common\nogcc
$PROJ_DIR$\Libraries\HC32L136_StdPeriph_Driver\inc
$PROJ_DIR$\..\..\examples\utest\testcases\kernel
$PROJ_DIR$\.
@@ -1974,17 +1976,53 @@
$PROJ_DIR$\applications\main.c
+
+ Compiler
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\components\libc\compilers\dlib\environ.c
+
+
CPU
+
+ $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c
+
$PROJ_DIR$\..\..\libcpu\arm\common\div0.c
$PROJ_DIR$\..\..\libcpu\arm\common\showmem.c
-
- $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c
-
$PROJ_DIR$\..\..\libcpu\arm\cortex-m0\cpuport.c
@@ -2001,10 +2039,7 @@
$PROJ_DIR$\..\..\components\drivers\serial\serial.c
- $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
-
-
- $PROJ_DIR$\..\..\components\drivers\src\pipe.c
+ $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
$PROJ_DIR$\..\..\components\drivers\src\ringblk_buf.c
@@ -2013,13 +2048,16 @@
$PROJ_DIR$\..\..\components\drivers\src\workqueue.c
- $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c
+ $PROJ_DIR$\..\..\components\drivers\src\pipe.c
$PROJ_DIR$\..\..\components\drivers\src\completion.c
- $PROJ_DIR$\..\..\components\drivers\src\waitqueue.c
+ $PROJ_DIR$\..\..\components\drivers\src\dataqueue.c
+
+
+ $PROJ_DIR$\..\..\components\drivers\src\ringbuffer.c
@@ -2091,47 +2129,44 @@
Kernel
- $PROJ_DIR$\..\..\src\scheduler.c
-
-
- $PROJ_DIR$\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\src\kservice.c
-
-
- $PROJ_DIR$\..\..\src\thread.c
+ $PROJ_DIR$\..\..\src\ipc.c
$PROJ_DIR$\..\..\src\idle.c
- $PROJ_DIR$\..\..\src\mem.c
-
-
- $PROJ_DIR$\..\..\src\ipc.c
+ $PROJ_DIR$\..\..\src\object.c
$PROJ_DIR$\..\..\src\irq.c
- $PROJ_DIR$\..\..\src\device.c
+ $PROJ_DIR$\..\..\src\thread.c
- $PROJ_DIR$\..\..\src\object.c
+ $PROJ_DIR$\..\..\src\kservice.c
- $PROJ_DIR$\..\..\src\timer.c
+ $PROJ_DIR$\..\..\src\clock.c
+
+
+ $PROJ_DIR$\..\..\src\mem.c
$PROJ_DIR$\..\..\src\components.c
- $PROJ_DIR$\..\..\src\clock.c
+ $PROJ_DIR$\..\..\src\scheduler.c
+
+
+ $PROJ_DIR$\..\..\src\timer.c
+
+
+ $PROJ_DIR$\..\..\src\mempool.c
+
+
+ $PROJ_DIR$\..\..\src\device.c
-
-
- libc
POSIX
diff --git a/bsp/hc32l136/project.uvprojx b/bsp/hc32l136/project.uvprojx
index 9031bcb3e9..b1b19873f5 100644
--- a/bsp/hc32l136/project.uvprojx
+++ b/bsp/hc32l136/project.uvprojx
@@ -334,9 +334,9 @@
0
--diag_suppress=186,66
- USE_DDL_DRIVER, __DEBUG, __RTTHREAD__, HC32L136, __CLK_TCK=RT_TICK_PER_SECOND
+ HC32L136, __CLK_TCK=RT_TICK_PER_SECOND, USE_DDL_DRIVER, __RTTHREAD__, __DEBUG, RT_USING_ARM_LIBC
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32L136\Include;Libraries\HC32L136_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32L136\Include;Libraries\HC32L136_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -388,14 +388,45 @@
- CPU
+ Compiler
- div0.c
+ syscall_mem.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ CPU
backtrace.c
@@ -412,9 +443,9 @@
- cpuport.c
+ div0.c
1
- ..\..\libcpu\arm\cortex-m0\cpuport.c
+ ..\..\libcpu\arm\common\div0.c
@@ -424,6 +455,13 @@
..\..\libcpu\arm\cortex-m0\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m0\cpuport.c
+
+
DeviceDrivers
@@ -441,6 +479,27 @@
..\..\components\drivers\serial\serial.c
+
+
+ dataqueue.c
+ 1
+ ..\..\components\drivers\src\dataqueue.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
+
+
workqueue.c
@@ -448,6 +507,13 @@
..\..\components\drivers\src\workqueue.c
+
+
+ pipe.c
+ 1
+ ..\..\components\drivers\src\pipe.c
+
+
ringbuffer.c
@@ -462,34 +528,6 @@
..\..\components\drivers\src\ringblk_buf.c
-
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
-
-
-
- pipe.c
- 1
- ..\..\components\drivers\src\pipe.c
-
-
-
-
- completion.c
- 1
- ..\..\components\drivers\src\completion.c
-
-
-
-
- dataqueue.c
- 1
- ..\..\components\drivers\src\dataqueue.c
-
-
Drivers
@@ -635,55 +673,6 @@
Kernel
-
-
- mem.c
- 1
- ..\..\src\mem.c
-
-
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
-
-
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
-
-
- object.c
- 1
- ..\..\src\object.c
-
-
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
-
-
-
- mempool.c
- 1
- ..\..\src\mempool.c
-
-
-
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
thread.c
@@ -691,27 +680,6 @@
..\..\src\thread.c
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- irq.c
- 1
- ..\..\src\irq.c
-
-
device.c
@@ -719,6 +687,41 @@
..\..\src\device.c
+
+
+ object.c
+ 1
+ ..\..\src\object.c
+
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\src\ipc.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
kservice.c
@@ -726,6 +729,41 @@
..\..\src\kservice.c
+
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\src\clock.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\src\timer.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
+
+
diff --git a/bsp/hc32l136/rtconfig.h b/bsp/hc32l136/rtconfig.h
index 8d8bb1932e..fc0661fb8c 100644
--- a/bsp/hc32l136/rtconfig.h
+++ b/bsp/hc32l136/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M0
@@ -63,7 +60,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -80,11 +76,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 */
@@ -96,11 +90,10 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
+#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -110,41 +103,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 */
@@ -155,83 +135,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -244,10 +204,8 @@
#define BSP_USING_GPIO
#define BSP_USING_UART
#define BSP_USING_UART1
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/hc32l196/.config b/bsp/hc32l196/.config
index 253963913e..4424b3f34d 100644
--- a/bsp/hc32l196/.config
+++ b/bsp/hc32l196/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -28,8 +33,6 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
# 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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -52,7 +55,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
@@ -69,7 +71,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
@@ -80,14 +81,12 @@ 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_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M0=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -102,7 +101,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -122,13 +120,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
@@ -167,17 +163,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -187,7 +179,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -200,9 +191,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
@@ -212,32 +200,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
@@ -247,16 +229,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -291,17 +269,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
@@ -323,8 +296,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -359,7 +331,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -369,16 +341,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -390,15 +361,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
@@ -418,8 +386,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -463,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
@@ -475,7 +443,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -483,14 +457,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
@@ -501,8 +473,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
@@ -532,11 +502,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -610,10 +578,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -627,7 +596,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
@@ -640,7 +608,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
@@ -654,8 +621,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -677,16 +643,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -704,9 +665,7 @@ CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART=y
CONFIG_BSP_USING_UART0=y
CONFIG_BSP_USING_UART1=y
-# end of On-chip Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/hc32l196/board/board.c b/bsp/hc32l196/board/board.c
index a60000b1ae..3d9309e0af 100644
--- a/bsp/hc32l196/board/board.c
+++ b/bsp/hc32l196/board/board.c
@@ -105,7 +105,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/hc32l196/project.uvprojx b/bsp/hc32l196/project.uvprojx
index f31aa7f3c9..f2d93e21d1 100644
--- a/bsp/hc32l196/project.uvprojx
+++ b/bsp/hc32l196/project.uvprojx
@@ -327,9 +327,9 @@
0
- RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32L196\Include;Libraries\HC32L196_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
+ applications;.;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\nogcc;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;board;drivers;..\..\components\finsh;Libraries\CMSIS\Include;Libraries\CMSIS\Device\HDSC\HC32L196\Include;Libraries\HC32L196_StdPeriph_Driver\inc;.;..\..\include;..\..\components\libc\posix\io\poll;..\..\components\libc\posix\ipc;..\..\examples\utest\testcases\kernel
@@ -379,13 +379,51 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\components\libc\compilers\common\stdlib.c
+
+
+
CPU
- div0.c
+ showmem.c
1
- ..\..\libcpu\arm\common\div0.c
+ ..\..\libcpu\arm\common\showmem.c
@@ -397,16 +435,9 @@
- showmem.c
+ div0.c
1
- ..\..\libcpu\arm\common\showmem.c
-
-
-
-
- cpuport.c
- 1
- ..\..\libcpu\arm\cortex-m0\cpuport.c
+ ..\..\libcpu\arm\common\div0.c
@@ -416,6 +447,13 @@
..\..\libcpu\arm\cortex-m0\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m0\cpuport.c
+
+
DeviceDrivers
@@ -435,16 +473,16 @@
- dataqueue.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\dataqueue.c
+ ..\..\components\drivers\src\ringblk_buf.c
- completion.c
+ dataqueue.c
1
- ..\..\components\drivers\src\completion.c
+ ..\..\components\drivers\src\dataqueue.c
@@ -461,13 +499,6 @@
..\..\components\drivers\src\pipe.c
-
-
- workqueue.c
- 1
- ..\..\components\drivers\src\workqueue.c
-
-
waitqueue.c
@@ -477,9 +508,16 @@
- ringblk_buf.c
+ workqueue.c
1
- ..\..\components\drivers\src\ringblk_buf.c
+ ..\..\components\drivers\src\workqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\components\drivers\src\completion.c
@@ -601,23 +639,9 @@
Kernel
- object.c
+ device.c
1
- ..\..\src\object.c
-
-
-
-
- clock.c
- 1
- ..\..\src\clock.c
-
-
-
-
- ipc.c
- 1
- ..\..\src\ipc.c
+ ..\..\src\device.c
@@ -629,16 +653,9 @@
- idle.c
+ timer.c
1
- ..\..\src\idle.c
-
-
-
-
- components.c
- 1
- ..\..\src\components.c
+ ..\..\src\timer.c
@@ -648,6 +665,13 @@
..\..\src\mempool.c
+
+
+ irq.c
+ 1
+ ..\..\src\irq.c
+
+
thread.c
@@ -657,23 +681,23 @@
- scheduler.c
+ clock.c
1
- ..\..\src\scheduler.c
+ ..\..\src\clock.c
- device.c
+ object.c
1
- ..\..\src\device.c
+ ..\..\src\object.c
- timer.c
+ idle.c
1
- ..\..\src\timer.c
+ ..\..\src\idle.c
@@ -685,47 +709,23 @@
- irq.c
+ scheduler.c
1
- ..\..\src\irq.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\src\scheduler.c
- libc_syms.c
+ components.c
1
- ..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\src\components.c
- mem_std.c
+ ipc.c
1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- time.c
- 1
- ..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\components\libc\compilers\common\stdlib.c
+ ..\..\src\ipc.c
diff --git a/bsp/hc32l196/rtconfig.h b/bsp/hc32l196/rtconfig.h
index 8f874413be..91c94e2335 100644
--- a/bsp/hc32l196/rtconfig.h
+++ b/bsp/hc32l196/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,6 +13,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
@@ -21,7 +23,6 @@
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -31,7 +32,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,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 */
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M0
@@ -63,7 +60,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -80,11 +76,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,13 +91,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -114,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 */
@@ -159,83 +136,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -249,10 +206,8 @@
#define BSP_USING_UART
#define BSP_USING_UART0
#define BSP_USING_UART1
-/* end of On-chip Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/hifive1/.config b/bsp/hifive1/.config
index 58b3ddfdc9..1d81d9a6e7 100644
--- a/bsp/hifive1/.config
+++ b/bsp/hifive1/.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=32
+# 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=256
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=1024
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=1024
# 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 +53,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 +69,6 @@ CONFIG_RT_USING_SMALL_MEM_AS_HEAP=y
CONFIG_RT_USING_MEMTRACE=y
# CONFIG_RT_USING_HEAP_ISR is not set
CONFIG_RT_USING_HEAP=y
-# end of Memory Management
#
# Kernel Device Object
@@ -78,10 +79,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="dusart"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=85
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,13 +115,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
@@ -161,16 +158,14 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -179,7 +174,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -192,9 +186,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
@@ -204,32 +195,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
@@ -239,14 +224,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
@@ -281,17 +263,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
@@ -313,8 +290,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -349,7 +325,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -359,16 +335,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -380,15 +355,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
@@ -408,8 +380,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -453,7 +426,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
@@ -465,7 +437,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -473,14 +451,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
@@ -491,8 +467,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
@@ -522,11 +496,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -600,10 +572,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -617,7 +590,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
@@ -630,7 +602,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
@@ -644,8 +615,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -667,15 +637,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FE310=y
diff --git a/bsp/hifive1/drivers/board.c b/bsp/hifive1/drivers/board.c
index 273901b93e..8da4697bc9 100644
--- a/bsp/hifive1/drivers/board.c
+++ b/bsp/hifive1/drivers/board.c
@@ -69,7 +69,7 @@ void rt_hw_board_init(void)
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/hifive1/rtconfig.h b/bsp/hifive1/rtconfig.h
index 97d6d35424..79ed03164a 100644
--- a/bsp/hifive1/rtconfig.h
+++ b/bsp/hifive1/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 1024
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -38,7 +38,6 @@
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_MEMTRACE
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -46,9 +45,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "dusart"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -59,7 +56,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -76,11 +72,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 */
@@ -92,12 +86,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -108,41 +99,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 */
@@ -153,83 +131,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FE310
#endif
diff --git a/bsp/hk32/hk32f030c8-mini/.config b/bsp/hk32/hk32f030c8-mini/.config
index 4116cdf358..4d99b3ed88 100644
--- a/bsp/hk32/hk32f030c8-mini/.config
+++ b/bsp/hk32/hk32f030c8-mini/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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,14 +79,12 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_ARM_CORTEX_M=y
CONFIG_ARCH_ARM_CORTEX_M0=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -100,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -120,13 +118,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
@@ -168,17 +164,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -188,7 +180,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -201,9 +192,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
@@ -213,32 +201,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
@@ -248,16 +230,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -292,17 +270,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
@@ -324,8 +297,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -360,7 +332,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -370,16 +342,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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,15 +362,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
@@ -419,8 +387,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -464,7 +433,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
@@ -476,7 +444,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -484,14 +458,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
@@ -502,8 +474,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
@@ -533,11 +503,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -611,10 +579,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -628,7 +597,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
@@ -641,7 +609,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
@@ -655,8 +622,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -678,17 +644,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_FAMILY_HK32=y
CONFIG_SOC_SERIES_HK32F0XX=y
@@ -701,7 +661,6 @@ CONFIG_SOC_HK32F030C8T6=y
# Onboard Peripheral Drivers
#
CONFIG_BSP_USING_SERIAL=y
-# end of Onboard Peripheral Drivers
#
# On-chip Peripheral Drivers
@@ -723,5 +682,3 @@ CONFIG_BSP_USING_I2C2=y
CONFIG_BSP_I2C2_SCL_PIN=26
CONFIG_BSP_I2C2_SDA_PIN=27
# CONFIG_BSP_USING_ADC is not set
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/hk32/hk32f030c8-mini/board/board.c b/bsp/hk32/hk32f030c8-mini/board/board.c
index 8d3aeaf117..cee3b89ddf 100644
--- a/bsp/hk32/hk32f030c8-mini/board/board.c
+++ b/bsp/hk32/hk32f030c8-mini/board/board.c
@@ -59,7 +59,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
diff --git a/bsp/hk32/hk32f030c8-mini/project.ewp b/bsp/hk32/hk32f030c8-mini/project.ewp
index 020a8e4007..5dd54725fb 100644
--- a/bsp/hk32/hk32f030c8-mini/project.ewp
+++ b/bsp/hk32/hk32f030c8-mini/project.ewp
@@ -219,9 +219,9 @@
CCDefines
+ RT_USING_DLIBC
HK32F030x8
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -1259,9 +1259,9 @@
CCDefines
+ RT_USING_DLIBC
HK32F030x8
__RTTHREAD__
- RT_USING_DLIBC
USE_STDPERIPH_DRIVER
@@ -2086,6 +2086,42 @@
$PROJ_DIR$\applications\main.c
+
+ Compiler
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
CPU
@@ -2124,24 +2160,24 @@
$PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+
Drivers
@@ -2182,76 +2218,40 @@
Kernel
- $PROJ_DIR$\..\..\..\src\clock.c
-
-
- $PROJ_DIR$\..\..\..\src\object.c
-
-
- $PROJ_DIR$\..\..\..\src\scheduler.c
+ $PROJ_DIR$\..\..\..\src\idle.c
$PROJ_DIR$\..\..\..\src\ipc.c
-
- $PROJ_DIR$\..\..\..\src\components.c
-
$PROJ_DIR$\..\..\..\src\irq.c
- $PROJ_DIR$\..\..\..\src\thread.c
-
-
- $PROJ_DIR$\..\..\..\src\device.c
-
-
- $PROJ_DIR$\..\..\..\src\idle.c
+ $PROJ_DIR$\..\..\..\src\timer.c
$PROJ_DIR$\..\..\..\src\mem.c
+
+ $PROJ_DIR$\..\..\..\src\components.c
+
+
+ $PROJ_DIR$\..\..\..\src\object.c
+
+
+ $PROJ_DIR$\..\..\..\src\device.c
+
+
+ $PROJ_DIR$\..\..\..\src\thread.c
+
+
+ $PROJ_DIR$\..\..\..\src\clock.c
+
$PROJ_DIR$\..\..\..\src\kservice.c
- $PROJ_DIR$\..\..\..\src\timer.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+ $PROJ_DIR$\..\..\..\src\scheduler.c
diff --git a/bsp/hk32/hk32f030c8-mini/project.uvproj b/bsp/hk32/hk32f030c8-mini/project.uvproj
index 4127f310ec..7031324372 100644
--- a/bsp/hk32/hk32f030c8-mini/project.uvproj
+++ b/bsp/hk32/hk32f030c8-mini/project.uvproj
@@ -357,9 +357,9 @@
0
- HK32F030x8, USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ HK32F030x8, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\HK32F0xx\Include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\Core;..\libraries\HK32F0xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\HK32F0xx\Include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\Core;..\libraries\HK32F0xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -410,14 +410,45 @@
- CPU
+ Compiler
- showmem.c
+ syscall_mem.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ CPU
div0.c
@@ -425,6 +456,13 @@
..\..\..\libcpu\arm\common\div0.c
+
+
+ showmem.c
+ 1
+ ..\..\..\libcpu\arm\common\showmem.c
+
+
backtrace.c
@@ -434,16 +472,16 @@
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m0\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m0\cpuport.c
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m0\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m0\context_rvds.S
@@ -493,16 +531,16 @@
- completion.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\waitqueue.c
- ringbuffer.c
+ completion.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\completion.c
@@ -512,13 +550,6 @@
..\..\..\components\drivers\src\workqueue.c
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
dataqueue.c
@@ -528,9 +559,16 @@
- waitqueue.c
+ ringblk_buf.c
1
- ..\..\..\components\drivers\src\waitqueue.c
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
@@ -614,16 +652,23 @@
Kernel
- kservice.c
+ object.c
1
- ..\..\..\src\kservice.c
+ ..\..\..\src\object.c
- components.c
+ mem.c
1
- ..\..\..\src\components.c
+ ..\..\..\src\mem.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
@@ -642,23 +687,9 @@
- clock.c
+ thread.c
1
- ..\..\..\src\clock.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\thread.c
@@ -668,27 +699,6 @@
..\..\..\src\irq.c
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
scheduler.c
@@ -696,42 +706,32 @@
..\..\..\src\scheduler.c
-
-
- libc
- libc_syms.c
+ clock.c
1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\clock.c
- syscalls.c
+ components.c
1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\..\src\components.c
- mem_std.c
+ kservice.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\..\src\kservice.c
- stdlib.c
+ ipc.c
1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\ipc.c
diff --git a/bsp/hk32/hk32f030c8-mini/project.uvprojx b/bsp/hk32/hk32f030c8-mini/project.uvprojx
index 15ad656b6c..bdd78263c2 100644
--- a/bsp/hk32/hk32f030c8-mini/project.uvprojx
+++ b/bsp/hk32/hk32f030c8-mini/project.uvprojx
@@ -334,9 +334,9 @@
0
- HK32F030x8, USE_STDPERIPH_DRIVER, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
+ HK32F030x8, USE_STDPERIPH_DRIVER, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND
- applications;.;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\HK32F0xx\Include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\Core;..\libraries\HK32F0xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;.;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\msp;..\libraries\rt_drivers;..\..\..\components\finsh;.;..\..\..\include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\HK32F0xx\Include;..\libraries\HK32F0xx_StdPeriph_Driver\CMSIS\Core;..\libraries\HK32F0xx_StdPeriph_Driver\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -387,6 +387,44 @@
+
+ Compiler
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
@@ -412,16 +450,16 @@
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m0\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m0\cpuport.c
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m0\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m0\context_rvds.S
@@ -462,13 +500,6 @@
..\..\..\components\drivers\serial\serial.c
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
-
-
ringbuffer.c
@@ -476,20 +507,6 @@
..\..\..\components\drivers\src\ringbuffer.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
dataqueue.c
@@ -499,9 +516,9 @@
- completion.c
+ pipe.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\pipe.c
@@ -511,6 +528,27 @@
..\..\..\components\drivers\src\ringblk_buf.c
+
+
+ workqueue.c
+ 1
+ ..\..\..\components\drivers\src\workqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\..\components\drivers\src\waitqueue.c
+
+
Drivers
@@ -590,20 +628,6 @@
Kernel
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
idle.c
@@ -611,55 +635,6 @@
..\..\..\src\idle.c
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- mem.c
- 1
- ..\..\..\src\mem.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
components.c
@@ -667,6 +642,55 @@
..\..\..\src\components.c
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
+
+
+ clock.c
+ 1
+ ..\..\..\src\clock.c
+
+
+
+
+ timer.c
+ 1
+ ..\..\..\src\timer.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
object.c
@@ -674,42 +698,18 @@
..\..\..\src\object.c
-
-
- libc
- libc_syms.c
+ mem.c
1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\mem.c
- mem_std.c
+ scheduler.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\scheduler.c
diff --git a/bsp/hk32/hk32f030c8-mini/rtconfig.h b/bsp/hk32/hk32f030c8-mini/rtconfig.h
index 207d836818..52e38fb713 100644
--- a/bsp/hk32/hk32f030c8-mini/rtconfig.h
+++ b/bsp/hk32/hk32f030c8-mini/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,14 +30,12 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
#define RT_USING_SMALL_MEM
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -44,9 +43,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M0
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,41 +102,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 */
@@ -157,83 +134,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_FAMILY_HK32
#define SOC_SERIES_HK32F0XX
@@ -244,7 +201,6 @@
/* Onboard Peripheral Drivers */
#define BSP_USING_SERIAL
-/* end of Onboard Peripheral Drivers */
/* On-chip Peripheral Drivers */
@@ -258,7 +214,5 @@
#define BSP_USING_I2C2
#define BSP_I2C2_SCL_PIN 26
#define BSP_I2C2_SDA_PIN 27
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imx6sx/cortex-a9/.config b/bsp/imx6sx/cortex-a9/.config
index 900cf636df..6cf3583151 100644
--- a/bsp/imx6sx/cortex-a9/.config
+++ b/bsp/imx6sx/cortex-a9/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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 +69,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 +79,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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 +96,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -116,7 +115,6 @@ 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
@@ -133,7 +131,6 @@ CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
# CONFIG_RT_USING_DFS_NFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -174,17 +171,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -194,7 +187,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -207,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
@@ -225,11 +214,8 @@ CONFIG_SAL_INTERNET_CHECK=y
# protocol stack implement
#
CONFIG_SAL_USING_LWIP=y
-# end of protocol stack implement
-
# CONFIG_SAL_USING_POSIX is not set
CONFIG_SAL_SOCKETS_NUM=16
-# end of Socket abstraction layer
#
# Network interface device
@@ -242,7 +228,7 @@ CONFIG_NETDEV_USING_AUTO_DEFAULT=y
# CONFIG_NETDEV_USING_IPV6 is not set
CONFIG_NETDEV_IPV4=1
CONFIG_NETDEV_IPV6=0
-# end of Network interface device
+# CONFIG_NETDEV_IPV6_SCOPES is not set
#
# light weight TCP/IP stack
@@ -268,8 +254,6 @@ CONFIG_IP_SOF_BROADCAST_RECV=1
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
-# end of Static IPv4 Address
-
CONFIG_RT_LWIP_UDP=y
CONFIG_RT_LWIP_TCP=y
CONFIG_RT_LWIP_RAW=y
@@ -304,22 +288,17 @@ CONFIG_LWIP_NETIF_LOOPBACK=0
# CONFIG_RT_LWIP_USING_HW_CHECKSUM is not set
CONFIG_RT_LWIP_USING_PING=y
# CONFIG_RT_LWIP_DEBUG is not set
-# end of light weight TCP/IP stack
#
# AT commands
#
# CONFIG_RT_USING_AT is not set
-# end of AT commands
-
# CONFIG_LWIP_USING_DHCPD is not set
-# end of Network
#
# VBUS(Virtual Software BUS)
#
# CONFIG_RT_USING_VBUS is not set
-# end of VBUS(Virtual Software BUS)
#
# Utilities
@@ -329,14 +308,11 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -371,17 +347,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -403,8 +374,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -439,7 +409,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -449,16 +419,15 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -470,15 +439,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -498,8 +464,9 @@ CONFIG_RT_LWIP_USING_PING=y
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -543,7 +510,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -555,7 +521,13 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -563,14 +535,12 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -581,8 +551,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -612,11 +580,9 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -690,10 +656,11 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -707,7 +674,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -720,7 +686,6 @@ CONFIG_RT_LWIP_USING_PING=y
# 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
@@ -734,8 +699,7 @@ CONFIG_RT_LWIP_USING_PING=y
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -757,16 +721,10 @@ CONFIG_RT_LWIP_USING_PING=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_MCIMX6X4=y
CONFIG_RT_USING_UART1=y
diff --git a/bsp/imx6sx/cortex-a9/rtconfig.h b/bsp/imx6sx/cortex-a9/rtconfig.h
index c8766fe84a..4990f78084 100644
--- a/bsp/imx6sx/cortex-a9/rtconfig.h
+++ b/bsp/imx6sx/cortex-a9/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -58,7 +55,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -75,7 +71,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -86,7 +81,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -102,13 +96,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -119,10 +109,6 @@
/* 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 */
@@ -133,9 +119,7 @@
/* protocol stack implement */
#define SAL_USING_LWIP
-/* end of protocol stack implement */
#define SAL_SOCKETS_NUM 16
-/* end of Socket abstraction layer */
/* Network interface device */
@@ -146,7 +130,6 @@
#define NETDEV_USING_AUTO_DEFAULT
#define NETDEV_IPV4 1
#define NETDEV_IPV6 0
-/* end of Network interface device */
/* light weight TCP/IP stack */
@@ -165,7 +148,6 @@
#define RT_LWIP_IPADDR "192.168.1.30"
#define RT_LWIP_GWADDR "192.168.1.1"
#define RT_LWIP_MSKADDR "255.255.255.0"
-/* end of Static IPv4 Address */
#define RT_LWIP_UDP
#define RT_LWIP_TCP
#define RT_LWIP_RAW
@@ -192,25 +174,18 @@
#define LWIP_SO_LINGER 0
#define LWIP_NETIF_LOOPBACK 0
#define RT_LWIP_USING_PING
-/* 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 */
@@ -221,83 +196,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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_MCIMX6X4
#define RT_USING_UART1
diff --git a/bsp/imx6ul/.config b/bsp/imx6ul/.config
index caf903a593..31bf733a28 100644
--- a/bsp/imx6ul/.config
+++ b/bsp/imx6ul/.config
@@ -1,10 +1,14 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Configuration
+#
CONFIG_BOARD_IMX6UL=y
#
# 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
@@ -15,6 +19,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -27,8 +32,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 is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
@@ -51,7 +54,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
@@ -68,7 +70,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
@@ -79,28 +80,27 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# end of Kernel Device Object
-
CONFIG_RT_VER_NUM=0x40100
-# end of RT-Thread Kernel
-
CONFIG_ARCH_ARM=y
CONFIG_RT_USING_CPU_FFS=y
CONFIG_ARCH_ARM_CORTEX_A=y
+# CONFIG_RT_SMP_AUTO_BOOT is not set
CONFIG_RT_USING_GIC_V2=y
+# CONFIG_RT_USING_GIC_V3 is not set
CONFIG_ARCH_ARM_CORTEX_A7=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
#
CONFIG_RT_USING_COMPONENTS_INIT=y
+# CONFIG_RT_USING_USER_MAIN is not set
# CONFIG_RT_USING_LEGACY is not set
#
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -120,7 +120,6 @@ 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
@@ -136,7 +135,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -175,17 +173,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -195,7 +189,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -208,9 +201,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
@@ -220,32 +210,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
@@ -255,16 +239,12 @@ 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
-
# CONFIG_RT_USING_LWP is not set
-# end of RT-Thread Components
#
# RT-Thread Utestcases
#
# CONFIG_RT_USING_UTESTCASES is not set
-# end of RT-Thread Utestcases
#
# RT-Thread online packages
@@ -299,17 +279,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
@@ -331,8 +306,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -367,7 +341,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -377,16 +351,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -398,15 +371,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
@@ -426,8 +396,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -471,7 +442,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
@@ -483,7 +453,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -491,14 +467,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
@@ -509,8 +483,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_PERSIMMON is not set
@@ -541,11 +513,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -619,10 +589,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -636,7 +607,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
@@ -649,7 +619,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
@@ -663,8 +632,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -686,16 +654,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_RT_USING_UART1=y
CONFIG_SOC_MCIMX6X4=y
diff --git a/bsp/imx6ul/rtconfig.h b/bsp/imx6ul/rtconfig.h
index 539087c576..dfb151ed0e 100644
--- a/bsp/imx6ul/rtconfig.h
+++ b/bsp/imx6ul/rtconfig.h
@@ -1,7 +1,9 @@
#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 */
+
#define BOARD_IMX6UL
/* RT-Thread Kernel */
@@ -13,13 +15,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
/* Inter-Thread communication */
@@ -29,7 +31,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +38,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 +45,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_A
@@ -60,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,7 +74,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -88,7 +84,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -101,13 +96,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -118,41 +109,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 */
@@ -163,83 +141,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 RT_USING_UART1
#define SOC_MCIMX6X4
diff --git a/bsp/imxrt/imxrt1052-atk-commander/.config b/bsp/imxrt/imxrt1052-atk-commander/.config
index 98ca19debb..15dd203241 100644
--- a/bsp/imxrt/imxrt1052-atk-commander/.config
+++ b/bsp/imxrt/imxrt1052-atk-commander/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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
@@ -70,7 +72,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -81,10 +82,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -99,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -119,7 +118,6 @@ 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
@@ -135,7 +133,6 @@ CONFIG_DFS_FD_MAX=16
CONFIG_RT_USING_DFS_DEVFS=y
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -184,17 +181,13 @@ 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -204,7 +197,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -217,9 +209,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
@@ -229,32 +218,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
@@ -264,14 +247,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
@@ -306,17 +286,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
@@ -338,8 +313,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -374,7 +348,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -384,16 +358,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -405,15 +378,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
@@ -433,8 +403,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -478,7 +449,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
@@ -490,7 +460,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -498,14 +474,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
@@ -516,8 +490,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
@@ -547,11 +519,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -625,10 +595,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -642,7 +613,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
@@ -655,7 +625,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
@@ -669,8 +638,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -692,16 +660,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -725,7 +688,6 @@ CONFIG_BSP_LPUART4_TX_DMA_CHANNEL=3
CONFIG_BSP_USING_SPI=y
CONFIG_BSP_USING_SPI3=y
# CONFIG_BSP_SPI3_USING_DMA is not set
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
@@ -733,5 +695,3 @@ CONFIG_BSP_USING_SPI3=y
# CONFIG_BSP_USING_SPI_FLASH is not set
# CONFIG_BSP_USING_SDRAM is not set
# CONFIG_BSP_USING_USB_DEVICE is not set
-# end of Onboard Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/imxrt/imxrt1052-atk-commander/board/board.c b/bsp/imxrt/imxrt1052-atk-commander/board/board.c
index e50e511070..c93ea67ea4 100644
--- a/bsp/imxrt/imxrt1052-atk-commander/board/board.c
+++ b/bsp/imxrt/imxrt1052-atk-commander/board/board.c
@@ -131,7 +131,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/imxrt1052-atk-commander/project.uvprojx b/bsp/imxrt/imxrt1052-atk-commander/project.uvprojx
index 78623ffcbc..223b973450 100644
--- a/bsp/imxrt/imxrt1052-atk-commander/project.uvprojx
+++ b/bsp/imxrt/imxrt1052-atk-commander/project.uvprojx
@@ -333,7 +333,7 @@
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
SKIP_SYSCLK_INIT, CPU_MIMXRT1052CVL5B, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM, RT_USING_ARM_LIBC
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\spi;..\..\..\components\drivers\include;..\..\..\components\drivers\spi\sfud\inc;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\dfs\include;..\..\..\components\dfs\filesystems\devfs;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\spi;..\..\..\components\drivers\include;..\..\..\components\drivers\spi\sfud\inc;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\dfs\include;..\..\..\components\dfs\filesystems\devfs;..\..\..\components\finsh;.;..\..\..\include;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -376,13 +376,6 @@
Applications
-
-
- main.c
- 1
- applications\main.c
-
-
mnt.c
@@ -390,16 +383,54 @@
applications\mnt.c
+
+
+ main.c
+ 1
+ applications\main.c
+
+
+
+
+ Compiler
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
CPU
-
-
- div0.c
- 1
- ..\..\..\libcpu\arm\common\div0.c
-
-
backtrace.c
@@ -414,6 +445,13 @@
..\..\..\libcpu\arm\common\showmem.c
+
+
+ div0.c
+ 1
+ ..\..\..\libcpu\arm\common\div0.c
+
+
context_rvds.S
@@ -423,16 +461,16 @@
- cpuport.c
+ cpu_cache.c
1
- ..\..\..\libcpu\arm\cortex-m7\cpuport.c
+ ..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
- cpu_cache.c
+ cpuport.c
1
- ..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
+ ..\..\..\libcpu\arm\cortex-m7\cpuport.c
@@ -494,13 +532,6 @@
..\..\..\components\drivers\spi\spi_dev.c
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
workqueue.c
@@ -508,27 +539,6 @@
..\..\..\components\drivers\src\workqueue.c
-
-
- completion.c
- 1
- ..\..\..\components\drivers\src\completion.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
-
-
ringbuffer.c
@@ -536,6 +546,27 @@
..\..\..\components\drivers\src\ringbuffer.c
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
+
+
waitqueue.c
@@ -543,6 +574,13 @@
..\..\..\components\drivers\src\waitqueue.c
+
+
+ pipe.c
+ 1
+ ..\..\..\components\drivers\src\pipe.c
+
+
@@ -672,6 +710,13 @@
Kernel
+
+
+ object.c
+ 1
+ ..\..\..\src\object.c
+
+
components.c
@@ -679,6 +724,13 @@
..\..\..\src\components.c
+
+
+ kservice.c
+ 1
+ ..\..\..\src\kservice.c
+
+
timer.c
@@ -686,6 +738,13 @@
..\..\..\src\timer.c
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
scheduler.c
@@ -702,9 +761,9 @@
- device.c
+ ipc.c
1
- ..\..\..\src\device.c
+ ..\..\..\src\ipc.c
@@ -716,16 +775,9 @@
- kservice.c
+ irq.c
1
- ..\..\..\src\kservice.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
+ ..\..\..\src\irq.c
@@ -742,20 +794,6 @@
..\..\..\src\clock.c
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
idle.c
@@ -764,44 +802,6 @@
-
- libc
-
-
- mem_std.c
- 1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- libc_syms.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
Libraries
diff --git a/bsp/imxrt/imxrt1052-atk-commander/rtconfig.h b/bsp/imxrt/imxrt1052-atk-commander/rtconfig.h
index 08ad8e087d..2127da858f 100644
--- a/bsp/imxrt/imxrt1052-atk-commander/rtconfig.h
+++ b/bsp/imxrt/imxrt1052-atk-commander/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,7 +73,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -88,7 +83,6 @@
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_DEVFS
-/* end of Device virtual file system */
/* Device Drivers */
@@ -106,13 +100,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -123,41 +113,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 */
@@ -168,83 +145,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -263,11 +220,8 @@
#define BSP_LPUART4_TX_DMA_CHANNEL 3
#define BSP_USING_SPI
#define BSP_USING_SPI3
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imxrt/imxrt1052-fire-pro/.config b/bsp/imxrt/imxrt1052-fire-pro/.config
index 30634e97f4..55ab9a5ff9 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/.config
+++ b/bsp/imxrt/imxrt1052-fire-pro/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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
@@ -70,7 +72,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -81,10 +82,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -99,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -119,13 +118,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
@@ -164,17 +161,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -184,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -197,9 +189,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
@@ -209,32 +198,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
@@ -244,14 +227,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
@@ -286,17 +266,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
@@ -318,8 +293,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -354,7 +328,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -364,16 +338,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -385,15 +358,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
@@ -413,8 +383,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -458,7 +429,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
@@ -470,7 +440,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -478,14 +454,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
@@ -496,8 +470,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
@@ -527,11 +499,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -605,10 +575,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -622,7 +593,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
@@ -635,7 +605,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
@@ -649,8 +618,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -672,16 +640,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -703,7 +666,6 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_USING_PWM is not set
# CONFIG_BSP_USING_I2C is not set
# CONFIG_BSP_USING_RTC is not set
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
@@ -714,9 +676,7 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_USING_EEPROM is not set
# CONFIG_BSP_USING_RS232 is not set
# CONFIG_BSP_USING_RS485 is not set
-# end of Onboard Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/imxrt/imxrt1052-fire-pro/board/board.c b/bsp/imxrt/imxrt1052-fire-pro/board/board.c
index ee95ab47cb..529571c42d 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/board/board.c
+++ b/bsp/imxrt/imxrt1052-fire-pro/board/board.c
@@ -131,7 +131,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/imxrt1052-fire-pro/project.ewp b/bsp/imxrt/imxrt1052-fire-pro/project.ewp
index c532139a29..7bf982ece2 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/project.ewp
+++ b/bsp/imxrt/imxrt1052-fire-pro/project.ewp
@@ -224,13 +224,13 @@
CCDefines
+ RT_USING_DLIBC
CPU_MIMXRT1052CVL5B
SKIP_SYSCLK_INIT
EVK_MCIMXRM
FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1
XIP_EXTERNAL_FLASH=1
__RTTHREAD__
- RT_USING_DLIBC
CCPreprocFile
@@ -1069,21 +1069,57 @@
- CPU
+ Compiler
- $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+
+ CPU
$PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
+
$PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpuport.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\context_iar.S
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\context_iar.S
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpuport.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
@@ -1107,10 +1143,10 @@
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\completion.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\completion.c
$PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
@@ -1154,80 +1190,44 @@
Kernel
-
- $PROJ_DIR$\..\..\..\src\device.c
-
-
- $PROJ_DIR$\..\..\..\src\components.c
-
-
- $PROJ_DIR$\..\..\..\src\timer.c
-
-
- $PROJ_DIR$\..\..\..\src\idle.c
-
-
- $PROJ_DIR$\..\..\..\src\ipc.c
-
-
- $PROJ_DIR$\..\..\..\src\memheap.c
-
$PROJ_DIR$\..\..\..\src\kservice.c
-
- $PROJ_DIR$\..\..\..\src\irq.c
-
-
- $PROJ_DIR$\..\..\..\src\object.c
-
$PROJ_DIR$\..\..\..\src\clock.c
- $PROJ_DIR$\..\..\..\src\scheduler.c
+ $PROJ_DIR$\..\..\..\src\components.c
+
+
+ $PROJ_DIR$\..\..\..\src\idle.c
+
+
+ $PROJ_DIR$\..\..\..\src\device.c
+
+
+ $PROJ_DIR$\..\..\..\src\irq.c
+
+
+ $PROJ_DIR$\..\..\..\src\memheap.c
$PROJ_DIR$\..\..\..\src\thread.c
+
+ $PROJ_DIR$\..\..\..\src\object.c
+
$PROJ_DIR$\..\..\..\src\mempool.c
-
-
- libc
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+ $PROJ_DIR$\..\..\..\src\timer.c
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+ $PROJ_DIR$\..\..\..\src\ipc.c
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+ $PROJ_DIR$\..\..\..\src\scheduler.c
diff --git a/bsp/imxrt/imxrt1052-fire-pro/project.uvprojx b/bsp/imxrt/imxrt1052-fire-pro/project.uvprojx
index b0c9ef570b..4a36f19cb2 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/project.uvprojx
+++ b/bsp/imxrt/imxrt1052-fire-pro/project.uvprojx
@@ -333,7 +333,7 @@
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
SKIP_SYSCLK_INIT, CPU_MIMXRT1052CVL5B, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM, RT_USING_ARM_LIBC
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -385,14 +385,45 @@
- CPU
+ Compiler
- showmem.c
+ syscalls.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ CPU
backtrace.c
@@ -400,6 +431,13 @@
..\..\..\libcpu\arm\common\backtrace.c
+
+
+ showmem.c
+ 1
+ ..\..\..\libcpu\arm\common\showmem.c
+
+
div0.c
@@ -409,9 +447,9 @@
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
+ cpu_cache.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
@@ -423,9 +461,9 @@
- cpu_cache.c
- 1
- ..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
@@ -452,20 +490,6 @@
..\..\..\components\drivers\serial\serial.c
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
-
-
- completion.c
- 1
- ..\..\..\components\drivers\src\completion.c
-
-
ringblk_buf.c
@@ -473,20 +497,6 @@
..\..\..\components\drivers\src\ringblk_buf.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\src\ringbuffer.c
-
-
pipe.c
@@ -494,6 +504,27 @@
..\..\..\components\drivers\src\pipe.c
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
+
+
+
+
+ workqueue.c
+ 1
+ ..\..\..\components\drivers\src\workqueue.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
+
+
waitqueue.c
@@ -501,6 +532,13 @@
..\..\..\components\drivers\src\waitqueue.c
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
Drivers
@@ -566,20 +604,6 @@
Kernel
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
scheduler.c
@@ -587,13 +611,6 @@
..\..\..\src\scheduler.c
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
thread.c
@@ -603,44 +620,16 @@
- clock.c
+ irq.c
1
- ..\..\..\src\clock.c
+ ..\..\..\src\irq.c
- timer.c
+ memheap.c
1
- ..\..\..\src\timer.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
+ ..\..\..\src\memheap.c
@@ -652,47 +641,58 @@
- memheap.c
+ clock.c
1
- ..\..\..\src\memheap.c
-
-
-
-
- libc
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\..\src\clock.c
- mem_std.c
+ kservice.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\..\src\kservice.c
- libc_syms.c
+ timer.c
1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\timer.c
- time.c
+ components.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\components.c
- stdlib.c
+ object.c
1
- ..\..\..\components\libc\compilers\common\stdlib.c
+ ..\..\..\src\object.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
diff --git a/bsp/imxrt/imxrt1052-fire-pro/rtconfig.h b/bsp/imxrt/imxrt1052-fire-pro/rtconfig.h
index 07675ad72e..da92df3ed9 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/rtconfig.h
+++ b/bsp/imxrt/imxrt1052-fire-pro/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,41 +102,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 */
@@ -157,83 +134,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -244,14 +201,11 @@
#define BSP_USING_GPIO
#define BSP_USING_LPUART
#define BSP_USING_LPUART1
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/.config b/bsp/imxrt/imxrt1052-nxp-evk/.config
index f1dce3ac93..2cd78bc3bd 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/.config
+++ b/bsp/imxrt/imxrt1052-nxp-evk/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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
@@ -70,7 +72,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -81,10 +82,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -99,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -119,13 +118,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
@@ -164,17 +161,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -184,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -197,9 +189,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
@@ -209,7 +198,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# Socket abstraction layer
#
# CONFIG_RT_USING_SAL is not set
-# end of Socket abstraction layer
#
# Network interface device
@@ -222,26 +210,22 @@ CONFIG_NETDEV_USING_AUTO_DEFAULT=y
# CONFIG_NETDEV_USING_IPV6 is not set
CONFIG_NETDEV_IPV4=1
CONFIG_NETDEV_IPV6=0
-# end of Network interface device
+# CONFIG_NETDEV_IPV6_SCOPES is not set
#
# 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 +235,11 @@ CONFIG_NETDEV_IPV6=0
# 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 +274,12 @@ CONFIG_NETDEV_IPV6=0
# 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 +301,7 @@ CONFIG_NETDEV_IPV6=0
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -361,7 +336,7 @@ CONFIG_NETDEV_IPV6=0
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -371,16 +346,15 @@ CONFIG_NETDEV_IPV6=0
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -392,15 +366,12 @@ CONFIG_NETDEV_IPV6=0
# 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 +391,9 @@ CONFIG_NETDEV_IPV6=0
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -465,7 +437,6 @@ CONFIG_NETDEV_IPV6=0
# 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 +448,13 @@ CONFIG_NETDEV_IPV6=0
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -485,14 +462,12 @@ CONFIG_NETDEV_IPV6=0
# 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 +478,6 @@ CONFIG_NETDEV_IPV6=0
# 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
@@ -534,11 +507,9 @@ CONFIG_NETDEV_IPV6=0
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -612,10 +583,11 @@ CONFIG_NETDEV_IPV6=0
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -629,7 +601,6 @@ CONFIG_NETDEV_IPV6=0
# 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 +613,6 @@ CONFIG_NETDEV_IPV6=0
# 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 +626,7 @@ CONFIG_NETDEV_IPV6=0
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -679,16 +648,11 @@ CONFIG_NETDEV_IPV6=0
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -707,7 +671,6 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_LPUART1_TX_USING_DMA is not set
# CONFIG_BSP_USING_LPUART3 is not set
# CONFIG_BSP_USING_I2C is not set
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
@@ -715,9 +678,7 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_USING_SDRAM is not set
# CONFIG_BSP_USING_ETH is not set
# CONFIG_BSP_USING_AUDIO is not set
-# end of Onboard Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/board/board.c b/bsp/imxrt/imxrt1052-nxp-evk/board/board.c
index 3a6861797d..7369cef723 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/board/board.c
+++ b/bsp/imxrt/imxrt1052-nxp-evk/board/board.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -259,8 +259,8 @@ void imxrt_enet_pins_init(void)
CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
IOMUXC_SetPinMux(
- IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 is configured as GPIO1_IO09 */
- 0U); /* Software Input On Field: Input Path is determined by functionality */
+ IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 is configured as GPIO1_IO09 */
+ 0U); /* Software Input On Field: Input Path is determined by functionality */
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */
0U);
@@ -650,7 +650,7 @@ void imxrt_SDcard_pins_init(void)
Pull / Keep Enable Field: Pull/Keeper Enabled
Pull / Keep Select Field: Pull
Pull Up / Down Config. Field: 47K Ohm Pull Up
- Hyst. Enable Field: Hysteresis Enabled */
+ Hyst. Enable Field: Hysteresis Enabled */
}
#endif
void rt_hw_board_init()
@@ -690,7 +690,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/project.ewp b/bsp/imxrt/imxrt1052-nxp-evk/project.ewp
index 01263125e1..9fe1aecd16 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/project.ewp
+++ b/bsp/imxrt/imxrt1052-nxp-evk/project.ewp
@@ -224,13 +224,13 @@
CCDefines
+ RT_USING_DLIBC
CPU_MIMXRT1052DVL6B
SKIP_SYSCLK_INIT
EVK_MCIMXRM
FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1
XIP_EXTERNAL_FLASH=1
__RTTHREAD__
- RT_USING_DLIBC
CCPreprocFile
@@ -1074,6 +1074,42 @@
$PROJ_DIR$\applications\main.c
+
+ Compiler
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
CPU
@@ -1110,25 +1146,25 @@
$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c
- $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\completion.c
$PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
$PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
- $PROJ_DIR$\..\..\..\components\drivers\src\completion.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
- $PROJ_DIR$\..\..\..\components\drivers\src\pipe.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
@@ -1164,10 +1200,13 @@
Kernel
- $PROJ_DIR$\..\..\..\src\timer.c
+ $PROJ_DIR$\..\..\..\src\ipc.c
- $PROJ_DIR$\..\..\..\src\irq.c
+ $PROJ_DIR$\..\..\..\src\clock.c
+
+
+ $PROJ_DIR$\..\..\..\src\thread.c
$PROJ_DIR$\..\..\..\src\idle.c
@@ -1175,20 +1214,14 @@
$PROJ_DIR$\..\..\..\src\scheduler.c
+
+ $PROJ_DIR$\..\..\..\src\timer.c
+
$PROJ_DIR$\..\..\..\src\object.c
- $PROJ_DIR$\..\..\..\src\clock.c
-
-
- $PROJ_DIR$\..\..\..\src\ipc.c
-
-
- $PROJ_DIR$\..\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\..\src\components.c
+ $PROJ_DIR$\..\..\..\src\irq.c
$PROJ_DIR$\..\..\..\src\kservice.c
@@ -1200,43 +1233,10 @@
$PROJ_DIR$\..\..\..\src\device.c
- $PROJ_DIR$\..\..\..\src\thread.c
-
-
-
- libc
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+ $PROJ_DIR$\..\..\..\src\components.c
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+ $PROJ_DIR$\..\..\..\src\mempool.c
@@ -1269,10 +1269,10 @@
SAL
- $PROJ_DIR$\..\..\..\components\net\netdev\src\netdev_ipaddr.c
+ $PROJ_DIR$\..\..\..\components\net\netdev\src\netdev.c
- $PROJ_DIR$\..\..\..\components\net\netdev\src\netdev.c
+ $PROJ_DIR$\..\..\..\components\net\netdev\src\netdev_ipaddr.c
@@ -1281,10 +1281,10 @@
xip
- $PROJ_DIR$\xip\fsl_flexspi_nor_boot.c
+ $PROJ_DIR$\xip\fsl_flexspi_nor_flash.c
- $PROJ_DIR$\xip\fsl_flexspi_nor_flash.c
+ $PROJ_DIR$\xip\fsl_flexspi_nor_boot.c
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/project.uvprojx b/bsp/imxrt/imxrt1052-nxp-evk/project.uvprojx
index 804082caa5..6a47b303d1 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/project.uvprojx
+++ b/bsp/imxrt/imxrt1052-nxp-evk/project.uvprojx
@@ -333,7 +333,7 @@
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
SKIP_SYSCLK_INIT, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM, CPU_MIMXRT1052DVL6B, RT_USING_ARM_LIBC
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\libraries\peripherals;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\components\net\netdev\include;..\..\..\examples\utest\testcases\kernel;xip
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\libraries\peripherals;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\components\net\netdev\include;..\..\..\examples\utest\testcases\kernel;xip
@@ -376,13 +376,6 @@
Applications
-
-
- main.c
- 1
- applications\main.c
-
-
mnt.c
@@ -390,16 +383,54 @@
applications\mnt.c
+
+
+ main.c
+ 1
+ applications\main.c
+
+
+
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
CPU
-
-
- backtrace.c
- 1
- ..\..\..\libcpu\arm\common\backtrace.c
-
-
div0.c
@@ -414,6 +445,13 @@
..\..\..\libcpu\arm\common\showmem.c
+
+
+ backtrace.c
+ 1
+ ..\..\..\libcpu\arm\common\backtrace.c
+
+
cpu_cache.c
@@ -423,16 +461,16 @@
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m7\cpuport.c
+ context_rvds.S
+ 2
+ ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m7\cpuport.c
@@ -468,16 +506,23 @@
- dataqueue.c
+ completion.c
1
- ..\..\..\components\drivers\src\dataqueue.c
+ ..\..\..\components\drivers\src\completion.c
- completion.c
+ ringbuffer.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
@@ -487,13 +532,6 @@
..\..\..\components\drivers\src\ringblk_buf.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
pipe.c
@@ -503,16 +541,16 @@
- waitqueue.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\waitqueue.c
+ ..\..\..\components\drivers\src\workqueue.c
- ringbuffer.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
+ ..\..\..\components\drivers\src\waitqueue.c
@@ -582,23 +620,9 @@
Kernel
- idle.c
+ thread.c
1
- ..\..\..\src\idle.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
+ ..\..\..\src\thread.c
@@ -608,41 +632,6 @@
..\..\..\src\memheap.c
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
components.c
@@ -666,47 +655,58 @@
- thread.c
+ object.c
1
- ..\..\..\src\thread.c
-
-
-
-
- libc
-
-
- libc_syms.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+ ..\..\..\src\object.c
- syscalls.c
+ clock.c
1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
+ ..\..\..\src\clock.c
- mem_std.c
+ timer.c
1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
+ ..\..\..\src\timer.c
- time.c
+ kservice.c
1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\kservice.c
- stdlib.c
+ ipc.c
1
- ..\..\..\components\libc\compilers\common\stdlib.c
+ ..\..\..\src\ipc.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\..\src\idle.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\..\src\scheduler.c
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.h b/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.h
index 8679eeeb4b..78114d3d49 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.h
+++ b/bsp/imxrt/imxrt1052-nxp-evk/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -95,13 +89,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -112,15 +102,10 @@
/* 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 */
@@ -131,29 +116,21 @@
#define NETDEV_USING_AUTO_DEFAULT
#define NETDEV_IPV4 1
#define NETDEV_IPV6 0
-/* 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 */
@@ -164,83 +141,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -252,14 +209,11 @@
#define BSP_USING_GPIO
#define BSP_USING_LPUART
#define BSP_USING_LPUART1
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imxrt/imxrt1052-seeed-ArchMix/.config b/bsp/imxrt/imxrt1052-seeed-ArchMix/.config
index e8fab1bbad..ceeac2a74e 100644
--- a/bsp/imxrt/imxrt1052-seeed-ArchMix/.config
+++ b/bsp/imxrt/imxrt1052-seeed-ArchMix/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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
@@ -70,7 +72,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -81,10 +82,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -99,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -119,13 +118,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
@@ -164,16 +161,14 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-# CONFIG_RT_USING_LIBC is not set
-CONFIG_RT_LIBC_USING_TIME=y
+# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
@@ -182,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -195,9 +189,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
@@ -207,32 +198,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
@@ -242,14 +227,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
@@ -284,17 +266,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
@@ -316,8 +293,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -352,7 +328,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -362,16 +338,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -383,15 +358,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
@@ -411,8 +383,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -456,7 +429,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
@@ -468,7 +440,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -476,14 +454,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
@@ -494,8 +470,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
@@ -525,11 +499,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -603,10 +575,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -620,7 +593,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
@@ -633,7 +605,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
@@ -647,8 +618,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -670,16 +640,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
@@ -690,7 +655,6 @@ CONFIG_SOC_IMXRT1052CVL5B=y
# Onboard Peripheral Drivers
#
# CONFIG_BSP_USING_SDRAM is not set
-# end of Onboard Peripheral Drivers
#
# On-chip Peripheral Drivers
@@ -703,5 +667,3 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_LPUART1_TX_USING_DMA is not set
# CONFIG_BSP_USING_LPUART4 is not set
# CONFIG_BSP_USING_SPI is not set
-# end of On-chip Peripheral Drivers
-# end of Hardware Drivers Config
diff --git a/bsp/imxrt/imxrt1052-seeed-ArchMix/board/board.c b/bsp/imxrt/imxrt1052-seeed-ArchMix/board/board.c
index e50e511070..c93ea67ea4 100644
--- a/bsp/imxrt/imxrt1052-seeed-ArchMix/board/board.c
+++ b/bsp/imxrt/imxrt1052-seeed-ArchMix/board/board.c
@@ -131,7 +131,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/imxrt1052-seeed-ArchMix/project.uvprojx b/bsp/imxrt/imxrt1052-seeed-ArchMix/project.uvprojx
index e3afe8b1be..934f90c4a2 100644
--- a/bsp/imxrt/imxrt1052-seeed-ArchMix/project.uvprojx
+++ b/bsp/imxrt/imxrt1052-seeed-ArchMix/project.uvprojx
@@ -334,9 +334,9 @@
0
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
- SKIP_SYSCLK_INIT, CPU_MIMXRT1052CVL5B, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM
+ SKIP_SYSCLK_INIT, CPU_MIMXRT1052CVL5B, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM, RT_USING_ARM_LIBC
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\MIMXRT1050\CMSIS\Include;..\libraries\MIMXRT1050\MIMXRT1052;..\libraries\MIMXRT1050\MIMXRT1052\drivers;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel
@@ -387,8 +387,53 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
+
+
+ backtrace.c
+ 1
+ ..\..\..\libcpu\arm\common\backtrace.c
+
+
div0.c
@@ -403,20 +448,6 @@
..\..\..\libcpu\arm\common\showmem.c
-
-
- backtrace.c
- 1
- ..\..\..\libcpu\arm\common\backtrace.c
-
-
-
-
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m7\cpuport.c
-
-
context_rvds.S
@@ -431,6 +462,13 @@
..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
+
+
+ cpuport.c
+ 1
+ ..\..\..\libcpu\arm\cortex-m7\cpuport.c
+
+
DeviceDrivers
@@ -448,20 +486,6 @@
..\..\..\components\drivers\serial\serial.c
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
ringbuffer.c
@@ -469,6 +493,13 @@
..\..\..\components\drivers\src\ringbuffer.c
+
+
+ pipe.c
+ 1
+ ..\..\..\components\drivers\src\pipe.c
+
+
ringblk_buf.c
@@ -476,6 +507,13 @@
..\..\..\components\drivers\src\ringblk_buf.c
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
+
+
workqueue.c
@@ -485,16 +523,16 @@
- completion.c
+ waitqueue.c
1
- ..\..\..\components\drivers\src\completion.c
+ ..\..\..\components\drivers\src\waitqueue.c
- pipe.c
+ completion.c
1
- ..\..\..\components\drivers\src\pipe.c
+ ..\..\..\components\drivers\src\completion.c
@@ -562,13 +600,6 @@
Kernel
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
ipc.c
@@ -578,9 +609,51 @@
- memheap.c
+ idle.c
1
- ..\..\..\src\memheap.c
+ ..\..\..\src\idle.c
+
+
+
+
+ object.c
+ 1
+ ..\..\..\src\object.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
@@ -599,23 +672,9 @@
- device.c
+ memheap.c
1
- ..\..\..\src\device.c
-
-
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
+ ..\..\..\src\memheap.c
@@ -625,20 +684,6 @@
..\..\..\src\kservice.c
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
timer.c
@@ -646,23 +691,6 @@
..\..\..\src\timer.c
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- libc
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
-
-
Libraries
diff --git a/bsp/imxrt/imxrt1052-seeed-ArchMix/rtconfig.h b/bsp/imxrt/imxrt1052-seeed-ArchMix/rtconfig.h
index efb92a7c34..4253805c88 100644
--- a/bsp/imxrt/imxrt1052-seeed-ArchMix/rtconfig.h
+++ b/bsp/imxrt/imxrt1052-seeed-ArchMix/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -94,12 +88,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -110,41 +101,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 */
@@ -155,83 +133,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -239,7 +197,6 @@
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* On-chip Peripheral Drivers */
@@ -247,7 +204,5 @@
#define BSP_USING_GPIO
#define BSP_USING_LPUART
#define BSP_USING_LPUART1
-/* end of On-chip Peripheral Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/.config b/bsp/imxrt/imxrt1064-nxp-evk/.config
index c9c264766b..af0b2b3b33 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/.config
+++ b/bsp/imxrt/imxrt1064-nxp-evk/.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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
@@ -26,8 +31,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 +53,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
@@ -70,7 +72,6 @@ CONFIG_RT_USING_MEMHEAP_AUTO_BINDING=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
@@ -81,10 +82,9 @@ CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
-# 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
@@ -99,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -119,13 +118,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
@@ -164,17 +161,13 @@ CONFIG_RT_USING_PIN=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -184,7 +177,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -197,9 +189,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
@@ -209,32 +198,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
@@ -244,14 +227,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
@@ -286,17 +266,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
@@ -318,8 +293,7 @@ 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -354,7 +328,7 @@ 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -364,16 +338,15 @@ 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# 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
@@ -385,15 +358,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
@@ -413,8 +383,9 @@ 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -458,7 +429,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
@@ -470,7 +440,13 @@ 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -478,14 +454,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
@@ -496,8 +470,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
@@ -527,11 +499,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -605,10 +575,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -622,7 +593,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
@@ -635,7 +605,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
@@ -649,8 +618,7 @@ 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -672,20 +640,16 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
#
# Hardware Drivers Config
#
+# CONFIG_BSP_USING_HYPERFLASH is not set
CONFIG_BSP_USING_4MFLASH=y
CONFIG_SOC_MIMXRT1064DVL6A=y
@@ -704,16 +668,13 @@ CONFIG_BSP_USING_LPUART1=y
# CONFIG_BSP_USING_LPUART8 is not set
# CONFIG_BSP_USING_I2C is not set
# CONFIG_BSP_USING_LCD is not set
-# end of On-chip Peripheral Drivers
#
# Onboard Peripheral Drivers
#
# CONFIG_BSP_USING_SDRAM is not set
# CONFIG_BSP_USING_ETH is not set
-# end of Onboard Peripheral Drivers
#
# Board extended module Drivers
#
-# end of Hardware Drivers Config
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/board/board.c b/bsp/imxrt/imxrt1064-nxp-evk/board/board.c
index 3e39504094..cf46d98473 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/board/board.c
+++ b/bsp/imxrt/imxrt1064-nxp-evk/board/board.c
@@ -901,7 +901,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/project.ewp b/bsp/imxrt/imxrt1064-nxp-evk/project.ewp
index 8afb84ecf4..8748c58efd 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/project.ewp
+++ b/bsp/imxrt/imxrt1064-nxp-evk/project.ewp
@@ -224,6 +224,7 @@
CCDefines
+ RT_USING_DLIBC
CPU_MIMXRT1064DVL6A
SKIP_SYSCLK_INIT
EVK_MCIMXRM
@@ -232,7 +233,6 @@
XIP_BOOT_HEADER_ENABLE=1
XIP_BOOT_HEADER_DCD_ENABLE=1
__RTTHREAD__
- RT_USING_DLIBC
CCPreprocFile
@@ -1073,24 +1073,60 @@
- CPU
+ Compiler
- $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
+
+
+ $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
+
+
+
+ CPU
$PROJ_DIR$\..\..\..\libcpu\arm\common\showmem.c
+
+ $PROJ_DIR$\..\..\..\libcpu\arm\common\backtrace.c
+
$PROJ_DIR$\..\..\..\libcpu\arm\common\div0.c
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpuport.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\context_iar.S
- $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpu_cache.c
+ $PROJ_DIR$\..\..\..\libcpu\arm\cortex-m7\cpuport.c
@@ -1105,17 +1141,11 @@
$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c
- $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+ $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
$PROJ_DIR$\..\..\..\components\drivers\src\ringblk_buf.c
-
- $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
-
-
- $PROJ_DIR$\..\..\..\components\drivers\src\workqueue.c
-
$PROJ_DIR$\..\..\..\components\drivers\src\completion.c
@@ -1125,6 +1155,12 @@
$PROJ_DIR$\..\..\..\components\drivers\src\waitqueue.c
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\ringbuffer.c
+
+
+ $PROJ_DIR$\..\..\..\components\drivers\src\dataqueue.c
+
Drivers
@@ -1158,80 +1194,44 @@
Kernel
+
+ $PROJ_DIR$\..\..\..\src\timer.c
+
$PROJ_DIR$\..\..\..\src\irq.c
-
- $PROJ_DIR$\..\..\..\src\mempool.c
-
-
- $PROJ_DIR$\..\..\..\src\clock.c
-
-
- $PROJ_DIR$\..\..\..\src\components.c
-
-
- $PROJ_DIR$\..\..\..\src\object.c
-
$PROJ_DIR$\..\..\..\src\device.c
+
+ $PROJ_DIR$\..\..\..\src\object.c
+
+
+ $PROJ_DIR$\..\..\..\src\mempool.c
+
$PROJ_DIR$\..\..\..\src\thread.c
-
- $PROJ_DIR$\..\..\..\src\timer.c
-
-
- $PROJ_DIR$\..\..\..\src\idle.c
-
$PROJ_DIR$\..\..\..\src\scheduler.c
- $PROJ_DIR$\..\..\..\src\ipc.c
+ $PROJ_DIR$\..\..\..\src\components.c
$PROJ_DIR$\..\..\..\src\kservice.c
+
+ $PROJ_DIR$\..\..\..\src\idle.c
+
$PROJ_DIR$\..\..\..\src\memheap.c
-
-
- libc
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c
+ $PROJ_DIR$\..\..\..\src\clock.c
- $PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c
-
-
- $PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c
+ $PROJ_DIR$\..\..\..\src\ipc.c
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/project.uvprojx b/bsp/imxrt/imxrt1064-nxp-evk/project.uvprojx
index d51915ebda..743e3a61ad 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/project.uvprojx
+++ b/bsp/imxrt/imxrt1064-nxp-evk/project.uvprojx
@@ -334,7 +334,7 @@
--library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186
XIP_BOOT_HEADER_DCD_ENABLE=1, SKIP_SYSCLK_INIT, __FPU_PRESENT=1, CPU_MIMXRT1064DVL6A, __RTTHREAD__, XIP_BOOT_HEADER_ENABLE=1, FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1, __CLK_TCK=RT_TICK_PER_SECOND, XIP_EXTERNAL_FLASH=1, EVK_MCIMXRM, RT_USING_ARM_LIBC
- applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\libraries\MIMXRT1064\CMSIS\Include;..\libraries\MIMXRT1064\MIMXRT1064;..\libraries\MIMXRT1064\MIMXRT1064\drivers;..\libraries\peripherals;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel;xip
+ applications;..\..\..\components\libc\compilers\common;..\..\..\components\libc\compilers\common\nogcc;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\MCUX_Config;board\ports;..\libraries\drivers;..\libraries\drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\libraries\MIMXRT1064\CMSIS\Include;..\libraries\MIMXRT1064\MIMXRT1064;..\libraries\MIMXRT1064\MIMXRT1064\drivers;..\libraries\peripherals;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\posix\ipc;..\..\..\examples\utest\testcases\kernel;xip
@@ -385,6 +385,44 @@
+
+ Compiler
+
+
+ syscalls.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ syscall_mem.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\syscall_mem.c
+
+
+
+
+ libc_syms.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc_syms.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
+
+
+
+
+ time.c
+ 1
+ ..\..\..\components\libc\compilers\common\time.c
+
+
+
CPU
@@ -462,9 +500,23 @@
- workqueue.c
+ ringbuffer.c
1
- ..\..\..\components\drivers\src\workqueue.c
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ completion.c
+ 1
+ ..\..\..\components\drivers\src\completion.c
@@ -483,23 +535,9 @@
- ringbuffer.c
+ workqueue.c
1
- ..\..\..\components\drivers\src\ringbuffer.c
-
-
-
-
- completion.c
- 1
- ..\..\..\components\drivers\src\completion.c
-
-
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
+ ..\..\..\components\drivers\src\workqueue.c
@@ -567,6 +605,27 @@
Kernel
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ ipc.c
+ 1
+ ..\..\..\src\ipc.c
+
+
idle.c
@@ -576,16 +635,30 @@
- irq.c
+ object.c
1
- ..\..\..\src\irq.c
+ ..\..\..\src\object.c
- device.c
+ kservice.c
1
- ..\..\..\src\device.c
+ ..\..\..\src\kservice.c
+
+
+
+
+ thread.c
+ 1
+ ..\..\..\src\thread.c
+
+
+
+
+ irq.c
+ 1
+ ..\..\..\src\irq.c
@@ -602,27 +675,6 @@
..\..\..\src\timer.c
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
clock.c
@@ -632,68 +684,16 @@
- components.c
+ memheap.c
1
- ..\..\..\src\components.c
+ ..\..\..\src\memheap.c
- thread.c
+ device.c
1
- ..\..\..\src\thread.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
-
-
- libc
-
-
- libc_syms.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc_syms.c
-
-
-
-
- mem_std.c
- 1
- ..\..\..\components\libc\compilers\armlibc\mem_std.c
-
-
-
-
- syscalls.c
- 1
- ..\..\..\components\libc\compilers\armlibc\syscalls.c
-
-
-
-
- stdlib.c
- 1
- ..\..\..\components\libc\compilers\common\stdlib.c
-
-
-
-
- time.c
- 1
- ..\..\..\components\libc\compilers\common\time.c
+ ..\..\..\src\device.c
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.h b/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.h
index 3cd0260897..e655657d15 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/rtconfig.h
+++ b/bsp/imxrt/imxrt1064-nxp-evk/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 */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -39,7 +39,6 @@
#define RT_USING_MEMHEAP_AS_HEAP
#define RT_USING_MEMHEAP_AUTO_BINDING
#define RT_USING_HEAP
-/* end of Memory Management */
/* Kernel Device Object */
@@ -47,9 +46,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
-/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
-/* end of RT-Thread Kernel */
/* RT-Thread Components */
@@ -60,7 +57,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -77,11 +73,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 */
@@ -94,13 +88,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -111,41 +101,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 */
@@ -156,83 +133,63 @@
/* 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 */
+
+/* POSIX extension functions */
+
/* 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 */
/* Hardware Drivers Config */
@@ -244,14 +201,11 @@
#define BSP_USING_GPIO
#define BSP_USING_LPUART
#define BSP_USING_LPUART1
-/* end of On-chip Peripheral Drivers */
/* Onboard Peripheral Drivers */
-/* end of Onboard Peripheral Drivers */
/* Board extended module Drivers */
-/* end of Hardware Drivers Config */
#endif
diff --git a/bsp/imxrt/libraries/templates/imxrt1050xxx/board/board.c b/bsp/imxrt/libraries/templates/imxrt1050xxx/board/board.c
index e50e511070..c93ea67ea4 100644
--- a/bsp/imxrt/libraries/templates/imxrt1050xxx/board/board.c
+++ b/bsp/imxrt/libraries/templates/imxrt1050xxx/board/board.c
@@ -131,7 +131,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/libraries/templates/imxrt1064xxx/board/board.c b/bsp/imxrt/libraries/templates/imxrt1064xxx/board/board.c
index 44fb588f34..40435501dd 100644
--- a/bsp/imxrt/libraries/templates/imxrt1064xxx/board/board.c
+++ b/bsp/imxrt/libraries/templates/imxrt1064xxx/board/board.c
@@ -100,7 +100,7 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
}
diff --git a/bsp/imxrt/libraries/templates/imxrt1064xxx/rtconfig.h b/bsp/imxrt/libraries/templates/imxrt1064xxx/rtconfig.h
index dfba538fd7..b99e495bfe 100644
--- a/bsp/imxrt/libraries/templates/imxrt1064xxx/rtconfig.h
+++ b/bsp/imxrt/libraries/templates/imxrt1064xxx/rtconfig.h
@@ -10,7 +10,7 @@
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
-#define RT_TICK_PER_SECOND 100
+#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
diff --git a/bsp/juicevm/.config b/bsp/juicevm/.config
index 3c022e815e..3b2c654e33 100755
--- a/bsp/juicevm/.config
+++ b/bsp/juicevm/.config
@@ -1,9 +1,13 @@
-# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
+#
+# Automatically generated file; DO NOT EDIT.
+# RT-Thread Project 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
@@ -14,6 +18,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=1024
@@ -26,8 +31,6 @@ CONFIG_IDLE_THREAD_STACK_SIZE=1024
# 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 +53,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 +69,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,14 +79,12 @@ 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_ARCH_CPU_64BIT=y
+# CONFIG_RT_USING_CPU_FFS is not set
CONFIG_ARCH_RISCV=y
CONFIG_ARCH_RISCV64=y
+# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set
#
# RT-Thread Components
@@ -100,7 +99,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
# C++ features
#
# CONFIG_RT_USING_CPLUSPLUS is not set
-# end of C++ features
#
# Command shell
@@ -120,7 +118,6 @@ 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
@@ -136,7 +133,6 @@ CONFIG_DFS_FD_MAX=16
# CONFIG_RT_USING_DFS_DEVFS is not set
# CONFIG_RT_USING_DFS_ROMFS is not set
# CONFIG_RT_USING_DFS_RAMFS is not set
-# end of Device virtual file system
#
# Device Drivers
@@ -177,17 +173,13 @@ CONFIG_RT_USING_RTC=y
#
# 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
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -197,7 +189,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_RT_USING_POSIX_FS is not set
# CONFIG_RT_USING_POSIX_DELAY is not set
# CONFIG_RT_USING_POSIX_CLOCK is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
# CONFIG_RT_USING_PTHREADS is not set
#
@@ -210,9 +201,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
@@ -222,32 +210,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
@@ -275,22 +257,17 @@ CONFIG_ULOG_OUTPUT_TIME=y
CONFIG_ULOG_OUTPUT_LEVEL=y
CONFIG_ULOG_OUTPUT_TAG=y
# CONFIG_ULOG_OUTPUT_THREAD_NAME is not set
-# end of log format
-
CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_ULOG_USING_FILTER is not set
# CONFIG_ULOG_USING_SYSLOG is not set
# 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
@@ -325,17 +302,12 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
@@ -357,8 +329,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -393,7 +364,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
@@ -403,11 +374,11 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
CONFIG_PKG_USING_MICROPYTHON=y
@@ -426,7 +397,6 @@ CONFIG_MICROPYTHON_USING_MACHINE_UART=y
# CONFIG_MICROPYTHON_USING_MACHINE_TIMER is not set
# CONFIG_MICROPYTHON_USING_NETWORK is not set
# CONFIG_MICROPYTHON_USING_MACHINE_LCD is not set
-# end of Hardware Module
#
# System Module
@@ -438,7 +408,6 @@ CONFIG_MICROPYTHON_USING_THREAD=y
# CONFIG_MICROPYTHON_USING_UCTYPES is not set
# CONFIG_MICROPYTHON_USING_UERRNO is not set
# CONFIG_MICROPYTHON_USING_FFI is not set
-# end of System Module
#
# Tools Module
@@ -451,21 +420,17 @@ CONFIG_MICROPYTHON_USING_UJSON=y
# CONFIG_MICROPYTHON_USING_URE is not set
# CONFIG_MICROPYTHON_USING_UZLIB is not set
# CONFIG_MICROPYTHON_USING_URANDOM is not set
-# end of Tools Module
#
# Network Module
#
# CONFIG_MICROPYTHON_USING_USOCKET is not set
# CONFIG_MICROPYTHON_USING_USSL is not set
-# end of Network Module
#
# User Extended Module
#
# CONFIG_MICROPYTHON_USING_USEREXTMODS is not set
-# end of User Extended Module
-
CONFIG_PKG_MICROPYTHON_HEAP_SIZE=8192
# CONFIG_MICROPYTHON_USING_FLOAT_IMPL_FLOAT is not set
# CONFIG_PKG_USING_MICROPYTHON_V11200 is not set
@@ -479,7 +444,6 @@ CONFIG_PKG_USING_MICROPYTHON_LATEST_VERSION=y
CONFIG_PKG_MICROPYTHON_VER="latest"
CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# CONFIG_PKG_USING_PIKASCRIPT is not set
-# end of language packages
#
# multimedia packages
@@ -491,15 +455,12 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -519,8 +480,9 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
#
# 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
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -564,7 +526,6 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -576,7 +537,13 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
+
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
#
# acceleration: Assembly language or algorithmic acceleration packages
@@ -584,14 +551,12 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -602,8 +567,6 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -633,11 +596,9 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# 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
@@ -712,10 +673,11 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# 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
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -729,7 +691,6 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -742,7 +703,6 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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
@@ -756,8 +716,7 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# 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_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -779,17 +738,11 @@ CONFIG_PKG_MICROPYTHON_VER_NUM=0x99999
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# 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_PKG_USING_DESIGN_PATTERN is not set
CONFIG_SOC_JUICEVM_RV64=y
CONFIG_BOARD_RV64_FRDM_JUICEVM=y
CONFIG_BSP_USING_UART0=y
diff --git a/bsp/juicevm/board/board.c b/bsp/juicevm/board/board.c
index d2a63a0fc2..4e76fdda8c 100755
--- a/bsp/juicevm/board/board.c
+++ b/bsp/juicevm/board/board.c
@@ -21,10 +21,10 @@ void rt_hw_board_init(void)
rt_hw_uart_init();
// rt_hw_systick_init();
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
/* set console device */
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
-#endif /* RT_USING_CONSOLE */
+#endif
#ifdef RT_USING_HEAP
rt_kprintf("heap: [0x%08x - 0x%08x]\n", (rt_ubase_t) RT_HW_HEAP_BEGIN, (rt_ubase_t) RT_HW_HEAP_END);
diff --git a/bsp/juicevm/rtconfig.h b/bsp/juicevm/rtconfig.h
index 2d15677c29..37619e5c98 100755
--- a/bsp/juicevm/rtconfig.h
+++ b/bsp/juicevm/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 Project Configuration */
/* RT-Thread Kernel */
@@ -12,13 +13,13 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 1024
/* kservice optimization */
-/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
@@ -29,7 +30,6 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* end of Inter-Thread communication */
/* Memory Management */
@@ -37,7 +37,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 +44,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 */
#define ARCH_CPU_64BIT
#define ARCH_RISCV
#define ARCH_RISCV64
@@ -61,7 +58,6 @@
/* C++ features */
-/* end of C++ features */
/* Command shell */
@@ -78,7 +74,6 @@
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
-/* end of Command shell */
/* Device virtual file system */
@@ -87,7 +82,6 @@
#define DFS_FILESYSTEMS_MAX 4
#define DFS_FILESYSTEM_TYPES_MAX 4
#define DFS_FD_MAX 16
-/* end of Device virtual file system */
/* Device Drivers */
@@ -100,13 +94,9 @@
/* Using USB */
-/* end of Using USB */
-/* end of Device Drivers */
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
@@ -117,32 +107,22 @@
/* 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 */
@@ -159,14 +139,10 @@
#define ULOG_OUTPUT_TIME
#define ULOG_OUTPUT_LEVEL
#define ULOG_OUTPUT_TAG
-/* end of log format */
#define ULOG_BACKEND_USING_CONSOLE
-/* end of Utilities */
-/* end of RT-Thread Components */
/* RT-Thread Utestcases */
-/* end of RT-Thread Utestcases */
/* RT-Thread online packages */
@@ -177,21 +153,15 @@
/* 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 */
@@ -200,88 +170,69 @@
/* Hardware Module */
#define MICROPYTHON_USING_MACHINE_UART
-/* end of Hardware Module */
/* System Module */
#define MICROPYTHON_USING_UOS
#define MICROPYTHON_USING_THREAD
-/* end of System Module */
/* Tools Module */
#define MICROPYTHON_USING_UJSON
-/* end of Tools Module */
/* Network Module */
-/* end of Network Module */
/* User Extended Module */
-/* end of User Extended Module */
#define PKG_MICROPYTHON_HEAP_SIZE 8192
#define PKG_USING_MICROPYTHON_LATEST_VERSION
#define PKG_MICROPYTHON_VER_NUM 0x99999
-/* 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 */
+
+/* POSIX extension functions */
+
/* 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_JUICEVM_RV64
#define BOARD_RV64_FRDM_JUICEVM
#define BSP_USING_UART0
diff --git a/bsp/k210/.config b/bsp/k210/.config
index 800d2c10aa..f2f777da6c 100644
--- a/bsp/k210/.config
+++ b/bsp/k210/.config
@@ -19,6 +19,7 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_HOOK_USING_FUNC_PTR=y
CONFIG_RT_USING_IDLE_HOOK=y
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=4096
@@ -30,8 +31,6 @@ CONFIG_SYSTEM_THREAD_STACK_SIZE=4096
#
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set
-# CONFIG_RT_USING_ASM_MEMCPY is not set
-# CONFIG_RT_USING_ASM_MEMSET is not set
# CONFIG_RT_USING_TINY_FFS is not set
# CONFIG_RT_PRINTF_LONGLONG is not set
CONFIG_RT_DEBUG=y
@@ -169,7 +168,6 @@ CONFIG_RT_USING_DFS_DEVFS=y
# Device Drivers
#
CONFIG_RT_USING_DEVICE_IPC=y
-CONFIG_RT_PIPE_BUFSZ=512
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
CONFIG_RT_USING_SERIAL=y
CONFIG_RT_USING_SERIAL_V1=y
@@ -220,9 +218,6 @@ CONFIG_RT_DEBUG_SFUD=y
#
# POSIX layer and C standard library
#
-CONFIG_RT_USING_LIBC=y
-CONFIG_RT_LIBC_USING_TIME=y
-# CONFIG_RT_LIBC_USING_FILEIO is not set
# CONFIG_RT_USING_MODULE is not set
CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
@@ -231,12 +226,20 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
#
# CONFIG_RT_USING_POSIX_FS is not set
CONFIG_RT_USING_POSIX_DELAY=y
-# CONFIG_RT_USING_POSIX_GETLINE is not set
-# CONFIG_RT_USING_POSIX_MMAP is not set
-# CONFIG_RT_USING_POSIX_TERMIOS is not set
-# CONFIG_RT_USING_POSIX_AIO is not set
+# CONFIG_RT_USING_POSIX_CLOCK is not set
# CONFIG_RT_USING_PTHREADS is not set
+#
+# Interprocess Communication (IPC)
+#
+# CONFIG_RT_USING_POSIX_PIPE is not set
+# CONFIG_RT_USING_POSIX_MESSAGE_QUEUE is not set
+# CONFIG_RT_USING_POSIX_MESSAGE_SEMAPHORE is not set
+
+#
+# Socket is in the 'Network' category
+#
+
#
# Network
#
@@ -364,6 +367,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# 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
+# CONFIG_PKG_USING_EZ_IOT_OS is not set
# CONFIG_PKG_USING_NIMBLE is not set
# CONFIG_PKG_USING_OTA_DOWNLOADER is not set
# CONFIG_PKG_USING_IPMSG is not set
@@ -398,12 +402,13 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set
# CONFIG_PKG_USING_HM is not set
# CONFIG_PKG_USING_SMALL_MODBUS is not set
+# CONFIG_PKG_USING_NET_SERVER is not set
#
# security packages
#
# CONFIG_PKG_USING_MBEDTLS is not set
-# CONFIG_PKG_USING_libsodium is not set
+# CONFIG_PKG_USING_LIBSODIUM is not set
# CONFIG_PKG_USING_TINYCRYPT is not set
# CONFIG_PKG_USING_TFM is not set
# CONFIG_PKG_USING_YD_CRYPTO is not set
@@ -411,6 +416,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
# language packages
#
+# CONFIG_PKG_USING_LUATOS_SOC is not set
# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
@@ -425,6 +431,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
# CONFIG_PKG_USING_LVGL is not set
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
+# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set
#
# u8g2: a monochrome graphic library
@@ -450,6 +457,9 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
# CONFIG_PKG_USING_PAINTERENGINE is not set
# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set
+# CONFIG_PKG_USING_MCURSES is not set
+# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_VT100 is not set
#
# tools packages
@@ -499,15 +509,22 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
#
#
-# rt_kprintf: enhanced rt_kprintf packages
+# enhanced kernel services
#
+# 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
+#
+# POSIX extension functions
+#
+# CONFIG_PKG_USING_POSIX_GETLINE is not set
+# CONFIG_PKG_USING_POSIX_WCWIDTH is not set
+# CONFIG_PKG_USING_POSIX_ITOA is not set
+
#
# acceleration: Assembly language or algorithmic acceleration packages
#
-# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
# 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
@@ -516,7 +533,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard
#
# CONFIG_PKG_USING_CMSIS_5 is not set
-# CONFIG_PKG_USING_CMSIS_5_AUX is not set
# CONFIG_PKG_USING_CMSIS_RTOS2 is not set
#
@@ -528,6 +544,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_UC_CLK is not set
# CONFIG_PKG_USING_UC_COMMON is not set
# CONFIG_PKG_USING_UC_MODBUS is not set
+# CONFIG_RT_USING_ARDUINO is not set
# CONFIG_PKG_USING_GUIENGINE is not set
# CONFIG_PKG_USING_CAIRO is not set
# CONFIG_PKG_USING_PIXMAN is not set
@@ -556,7 +573,6 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
-# CONFIG_PKG_USING_WCWIDTH is not set
# CONFIG_PKG_USING_MCUBOOT is not set
# CONFIG_PKG_USING_TINYUSB is not set
# CONFIG_PKG_USING_USB_STACK is not set
@@ -639,9 +655,11 @@ CONFIG_PKG_KENDRYTE_SDK_VERNUM=0x0057
# CONFIG_PKG_USING_BLUETRUM_SDK is not set
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
+# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
# CONFIG_PKG_USING_BL_MCU_SDK is not set
# CONFIG_PKG_USING_SOFT_SERIAL is not set
# CONFIG_PKG_USING_MB85RS16 is not set
+# CONFIG_PKG_USING_CW2015 is not set
#
# AI packages
@@ -680,6 +698,7 @@ CONFIG_PKG_KENDRYTE_SDK_VERNUM=0x0057
# CONFIG_PKG_USING_SNAKE is not set
# CONFIG_PKG_USING_TETRIS is not set
# CONFIG_PKG_USING_DONUT is not set
+# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_LIBCSV is not set
# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
@@ -701,14 +720,11 @@ CONFIG_PKG_KENDRYTE_SDK_VERNUM=0x0057
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
-# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
-# CONFIG_PKG_USING_MCURSES is not set
-# CONFIG_PKG_USING_COWSAY is not set
-# CONFIG_PKG_USING_TERMBOX is not set
+# CONFIG_PKG_USING_DESIGN_PATTERN is not set
CONFIG_BOARD_K210_EVB=y
#
diff --git a/bsp/k210/driver/board.c b/bsp/k210/driver/board.c
index b37249b2e1..861bde3488 100644
--- a/bsp/k210/driver/board.c
+++ b/bsp/k210/driver/board.c
@@ -100,10 +100,10 @@ void rt_hw_board_init(void)
rt_hw_clint_ipi_enable();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
/* set console device */
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
-#endif /* RT_USING_CONSOLE */
+#endif
#ifdef RT_USING_HEAP
rt_kprintf("heap: [0x%08x - 0x%08x]\n", (rt_ubase_t) RT_HW_HEAP_BEGIN, (rt_ubase_t) RT_HW_HEAP_END);
diff --git a/bsp/k210/rtconfig.h b/bsp/k210/rtconfig.h
index f49394196e..b4b28d165c 100644
--- a/bsp/k210/rtconfig.h
+++ b/bsp/k210/rtconfig.h
@@ -15,6 +15,7 @@
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_HOOK_USING_FUNC_PTR
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 4096
@@ -113,7 +114,6 @@
/* Device Drivers */
#define RT_USING_DEVICE_IPC
-#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
#define RT_USING_SERIAL_V1
#define RT_SERIAL_USING_DMA
@@ -132,14 +132,17 @@
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
#define RT_USING_POSIX_DELAY
+/* Interprocess Communication (IPC) */
+
+
+/* Socket is in the 'Network' category */
+
/* Network */
/* Socket abstraction layer */
@@ -214,7 +217,10 @@
/* system packages */
-/* rt_kprintf: enhanced rt_kprintf packages */
+/* enhanced kernel services */
+
+
+/* POSIX extension functions */
/* acceleration: Assembly language or algorithmic acceleration packages */
diff --git a/bsp/lm3s8962/project.Uv2 b/bsp/lm3s8962/project.Uv2
index 510952be21..4df0150108 100644
--- a/bsp/lm3s8962/project.Uv2
+++ b/bsp/lm3s8962/project.Uv2
@@ -4,13 +4,13 @@
Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS'
Group (Applications)
+Group (Compiler)
Group (CPU)
Group (DeviceDrivers)
Group (Drivers)
Group (Filesystem)
Group (Finsh)
Group (Kernel)
-Group (libc)
Group (Libraries)
Group (lwIP)
Group (POSIX)
@@ -18,79 +18,79 @@ Group (utestcases)
File 1,1,
File 1,1,
-File 2,1,<..\..\libcpu\arm\common\backtrace.c>
-File 2,1,<..\..\libcpu\arm\common\showmem.c>
-File 2,1,<..\..\libcpu\arm\common\div0.c>
-File 2,1,<..\..\libcpu\arm\cortex-m3\cpuport.c>
-File 2,2,<..\..\libcpu\arm\cortex-m3\context_rvds.S>
-File 3,1,<..\..\components\drivers\src\waitqueue.c>
-File 3,1,<..\..\components\drivers\src\pipe.c>
-File 3,1,<..\..\components\drivers\src\ringblk_buf.c>
-File 3,1,<..\..\components\drivers\src\completion.c>
-File 3,1,<..\..\components\drivers\src\workqueue.c>
-File 3,1,<..\..\components\drivers\src\dataqueue.c>
-File 3,1,<..\..\components\drivers\src\ringbuffer.c>
-File 4,1,
-File 4,1,
-File 4,1,
-File 4,1,
-File 5,1,<..\..\components\dfs\src\dfs_fs.c>
-File 5,1,<..\..\components\dfs\src\dfs.c>
-File 5,1,<..\..\components\dfs\src\dfs_file.c>
-File 5,1,<..\..\components\dfs\filesystems\devfs\devfs.c>
-File 5,1,<..\..\components\dfs\filesystems\elmfat\ff.c>
-File 5,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c>
-File 5,1,<..\..\components\dfs\filesystems\elmfat\ffunicode.c>
-File 6,1,<..\..\components\finsh\shell.c>
-File 6,1,<..\..\components\finsh\msh.c>
-File 7,1,<..\..\src\device.c>
-File 7,1,<..\..\src\mem.c>
-File 7,1,<..\..\src\ipc.c>
-File 7,1,<..\..\src\idle.c>
-File 7,1,<..\..\src\object.c>
-File 7,1,<..\..\src\clock.c>
-File 7,1,<..\..\src\kservice.c>
-File 7,1,<..\..\src\components.c>
-File 7,1,<..\..\src\irq.c>
-File 7,1,<..\..\src\scheduler.c>
-File 7,1,<..\..\src\mempool.c>
-File 7,1,<..\..\src\thread.c>
-File 7,1,<..\..\src\timer.c>
-File 8,1,<..\..\components\libc\compilers\armlibc\syscalls.c>
-File 8,1,<..\..\components\libc\compilers\armlibc\mem_std.c>
-File 8,1,<..\..\components\libc\compilers\armlibc\libc_syms.c>
-File 8,1,<..\..\components\libc\compilers\common\time.c>
-File 8,1,<..\..\components\libc\compilers\common\stdlib.c>
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,2,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
-File 9,1,
+File 2,1,<..\..\components\libc\compilers\armlibc\syscall_mem.c>
+File 2,1,<..\..\components\libc\compilers\armlibc\syscalls.c>
+File 2,1,<..\..\components\libc\compilers\armlibc\libc_syms.c>
+File 2,1,<..\..\components\libc\compilers\common\time.c>
+File 2,1,<..\..\components\libc\compilers\common\stdlib.c>
+File 3,1,<..\..\libcpu\arm\common\backtrace.c>
+File 3,1,<..\..\libcpu\arm\common\div0.c>
+File 3,1,<..\..\libcpu\arm\common\showmem.c>
+File 3,1,<..\..\libcpu\arm\cortex-m3\cpuport.c>
+File 3,2,<..\..\libcpu\arm\cortex-m3\context_rvds.S>
+File 4,1,<..\..\components\drivers\src\workqueue.c>
+File 4,1,<..\..\components\drivers\src\pipe.c>
+File 4,1,<..\..\components\drivers\src\completion.c>
+File 4,1,<..\..\components\drivers\src\ringbuffer.c>
+File 4,1,<..\..\components\drivers\src\waitqueue.c>
+File 4,1,<..\..\components\drivers\src\dataqueue.c>
+File 4,1,<..\..\components\drivers\src\ringblk_buf.c>
+File 5,1,
+File 5,1,
+File 5,1,
+File 5,1,
+File 6,1,<..\..\components\dfs\src\dfs_fs.c>
+File 6,1,<..\..\components\dfs\src\dfs.c>
+File 6,1,<..\..\components\dfs\src\dfs_file.c>
+File 6,1,<..\..\components\dfs\filesystems\devfs\devfs.c>
+File 6,1,<..\..\components\dfs\filesystems\elmfat\ffunicode.c>
+File 6,1,<..\..\components\dfs\filesystems\elmfat\ff.c>
+File 6,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c>
+File 7,1,<..\..\components\finsh\shell.c>
+File 7,1,<..\..\components\finsh\msh.c>
+File 8,1,<..\..\src\kservice.c>
+File 8,1,<..\..\src\scheduler.c>
+File 8,1,<..\..\src\thread.c>
+File 8,1,<..\..\src\mempool.c>
+File 8,1,<..\..\src\irq.c>
+File 8,1,<..\..\src\idle.c>
+File 8,1,<..\..\src\object.c>
+File 8,1,<..\..\src\clock.c>
+File 8,1,<..\..\src\timer.c>
+File 8,1,<..\..\src\device.c>
+File 8,1,<..\..\src\components.c>
+File 8,1,<..\..\src\mem.c>
+File 8,1,<..\..\src\ipc.c>
File 9,1,
+File 9,1,
+File 9,1,
File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,2,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
+File 9,1,
File 9,1,
+File 9,1,
File 9,1,
+File 9,1,
+File 9,1,
File 10,1,<..\..\components\net\lwip-1.4.1\src\netif\etharp.c>
File 10,1,<..\..\components\net\lwip-1.4.1\src\api\netdb.c>
File 10,1,<..\..\components\net\lwip-1.4.1\src\core\ipv4\autoip.c>
@@ -192,7 +192,7 @@ Options 1,0,0 // Target 'RT-Thread-lm3s'
RV_STAVEC ()
ADSCCFLG { 5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
ADSCMISC ()
- ADSCDEFN (PART_LM3S8962, RT_USING_ARM_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND)
+ ADSCDEFN (PART_LM3S8962, __RTTHREAD__, RT_USING_ARM_LIBC, __CLK_TCK=RT_TICK_PER_SECOND)
ADSCUDEF ()
ADSCINCD (..\..\components\net\lwip-1.4.1\src;..\..\components\libc\compilers\common;Libraries;..\..\include;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\dfs\filesystems\devfs;..\..\components\libc\posix\ipc;drivers;..\..\components\net\lwip-1.4.1\src\include\netif;.;..\..\components\net\lwip-1.4.1\src\include;..\..\libcpu\arm\cortex-m3;..\..\components\dfs\include;applications;..\..\examples\utest\testcases\kernel;..\..\components\net\lwip-1.4.1\src\include\ipv4;..\..\components\finsh;..\..\components\dfs\filesystems\elmfat;..\..\components\libc\compilers\common\nogcc;..\..\components\libc\posix\io\poll;..\..\components\net\lwip-1.4.1\src\arch\include)
ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
diff --git a/bsp/lm3s9b9x/project.Uv2 b/bsp/lm3s9b9x/project.Uv2
index a03d51809e..9884210f9a 100644
--- a/bsp/lm3s9b9x/project.Uv2
+++ b/bsp/lm3s9b9x/project.Uv2
@@ -4,72 +4,77 @@
Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS'
Group (Applications)
+Group (Compiler)
Group (CPU)
Group (Drivers)
Group (Finsh)
Group (Kernel)
-Group (libc)
Group (Libraries)
Group (lwIP)
Group (POSIX)
Group (utestcases)
-File 1,1,
File 1,1,
-File 2,1,<..\..\libcpu\arm\common\showmem.c>
-File 2,1,<..\..\libcpu\arm\common\backtrace.c>
-File 2,1,<..\..\libcpu\arm\common\div0.c>
-File 2,2,<..\..\libcpu\arm\cortex-m3\context_rvds.S>
-File 2,1,<..\..\libcpu\arm\cortex-m3\cpuport.c>
-File 3,1,
-File 3,1,
-File 3,1,
-File 3,1,