17823 Commits

Author SHA1 Message Date
Shaun
040c029055 fix(drivers/block): replace GNU ?: extension with standard C ternary in blk.c 2026-02-22 13:04:31 +08:00
theqengineer
85b656b14d chore: fix typo in components and libcpu 2026-02-13 21:54:59 +08:00
CXSforHPU
b0c55f5bf5 [gd32][i2c]Add an example for measuring the onboard peripherals of the I2C board 2026-02-13 11:03:44 +08:00
wdfk-prog
e5e29350b8 fix(ulog): Avoid async ulog empty wakeups and missed notifications 2026-02-13 11:00:13 +08:00
wdfk-prog
cbc759d6a5 refactor(ulog): Unify ulog warning output with ulog_warn_once 2026-02-13 11:00:13 +08:00
theqengineer
aa79cd8ac5 [bsp][stm32]: correct the errors in README of U series 2026-02-12 19:39:30 +08:00
wdfk-prog
db6c0ddbf3 feat(console): Add console output enable switch
- rt_console_output_enabled()/rt_console_output_is_enabled() gate rt_kprintf/rt_kputs output with the switch
2026-02-12 09:24:18 +08:00
O-O-BOOK
9412a2899d [style][components/fal_rtt] misrac style 2026-02-11 14:51:46 +08:00
yefeng
9aff6f8646 [gd32][i2c] Add GD32VW553xx hardware I2C driver 2026-02-11 14:36:26 +08:00
Just Chen
ec5f5e678f [docs] 修复 STM32 BSP 制作教程中的Sconscrip文件教程错误 (#11189) 2026-02-10 17:33:59 +08:00
wdfk-prog
27b2ba5556 fix(CAN): Avoid double counting RX overflow drops 2026-02-10 11:41:41 +08:00
Rbb666
c2103a5cc9 Revert "修复MCXN947开发板arduino接口中的串口无法使用以及串口再配置后无法收到数据的问题."
This reverts commit 1bcd5c8f16.
2026-02-10 11:39:19 +08:00
vandoul
1bcd5c8f16 修复MCXN947开发板arduino接口中的串口无法使用以及串口再配置后无法收到数据的问题. 2026-02-10 10:18:45 +08:00
GuEe-GUI
4e5c1cfb44 [bsp][rockchip] fixup rk3500 build and run
Linker: https://github.com/RT-Thread/rt-thread/issues/11150

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-02-09 22:07:32 +08:00
Onlyou_tzZ
a69d381828 更新国民技术BSP架构,添加N32H7xx系列BSP
修改clang_format-ignore文件,根据反馈修改n32h7xxx/libraries/N32_Drivers/nano/*下的文件格式,修改n32h7xxx/n32/n32hxxx/n32h760zil7-stb/applications/main.c文件,区别处理Nano下头文件包含

将N32 BSP的.clang-format-ignore文件放入libraries同级目录

忽略库文件格式检查

fix(cherryusb): fix dwc2 host size check

Signed-off-by: sakumisu <1203593632@qq.com>

[components][clock_time] Refactor time subsystem around clock_time (#11111)

* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue

解决N32 BSP project.ewp和project.uvprojx冲突

更新RTT最新同步

sdio: fix missing card status polling after CMD6 in eMMC DDR mode switch

fix[dfs_v1]: prevent vnode ref underflow and double release on close/fd release

feat[STM32][CAN]: drain RX FIFO frames in ISR with a bounded limit to reduce overruns

- Add CAN_ISR_DRAIN_LIMIT (default 3) to cap ISR work
- Drain multiple frames per RX0/RX1 interrupt to reduce FIFO FULL/OVERRUN

docs(can): improve dev_can.h docs for batched RX example

fix[STM32][RTC]: Compute tv_usec from SecondFraction/SubSeconds and skip during shift pending

Use the generic SecondFraction/SubSeconds formula when SSR/PRER are available.
If SHPF is present and a shift is pending, keep tv_usec at 0.
Platforms without SSR/PRER (e.g. F1) default to 0.

[bsp][gd32]:add gd32vw533xx pwm support

Update Nsing's BSP architecture and add N32H7xx series BSPs. (#11159)

* 更新国民技术BSP架构,添加N32H7xx系列BSP

* 修改clang_format-ignore文件,根据反馈修改n32h7xxx/libraries/N32_Drivers/nano/*下的文件格式,修改n32h7xxx/n32/n32hxxx/n32h760zil7-stb/applications/main.c文件,区别处理Nano下头文件包含

* 将N32 BSP的.clang-format-ignore文件放入libraries同级目录

* 忽略库文件格式检查

* 解决N32 BSP project.ewp和project.uvprojx冲突

* 更新RTT最新同步

rename i2c mutex

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>

Squashed commit of the following:

commit cadd095cd34bb2eaab5e39466f56674a9fe3f19b
Merge: 5ad4edcf39 68da106253
Author: Onlyou_tzZ <97173915+OnlyoutzZ@users.noreply.github.com>
Date:   Wed Feb 4 22:50:54 2026 +0800

    Merge branch 'RT-Thread:master' into master

commit 68da106253
Author: CYFS <2805686936@qq.com>
Date:   Wed Feb 4 16:45:30 2026 +0800

    [components][drivers]:fix wlan err

commit 5ad4edcf39330f01f698d95c322c3d0f8aae2feb
Author: Onlyou_tzZ <17393117531@163.com>
Date:   Wed Feb 4 20:22:40 2026 +0800

    更新BSP下README.md中N32相关的描述

更新BSP下README.md中N32相关的描述

[components][drivers]:fix wlan err

[components][lwip]: fix ping timeout handling and support LWIP_SO_SNDRCVTIMEO_NONSTANDARD

[gd32][uart] Add GD32VW553 series UART driver support (#11147)

* feat(gd32): add GD32VW55x series USART driver support

- Add support for GD32VW55x series UART/USART peripherals
- Implement proper GPIO alternate function configuration for GD32VW55x
- Add conditional compilation for different GD32 series (GD32VF103V vs GD32VW55x)
- Remove unused UART3/UART4 configurations from Kconfig

* Update drv_usart.c

* Update drv_usart.h follow AI Review.

* Update bsp/gd32/risc-v/libraries/gd32_drivers/drv_usart.c

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: optimize gd32 uart driver error messages

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-06 21:07:47 +08:00
haitaoZhang
1254af44f2 [gd32][uart] Add GD32VW553 series UART driver support (#11147)
* feat(gd32): add GD32VW55x series USART driver support

- Add support for GD32VW55x series UART/USART peripherals
- Implement proper GPIO alternate function configuration for GD32VW55x
- Add conditional compilation for different GD32 series (GD32VF103V vs GD32VW55x)
- Remove unused UART3/UART4 configurations from Kconfig

* Update drv_usart.c

* Update drv_usart.h follow AI Review.

* Update bsp/gd32/risc-v/libraries/gd32_drivers/drv_usart.c

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: optimize gd32 uart driver error messages

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 22:14:48 +08:00
CYFS
25b6953501 [components][lwip]: fix ping timeout handling and support LWIP_SO_SNDRCVTIMEO_NONSTANDARD 2026-02-05 17:08:37 +08:00
CYFS
68da106253 [components][drivers]:fix wlan err 2026-02-04 22:13:54 +08:00
copilot-swe-agent[bot]
5e04105723 rename i2c mutex
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2026-02-04 09:47:00 +08:00
Onlyou_tzZ
4d063acc29 Update Nsing's BSP architecture and add N32H7xx series BSPs. (#11159)
* 更新国民技术BSP架构,添加N32H7xx系列BSP

* 修改clang_format-ignore文件,根据反馈修改n32h7xxx/libraries/N32_Drivers/nano/*下的文件格式,修改n32h7xxx/n32/n32hxxx/n32h760zil7-stb/applications/main.c文件,区别处理Nano下头文件包含

* 将N32 BSP的.clang-format-ignore文件放入libraries同级目录

* 忽略库文件格式检查

* 解决N32 BSP project.ewp和project.uvprojx冲突

* 更新RTT最新同步
2026-02-03 18:56:53 +08:00
CYFS
1c0926f223 [bsp][gd32]:add gd32vw533xx pwm support 2026-02-03 18:51:15 +08:00
wdfk-prog
f9de290991 fix[STM32][RTC]: Compute tv_usec from SecondFraction/SubSeconds and skip during shift pending
Use the generic SecondFraction/SubSeconds formula when SSR/PRER are available.
If SHPF is present and a shift is pending, keep tv_usec at 0.
Platforms without SSR/PRER (e.g. F1) default to 0.
2026-02-03 18:50:17 +08:00
wdfk-prog
06e829b1b3 docs(can): improve dev_can.h docs for batched RX example 2026-02-03 18:40:45 +08:00
wdfk-prog
1eaa85c581 feat[STM32][CAN]: drain RX FIFO frames in ISR with a bounded limit to reduce overruns
- Add CAN_ISR_DRAIN_LIMIT (default 3) to cap ISR work
- Drain multiple frames per RX0/RX1 interrupt to reduce FIFO FULL/OVERRUN
2026-02-03 18:40:45 +08:00
wdfk-prog
2b95c3409c fix[dfs_v1]: prevent vnode ref underflow and double release on close/fd release 2026-02-02 13:33:32 +08:00
Damon
88c1e6c88a sdio: fix missing card status polling after CMD6 in eMMC DDR mode switch 2026-02-01 14:02:10 +08:00
Bernard Xiong
743b614875 [components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
sakumisu
f2a646cff4 fix(cherryusb): fix dwc2 host size check
Signed-off-by: sakumisu <1203593632@qq.com>
2026-01-29 14:23:39 +08:00
CYFS
c374aa2b19 [bsp][nxp]:fix mcxa346 ci err 2026-01-28 13:54:16 +08:00
R b b666
3e2d924e9d [driver/usb]Update dwc2/usb_glue_infineon.c to add the missing header file. (#11158) 2026-01-28 10:54:30 +08:00
sakumisu
cdc50db570 update(cherryusb): update to v1.6.0
Signed-off-by: sakumisu <1203593632@qq.com>
2026-01-28 09:46:34 +08:00
vm22
97e1f014a1 cmake: make CPPDEFINES handling robust for SCons-generated values
[tools][cmake] fix type handling when generating CMake targets

[Root Cause]
Unexpected macro definition types during `scons --target=cmake`
could trigger a TypeError and abort CMakeLists.txt generation.

[Solution]
Add support for handling different macro definition types.

[Affect Area]
cmake.py

[Test Suggestion]
Run `scons --target=cmake` and verify CMakeLists.txt is generated
successfully with different macro definition formats.
2026-01-27 13:04:11 +08:00
wdfk-prog
5d1f199e9e feat(fal): add Kconfig options for device name length and block count 2026-01-26 17:24:39 +08:00
dongly
f556099146 [bsp] fix rtconfig.py SyntaxWarning 2026-01-21 15:21:34 +08:00
lhxj
7641ef6885 [drivers] Fix OFW bus conflict and prevent duplicate device creation
Problem:
When enumerating device tree nodes, platform bus and native buses (I2C/SPI)
may create duplicate devices for the same OFW node, causing cross-bus conflicts.
This triggers assertion failure '(dev->bus != new_bus)' in
rt_bus_reload_driver_device() during boot on minimal DM-enabled systems.

Root Cause:
1. Platform bus tries to reload devices that already belong to other buses
   by calling rt_bus_reload_driver_device(dev->bus, dev), which violates
   the API contract (requires dev->bus != new_bus).
2. Native buses (I2C/SPI) do not mark OFW nodes as occupied, so platform
   bus creates duplicate platform devices for I2C/SPI client nodes.

Solution:
1. components/drivers/core/platform_ofw.c: Return RT_EOK when np->dev exists,
   letting the native bus handle device lifecycle instead of cross-bus reload.
2. components/drivers/i2c/dev_i2c_bus.c: Mark i2c_client_np->dev during scan
   to prevent platform bus from duplicating I2C client devices.
3. components/drivers/spi/dev_spi_bus.c: Mark spi_dev_np->dev during scan
   to prevent platform bus from duplicating SPI devices.

Tested on Spacemit K1 RISC-V platform with minimal DM configuration.

Signed-off-by: lhxj <2743257167@qq.com>
2026-01-20 22:05:28 +08:00
PeakRacing
306505ea24 update:更新维护者信息 2026-01-20 13:27:42 +08:00
ricky
a68cc2e71a [tool] tools/targets/vsc.py : improve compile_commands handling and w… (#11138)
[tool] tools/targets/vsc.py : improve compile_commands handling and workspace excludes
  - broaden source file extension detection to include C++ and asm
  - resolve compile_commands path to absolute and pass its directory to clangd
  - limit excludes scan to rt-thread/packages and always include board/linker_scripts
2026-01-19 11:31:00 +08:00
Eric Chan
b3c71a6f34 Fix: fix xpt2046_touch_readpoint type error
Fix & Improve: fix touch event bug with LVGL

Fix touch event bug with LVGL.
Improve the touch sliding experience of resistive screens.

[ci][stm32f407] add lcd attach config CI check

Fix: minor modification

Fix format issue.

Fix Ci attach file.
2026-01-19 09:51:26 +08:00
wdfk-prog
d76eca1384 fix(Kconfig): Update the default value of FINSH_THREAD_PRIORITY to support different thread priorities 2026-01-19 09:47:48 +08:00
milo
3ca5cd53f5 [fix] fix normalization issue of mktime and timegm 2026-01-17 19:12:40 -05:00
DaiLingxiang
9bf3a54191 bsp/stm32f407-micu:add aht20,icm20608,ssd1306 support 2026-01-15 23:31:35 -05:00
westcity-YOLO
949cd2c720 Add standardized utest documentation block 2026-01-15 13:39:00 +08:00
Eric Chan
8dc7db90b2 Fix: add sdcard detect before mount
Add sdcard detect before mount in case auto mount failed.
2026-01-14 16:31:08 +08:00
Tang Qingmei
6c2b9a8f20 [libcpu][aarch64] Replace x8 with a callee-saved register 2026-01-13 13:42:26 +08:00
Copilot
570cc03579 [risc-v][common64] Make rt_hw_cpu_shutdown weak to resolve multiple definition with RT_USING_DM (#11100)
* Initial plan

* [risc-v][common64] Make rt_hw_cpu_shutdown weak to fix multiple definition error

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2026-01-12 17:15:42 +08:00
AngryProton
f4566f14dc [drivers/blk] 解决块设备写入不对齐数据失败的问题 #11103 2026-01-12 17:14:59 +08:00
laidene
68a5c6a83b [libcpu][arm][cortex-a] Fixup mmu setup early
Correct the starting virtual address of _reset alignment to 16MB
2026-01-10 13:30:09 +08:00
laidene
9c60c5fb06 Update libcpu/arm/cortex-a/gic.c 2026-01-09 10:19:52 +08:00
laidene
ff5c5eab6b [docs][libcpu][arm][cortex-a] add comment for gic.c 2026-01-09 10:19:52 +08:00
GuEe-GUI
45fe9ee96b [bsp][rockchip] Port to DM
RK3588/RK3576/RK356x/RK3308

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-01-08 21:33:25 +08:00