Commit Graph

5040 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 8ef0add346 Remove empty #ifdef RT_USING_FINSH blocks
Removed empty conditional compilation blocks that were left after FINSH macro cleanup.

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-10-28 23:21:39 +00:00
copilot-swe-agent[bot] af25087e09 Remove orphaned finsh.h includes after FINSH_FUNCTION_EXPORT cleanup
Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
2025-10-26 07:16:09 +00:00
copilot-swe-agent[bot] f2d0b8a626 Remove deprecated FINSH_FUNCTION_EXPORT macro and all usages
Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
2025-10-26 07:04:31 +00:00
copilot-swe-agent[bot] 42aef81d15 Remove extra blank lines left after FINSH_FUNCTION_EXPORT_ALIAS cleanup
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-10-24 02:26:45 +00:00
copilot-swe-agent[bot] 60c9bc2350 Remove all FINSH_FUNCTION_EXPORT_ALIAS calls and macro definitions
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-10-24 01:31:21 +00:00
Yuqiang Wang c8f0a26a5f
feat:[sal][utest] added test cases for the sal api (#10720)
* feat:[sal][utest] added test cases for the sal api

* improve[net][utestcase]: standardize script construction

* ci[auto utest run]: standardize naming and add sal testcases

* add sal utest auto run configure and standard Information
2025-10-23 09:56:30 +08:00
Yonggang Luo d3e0a53203 Remove rt_ktime_hrtimer_getcnt for hrtimer
There is no user of it and also the return type is mismatch
2025-10-21 10:25:41 +08:00
Yuqiang Wang 8816a9dc1b
utest/msh: supports autocomplete of utest cases for utest_run (#10701)
* utest/msh: supports autocomplete of utest cases for utest_run

* docs/utest: explanation of adding the automatic completion function for utest_run

* fix[utest]: Improvement of annotation description

* remove outdated code
2025-10-20 12:46:44 +08:00
ligr 1ca86c79fa Fix comment for address_search_head field of lwp structure. 2025-10-20 11:12:57 +08:00
ligr 77844b7b07 Align annotations of struct fields. 2025-10-20 11:12:57 +08:00
ligr 3afefd7fdd fix structure comments according to doxygen spec. 2025-10-20 11:12:57 +08:00
ligr 09721bb7a1 [components/lwp]add doxygen comment for lwp.c with lwp.h. 2025-10-20 11:12:57 +08:00
Chen Wang c1363c77d6 utest: Improve the strings displayed in the menu
Use "Test" instead of "Unit Testcases" to make string shorter.
Use uppercase to make it look more eye-catching.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-16 18:34:43 +08:00
rcitach f05b854ab8 Update SECURITY_UNKNOWN value in dev_wlan.h
Changed SECURITY_UNKNOWN value to 0xffffffff for clarity.
2025-10-16 14:44:30 +08:00
Chen Wang e8d3d0fca4 utest: move cpp from examples to components/libc/cplusplus
Also update the case names to compatible with naming rules.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 15:28:58 +08:00
Chen Wang 9ca37156f5 utest: UTEST_MM_API_TC -> RT_UTEST_MM_API
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang df4fdc0087 utest: UTEST_SELF_PASS_TC -> RT_UTEST_SELF_PASS
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang c2f041640d utest: UTEST_SERIAL_POSIX_TC -> RT_UTEST_SERIAL_POSIX
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 3e7fd6b437 utest: UTEST_SERIAL_QEMU_TC -> RT_UTEST_SERIAL_QEMU
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 2881803dec utest: UTEST_SERIAL_TC -> RT_UTEST_SERIAL_V2
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Chen Wang 066689bd2f utest: UTEST_SERIAL_BYPASS -> RT_UTEST_SERIAL_BYPASS
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-15 09:43:16 +08:00
Yonggang Luo 517e5b132b compute ns with rt_int64_t instead of int64_t in ctime.c 2025-10-13 21:44:01 +08:00
loremmoqi 17a796af24
fix(stdio): ensure compatibility with newlib <3.4.0 by handling removed __sdidinit (#10791) 2025-10-13 11:45:22 +08:00
Chen Wang d14daa6cb1 utest: ipc: move from examples to components/drivers/ipc
Also:
- Add "RT_" prefix for utest config options.
- Rename the case names to following the naming rule.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-13 10:44:16 +08:00
Chen Wang 66448d9e96 utest: smp_call: move from example to components/drivers/smp_call
Also,
- Rename UTEST_SMP_CALL_FUNC to RT_UTEST_SMP_CALL_FUNC.
- Add depends on RT_USING_SMP in Kconfig for RT_UTEST_SMP_CALL_FUNC
- Follow the naming rules of utest case to update the cases' name.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 16:20:38 +08:00
Chen Wang 5b99f61af8 utest: serial: update case names
Follow the naming rules of utest-cases.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 15:38:45 +08:00
Chen Wang 3b97667323 utest: serial: move from examples to components/drivers/serial
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-11 15:38:45 +08:00
Chen Wang 273185b45a
doxygen: fix two issues when building with doxygen 1.9.8 (#10768)
* doxygen: remove @return command if function return void

When doxygen is upgraded to v1.9.8 (on ubuntu 24.04), doxygen
reports: "doxygen error: found documented return type for xxx
that does not return anything" for those functions which return
void but declare "@return" in doxygen comment.

Solution: remove "@return" for those cases, and update
guide document for how to write doxgen comment for functions.

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

* doxygen: fixed a minor typo for uart doc

This error is found when building with doxygen 1.9.8, but not
detecetd on 1.9.1.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-10-10 10:05:06 +08:00
Guorui Li 1aef0dba71
[components/lwp]add doxygen comment for lwp futex. (#10763) 2025-10-04 10:02:21 +08:00
Yuqiang Wang 2e45b9b340 format: format sal socket code 2025-10-04 09:03:25 +08:00
Yuqiang Wang 326e65f6ed feat:[sal][utest] added test cases for the sal api 2025-10-04 09:03:25 +08:00
Chen Wang ace7fdbff3
doxygen: fixed build warning for RT_CAN_FILTER_ITEM_INIT (#10758)
The names and number of macro parameters in doxygen comments
must match the actual macro definition; otherwise, a warning
will be generated.

Our goal is to eliminate all warnings.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-28 19:47:45 +08:00
蒙蒙plus 98340c1aab
[Feature][Shell] 增加对 Home、Insert、Delete 和 End 键的支持,改进输入模式处理 (#10595) 2025-09-28 16:27:20 +08:00
wdfk-prog 11156de0de feat[can]: Implement non-blocking send mechanism and enhance CAN driver functionality
- Added support for non-blocking mode CAN message sending, including software ring buffer management and dynamic memory allocation options.
- Improved related comments and error handling.
- Updated example code to demonstrate the usage of both blocking and non-blocking sending modes, and corrected some structure field naming and macro definitions.
2025-09-28 11:17:21 +08:00
Chen Wang 01e015450f utest: move driver related case under to drivers
src/utest/device_tc.c is testing API: rt_device_find(),
which is a function defined in components/drivers/core/device.c.
So it should be a testcase for drivers core, not for core.

Move it to under components/drivers/core.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-26 16:53:44 +08:00
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