Commit Graph

17754 Commits

Author SHA1 Message Date
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
weidong
f671816aae [bsp/ft32] 新增 ft32f407xe-starter 板级支持 (#11130)
新增 ft32f407xe-starter 板级支持
2026-01-08 13:28:56 +08:00
wdfk-prog
3a2d67e965 fix(components): validate RT_MAIN_THREAD_PRIORITY range at build time 2026-01-07 17:47:48 +08:00
AngryProton
3d8114bcfe [FIX][fal]char设备类型补充缺失的入参,适配DFSv2框架 (#11112)
* [FIX][fal]补充缺失的入参,适配DFSv2框架

* [FIX][fal]正确声明入参的数据类型

* [chg]按审查建议修改变量类型和代码格式。
2026-01-06 17:12:55 +08:00
CYFS
96bce36533 [tools][cmake]:Fix the cmake creation error of scons 2026-01-06 16:47:43 +08:00
wdfk-prog
bd22f2fa6a fix(dfs): align fd API declarations with DFS_USING_POSIX 2026-01-06 16:44:35 +08:00
AngryProton
7384a8e035 [FIX]Locking for dfs_dentry_dump must be consistent with that of all other dentry functions. 2026-01-06 12:03:41 +08:00
xiyao
45511af114 [add][RTduino] Fitter RTduino in frdm-mcxa346 (#11067)
* add mcxa346-RTduino
2026-01-06 09:37:55 +08:00
wdfk-prog
9d1d4a08a9 feat:[stm32][can]: Validate CAN filter bank settings and skip invalid items 2026-01-05 16:28:13 +08:00
Runcheng Lu
17d026c6cc [fix] drivers: spi: refactor SPI bit operations into independent configuration
- Add RT_USING_SPI_BITOPS as a separate configurable option
- Make RT_USING_SOFT_SPI depend on RT_USING_SPI_BITOPS
- Adjust build order in SConscript for proper com

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2026-01-04 17:04:34 +08:00
caicunjun
a73f5d1032 [docs][libcpu][arm][cortex-a] add comment for mmu.h (#11104)
* [docs][libcpu][arm][cortex-a] add comment for mmu.h

* [docs][libcpu][arm][cortex-a] beautify comment for mmu.h

* [docs][libcpu][arm][cortex-a] delete extra space at the end of lines
2026-01-04 17:03:20 +08:00
Copilot
7c05661ae9 [virtio] Fix queue_sel ordering in virtio_queue_init and virtio_queue_destroy #11114 2026-01-04 16:55:19 +08:00
CYFS
4463dbcf23 ci:arm_smart ci build erro (#11113) 2026-01-03 15:22:29 +08:00
蒙蒙plus
d9c74834b0 fix: 更换去重算法,保证工程输出一致性
便于 git管理
2026-01-01 22:57:49 -05:00
Dailingxiang1
c39e92f4c1 add i2c,timer,pwm support
revise the README.md
2025-12-27 11:58:46 +08:00
angryproton
df85c74265 [FIX][DFSv2][ELMFAT]解决dfs_elm_unlink在FF_VOLUMES为1时赋值drivers_fn引用未定义变量导致编译报错的问题 2025-12-27 10:46:50 +08:00
CYFS
3a78e8e74c feat[nxp][can]:add mcxa346 can device 2025-12-26 21:47:15 +08:00
GUI
c6498b5f65 [sdio][dm] update for DM (#11078)
* [sdio][dm] import Kconfig for DM

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [sdio] fixup IRQ and mmcsd threads' stack size default

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [sdio][dm] Support DM mode

1. Support features read by DM.
2. Support regulator API in drivers.
3. Support send tuning option CMD.
4. Replace `switch_uhs_voltage` by `signal_voltage_switch`.

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [dm][sdhci] Cleanup the SDHCI

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [sdio][dm] add new SDIO/SDHCI drivers

1. SDHCI support on PCI bus
2. Synopsys DesignWare MMC Family(MMIO/PCI)

Signed-off-by: GuEe-GUI <2991707448@qq.com>

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-26 21:04:42 +08:00
caicunjun
71d802c415 [docs][libcpu][arm][cortex-a] update comment for start_gcc.S #11089 2025-12-26 21:04:23 +08:00
angryproton
ec0c2bbbd8 [FIX][DFSv2][ELMFAT]修复多线程环境下lseek返回值概率性被篡改的问题 2025-12-26 21:03:26 +08:00