5055 Commits

Author SHA1 Message Date
ligr
7b8e8c95ba [components/lwp]add doxygen comment for lwp_dbg.c. 2025-09-26 16:52:46 +08:00
Chen Wang
495c8cfc25 utest: remove RT_UTEST_USING_ALL_CASES
Many modules' utests currently don't support enabling all
tests at once. Furthermore, some modules' tests are complex,
for example due to their numerous dependencies on other
modules. This makes it nearly impossible to enable all
tests with a single global switch. Consequently, the
previously defined `RT_UTEST_USING_ALL_CASES` has lost
its original meaning.

We recommend deprecating this configuration switch. If a
module needs to enable a group of functional tests through
its own configuration, this local enable all switch should
be implemented by the module itself, and a global RTT enable
switch will no longer be provided.

If such a requirement arises in the future, we recommend
careful design, especially considering how to ensure that
turning on a single switch enables all dependencies for
all involved modules for ease of use.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-26 09:57:54 +08:00
ligr
0785e224ce [components/lwp]add doxygen comment for lwp avl implementation. 2025-09-25 13:46:21 +08:00
wdfk-prog
7e5cd48360 feat[SPI]: Add SPI device detach function 2025-09-25 11:41:58 +08:00
ligr
a84e75527d [components/lwp]add doxygen comment for lwp_tid. 2025-09-24 18:14:03 +08:00
Yonggang Luo
66b2bcc080 RT_TIMER_CTRL_SET_TIME only accept rt_tick_t, pass rt_tick_t instead int/rt_int32_t 2025-09-24 18:12:36 +08:00
Yonggang Luo
4da1ef0f3d cast to (rt_tick_t)RT_WAITING_FOREVER for explicit 2025-09-24 18:12:36 +08:00
Yonggang Luo
0e9e50fe6d _rt_wqueue_wait use rt_tick_t 2025-09-24 18:12:36 +08:00
Yonggang Luo
78dfa1fd9a Trim trailing spaces of components/libc/posix/io/poll/poll.c
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
2025-09-24 18:12:36 +08:00
Guorui Li
2cd44e23c0 [components/lwp]add doxygen comment for lwp_pid. #10702 2025-09-19 18:18:26 +08:00
Rbb666
d7dded112e [utest][netdev]add netdev api testcases. 2025-09-18 22:27:34 +08:00
蒙蒙plus
df8c29a01d [components][finsh] 清理掉无用的拷贝操作 (#10699)
清理掉无用的拷贝操作
2025-09-17 09:30:58 +08:00
Chen Wang
b03bb709b9 utest: update naems using new rule
The names of the utest cases defined in their respective
modules have been updated.

Some utest case names are not yet in their respective modules
because their paths need to be finalized before their unique
names can be determined. Currently, these names do not
appear to conflict with the unified names. These include:

- utest cases still in examples
- bsp/qemu-virt64-riscv/applications/test/test_vector/test_vector.c.
  The entire test case should probably be placed in libcpu/risc-v
  rather than bsp.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-15 19:40:31 +08:00
Rbb666
1e81571256 [net/netdev]Fixed compilation errors when enabling IPv6 and IPv4 dual-stack support. 2025-09-15 11:21:34 +08:00
R b b666
ff26c0c4b3 [netdev]Fixed netdev_unregister missing correct return value. (#10693) 2025-09-14 11:35:20 +08:00
Guorui Li
5455622ad3 [components/lwp]add doxygen comment for lwp_args. (#10696) 2025-09-14 11:26:31 +08:00
Rbb666
4832f0482a [utest][lwip]add lwip api testcase. 2025-09-10 15:22:39 +08:00
Rbb666
b525d2c535 [fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c 2025-09-09 16:42:16 +08:00
GuEe-GUI
09d4d5f6fe [DM/NVME] Fixup the QUEUE alloc errorno check
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-09-07 07:54:01 +08:00
Rbb666
79b14848bd [add][testcases]add filesystem(dfs api & posix api) testcase. 2025-09-07 07:52:08 +08:00
wdfk-prog
6881f96ea5 feat: Initialize local variables to prevent GCC compilation warnings 2025-09-06 10:51:57 +08:00
wdfk-prog
5abce84ca7 fix: 在没有定义FINSH_USING_SYMTAB时编译报错以及IPC及finsh启用时自动选择必要的功能 2025-09-04 21:42:10 +08:00
Chen Wang
c0142c786e utest/utest: intergare testcases into utest framework (#10665)
* utest: move testcases of Utest from example to Utest folder

Create unit-test-cases for the Utest framework subsystem
according to "How to add utest cases into RT-Thread for your module." [1]

Link:
https://rt-thread.github.io/rt-thread/page_component_utest.html#autotoc_md804
[1]

The original `components/utilities/utest` directory already has unit
testcases, which are more comprehensive than the testcases in
`examples/utest/testcases/utest/`. Therefore, simply deleted
the test cases in `examples` and used the existing testcases
in the utest framework.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* utest/utest: rename name and add license text

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-02 18:48:07 +08:00
Tang Haojin
728d9e4919 fix(ioctl): _IOR() overflows in switch (int) #10650 2025-09-01 12:46:43 +08:00
maosql
9567564e86 fix: warnings generated by Kconfig. 2025-09-01 11:50:41 +08:00
Rbb666
bc4c036942 [Add][kservice]Add thread usage support. 2025-08-30 13:10:14 +08:00
Chen Wang
0fdeb4c077 utest: integrate config option for utest of audio driver
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-08-26 10:26:47 +08:00
GuEe-GUI
1892b27a45 [DM/THERMAL] Fixup the PWM-FAN remove handle data ptr
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-26 09:34:15 +08:00
GuEe-GUI
7101b22ffb [DM/THERMAL] Fixup the C99, 6.8.1 Labeled statements p4
Append a null statement for "Any statement may be preceded by a prefix that declares an identifier as a label name."

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-26 09:34:15 +08:00
GuEe-GUI
af2c8ae174 [DM/PCI] Add SoC PCI Kconfig import
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-25 11:12:02 +08:00
GuEe-GUI
7d96990eff [DM/PCI] Fixup the DWC PCI resource release
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-25 11:12:02 +08:00
GuEe-GUI
77e845e018 [DM/PCI] Fixup the bus-range probe
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-25 11:12:02 +08:00
GuEe-GUI
8731289055 [DM/PCI] Fixup the MSI info shuold free
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-08-25 11:12:02 +08:00
RyanCW
a1a8bc5422 [component][net][at] at_client增加deInit接口 (#10598)
* [component][net][at] at_client增加deInit接口

* [component][net][at] at_client优化serial_v2适配
2025-08-21 18:49:35 +08:00
RyanCW
e0243e87c0 [component][drivers][serial_v2] 优化serial_v2 (#10603)
* [bsp][stm32][drv_usart_v2] uart_isr不再使用链式调用,RXNE内循环读空,一些细节优化

* [componnents][drivers][serial_v2] 增加获取config接口,使用rt_tick_get_delta替代内部的时间绕回判断,写满丢弃策略rx接收数据错乱修复,clang-tidy和cppcheck审查优化

* [utest][drivers][serial_v2] 测试例程进行优化

* [bsp][stm32][drv_usart_v2] 撤回DMAMUX1修改

* [componnents][drivers][serial_v2] read和write不再返回-RT_ETIMEOUT改为已发送或读取的字节数,细节优化

* [utest][drivers][serial_v2] 增加单独的timeout测试,减少测试中的硬延时

* [utest][drivers][serial_v2] 漏提交的posix下标志位

* [utest][drivers][serial_v2] 优化测试例程

* [bsp][stm32][drv_usart_v2] transmit返回错误值,RXNE增加超时逻辑

* [componnents][drivers][serial_v2] 增加transmit错误处理,增加超时退出机制显式的避免死循环

* [componnents][drivers][serial_v2] 适配serial_v2和posix非libc标准库下的console和shell
2025-08-16 11:51:57 +08:00
wdfk-prog
302370720e [driver][serial] V1]: fix correct data loss logic when RX ring buffer is full
In the serial ISR (`rt_hw_serial_isr`), the previous logic for handling a full RX FIFO was flawed. When the buffer was filled, it would increment `get_index` (`get_index += 1`).

This had two negative consequences:
1.  It effectively discarded the oldest byte of data prematurely.
2.  It reduced the usable capacity of a buffer of size N to N-1. For example, a 64-byte buffer could only ever hold 63 readable bytes after becoming full.

This patch corrects the behavior by implementing a standard overwriting ring buffer strategy. When the buffer is full, the logic is changed to `get_index = put_index`.

This ensures that:
- When new data arrives, it correctly overwrites the oldest data.
- The `get_index` is advanced along with the `put_index`, correctly marking the new start of the buffer.
- The full N-byte capacity of the buffer is utilized, always storing the N most recent bytes.

This change resolves the unexpected data loss and makes the buffer behavior correct and predictable.
2025-08-10 12:10:16 +08:00
sakumisu
38499668bf update(cherryusb): update to v1.5.2
Signed-off-by: sakumisu <1203593632@qq.com>
2025-08-08 14:50:52 +08:00
cmbjxxiao
37d902537c [arm_compiler_v4/v5] define rt_packed as __packed #10553 2025-08-06 15:16:18 +08:00
liuyucai
236e830b65 [update] <components>:finsh/shell.c
添加以下功能(需要kconfig使能FINSH_USING_WORD_OPERATION)
1 ctrl+back 按单词删除
2 ctrl+左右箭头 按单词切换光标

Signed-off-by: Yucai Liu <1486344514@qq.com>
2025-08-06 11:26:55 +08:00
ligr
32e93ade4d [components/dfs]add doxygen comments for dfs sequence file in dfs_v2. 2025-08-04 09:55:01 +08:00
ligr
6015e149e7 [components/dfs]add doxygen comments for dfs_file.c in dfs_v2. 2025-08-04 09:49:45 +08:00
ligr
e143866eb8 [components/dfs]add doxygen comments for dfs_file_mmap.c in dfs_v2. 2025-08-04 09:48:12 +08:00
ligr
18c8c8b2f7 [components/dfs]add and optimize doxygen comments for dfs.c in dfs_v2. 2025-08-04 09:46:00 +08:00
Guorui Li
6a2dcd6a0b [components/dfs]add doxygen comments for dfs_fs.c in dfs_v2. #10538 2025-08-04 09:44:56 +08:00
ligr
8e18f354c5 [components/dfs]add doxygen comments for dfs pcache file in dfs_v2. 2025-08-03 10:53:26 +08:00
rcitach
ae50e406da 【SMART】【BSP】【allwinner】Fix smart serial_v2 bypass compile error issue (#10524)
* Modify the reference path of the header file in the middle section

* format

* Fix smart serial_v2 bypass compile error issue

* add allwinner/d1s ci
2025-08-01 20:59:08 +08:00
Guorui Li
d82dd71aef [bugfix][component/dfs] fix bugs for function _get_parent_path(). (#10539)
* [bugfix][component/dfs]1.Skip the trailing slash character failed. 2. Scenario that parent path is root is not considered.

* replace strdup() by rt_strdup().

* free memory after strdup().

* fix issue of not appending '\0' at end when parent path is root.
2025-07-31 17:36:28 +08:00
Guorui Li
9f66b35874 [components/dfs]add doxygen comments for dfs_dentry.c in dfs_v2. (#10561) 2025-07-30 21:05:34 +08:00
Guorui Li
1662125a37 [components/dfs]add doxygen comments for dfs_vnode.c in dfs_v2. (#10563) 2025-07-30 21:03:42 +08:00
ligr
dc89417229 [components/dfs]add doxygen comments for dfs_mnt.c in dfs_v2. 2025-07-30 09:43:52 +08:00