Commit Graph

17526 Commits

Author SHA1 Message Date
蒙蒙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
Chen Wang
e2224f525b doxygen: update naming rule for utest-case
More details see PR #10681.

As utest cases are currently moving out of `examples/utest/testcases`
into their own module directories, the naming rule needs to change
accordingly.

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
蒙蒙plus
138c8887e7 移除已经废弃的CPU使用率相关的字段和初始化代码 2025-09-12 09:56:16 +08:00
CYFS
603ccde445 add ra2a1 drvices 2025-09-10 16:55:44 +08:00
Chen Wang
36b299173f doxygen: update doc for env to latest
The introduction to Env under the documentation
section of the RTT source code repository is
outdated and unmaintained. We recommend moving the Env
documentation to https://github.com/RT-Thread/env/
for self-maintenance.

Solution:
Direct users to the latest README at https://github.com/RT-Thread/env/.

The Env content under the documentation section of RTT
will not be deleted for now, but will be marked as "outdated".

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-10 16:52:48 +08:00
Rbb666
4832f0482a [utest][lwip]add lwip api testcase. 2025-09-10 15:22:39 +08:00
Chen Wang
1034e5b4fd doxygen: fixed duplicated comments for scheduler APIs
Similar to PR #10674, `src/scheduler_mp.c` and
`src/scheduler_up.c` also have similar issues.

After investigation, we found: in commit 2c98ce4605
"[HUST CSE][document] Fix some comments, invalid
grouping commands and warnings in Doxygen." This patch
excluded `src/scheduler_mp.c` and `src/scheduler_up.c`
from the Doxygen build and include
`documentation/doxygen/thread.h` (the new file path
after adjustment is `documentation/0.doxygen/core/thread.h`),
placing the Doxygen comments for some functions in this file.

However, this approach has its problems:

- The comments in `documentation/0.doxygen/core/thread.h`
  are separated from the source code, making them
  difficult to maintain. This also results in the
  comments for the newly added functions in
  `src/scheduler_mp.c` and `src/scheduler_up.c` not
  being updated in a timely manner and failing to
  be compiled into Doxygen (becoming HTML).

- For the average programmer, it's unlikely that
  they'll consider the `documentation/0.doxygen/`
  directory for function declarations and comments,
  let alone the need to maintain the Doxygen comments
  in that directory. Currently, the header files under
  `documentation/0.doxygen/` should strictly be used
  only to define Doxygen groups and should not include
  Doxygen comments for the code itself. (Similar
  issues exist in documentation/0.doxygen/3.hardware.h
  and documentation/0.doxygen/core/systeminit.h, which
  require further cleanup.)

The solution is similar to PR #10674, where only MP
documentation is generated by default. For functions
defined in MP but not in UP, we use the "@note"
directive in the function's doxygen comment to indicate
whether the function is supported in both UP and MP,
or only in MP.

After implementing this solution, the file
`documentation/0.doxygen/core/thread.h` can be deleted.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-09 18:20:41 +08:00
Rbb666
b525d2c535 [fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c 2025-09-09 16:42:16 +08:00
Rbb666
e1c1a07c48 [add][thread]Add api:rt_thread_suspend_force allow suspend other threads. 2025-09-09 13:08:30 +08:00
Chen Wang
afb3f22973 doxygen: fixed duplicated comments for cpu APIs
Refer to the issue described in PR #10599. This was a
temporary fix at that time.

After further research, we discovered that this issue
can be addressed using the "@cond" command supported
by Doxygen.

Since we currently do not intend to generate two sets
of documentation for UP and MP when generating Doxygen
documentation, the current solution is to generate only
MP documentation by default. For functions defined in
MP but not in UP, we will use the "@note" command in
the function's Doxygen comment to indicate whether the
function supports both UP and MP, or only MP.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-08 22:20:52 +08:00
tomjielii
7d4efbafaa [bsp][renesas] add EK-RA2E2 support (#10646)
* add EK-RA2E2 support
2025-09-08 09:54:27 +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
8cca8d6a39 fix ci problem. 2025-09-07 07:52:08 +08:00
Rbb666
79b14848bd [add][testcases]add filesystem(dfs api & posix api) testcase. 2025-09-07 07:52:08 +08:00
Rbb666
ae8782bc7f [add][testcase]add mempool tc. 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
Haojin Tang
893ae7d7ba fix(risc-v, virt64, plic): use volatile rw for claim and complete 2025-09-03 09:48:22 +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
WangShun
c1e9403fba [bsp/gd32] add gd32470i-eval bsp #10664 2025-09-02 18:08:51 +08:00
Chen Wang
f44ce3a64c doxygen: updated doc for thread management subsystem
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-02 18:05:44 +08:00
Yilin Sun
98a12f1c24 [bsp/nxp/mcx/mcxe]: Add MCX E247 and FRDM-MCXE247 support. #10654 2025-09-02 16:58:06 +08:00
Rbb666
3c17851fe2 [Add][kernel/thread]Add thread overflow hook and testcases:thread_overflow_tc.c. 2025-09-02 16:46:55 +08:00
WangShun
f8a37bc42e [bsp/gd32] 更新GD32 SPI驱动 #10657 2025-09-02 12:13:44 +08:00
Rbb666
32c8bb7109 [bsp]Modify the Flash size of the small-capacity BSP to pass CI checks. 2025-09-02 11:54:54 +08:00
Chen Wang
a0c55a4a09 doxygen: align code for kenerl object doc
The code formatting in the Object Management Markdown document
is misaligned. This issue can be fixed by replacing tabs with spaces.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-09-02 11:23:44 +08:00
Youduo Liu
8bf15b17f6 fix broken video link for BSP制作教程 2025-09-01 22:50:35 +08:00
Haojin Tang
db4fb4c243 fix(risc-v, mmu): fix type mismatch of _query 2025-09-01 18:44:24 +08:00
Haojin Tang
157d809634 fix(risc-v/virt64, cpp): add spaces to fix Wliteral-suffix 2025-09-01 18:43:04 +08:00
Haojin Tang
b27e405faa fix(riscv, cpp): remove rt_hw_cpu_id in cpuport.h to fix error 2025-09-01 18:42:08 +08:00
Haojin Tang
483117fa14 fix(klibc): also check __clang__ when detecting gcc 2025-09-01 15:39:59 +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
MuChenger
1e34830f6d [bsp/gd32] remove gd32 bsp soft i2c config 2025-08-29 14:48:26 +08:00
dannyray019
500deb8aef bsp:k230:add pdma support for uart driver
Added pdma support for uart driver and a test file test_uart.c.
The test uses pdma to improve uart send speed,
to check if the driver works correctly.

Signed-off-by: XU HU 1337858472@qq.com
2025-08-29 10:37:36 +08:00
MuChenger
5b88f59d34 [bsp/gd32] 移除BSP软件I2C相关配置,软件I2C以集成至I2C设备驱动框架 2025-08-29 10:35:44 +08:00
WangShun
6a9d218e92 [bsp/gd32] update gd32 i2c driver #10641 2025-08-28 18:16:37 +08:00
Rbb666
f9089aa4ab [update][renesas/nano]Modify the semaphore used by the console to be statically created. 2025-08-28 14:39:44 +08:00
ryancw
df70e4b9bc [kernel] rt_scheduler_lock_nest使用原子操作 2025-08-28 11:33:15 +08:00
Chen Wang
98cb15a3ef doxygen: add howto for utest
After "utest: re-org utest framework (initial version)" (PR #10534)
was merged, adding a document to introduce how to add utest-cases
for your module.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-08-26 11:06:02 +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
Chen Wang
532da3482b utest: integrate config option for utest of klibc
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-08-26 10:26:47 +08:00
Chen Wang
06c5cc0846 utest: move entry from examples to utest
Change the entry of utest's Kconfig from
'examples/utest/testcases/Kconfig' to
'Kconfig.utestcases'.

Modified the build scripts where the path name
is "examples/utest/testcases/Kconfig" and changed
it to 'Kconfig.utestcases', otherwise build
operations such 'scons --dist' may fail.

In the future, the testcase source code of
utest will be placed in each module for
maintenance, but the entry of Kconfig will all
be placed in Kconfig.utestcases for unified
maintenance. In this way, when executing menuconfig,
people can enter and configure from one place,
avoiding searching for utest configuration switches
here and there in the menuconfig interface.

For each module, you can maintain unit-test
in a unified manner in the following way:
- Create a subdirectory named 'utest' in the
  directory where your module is located.
- Store the following files in the utest subdirectory:
  - Unit test case program source code files for this
    module.
  - Kconfig file, add configuration options for the
    unit test files of this module, the recommended
    option is named RT_UTEST_TC_USING_XXXX, XXXX is the
    global unique module name of this module.
  - SConscript file, note that when adding src files,
    in addition to relying on RT_UTEST_TC_USING_XXXX,
    you must also rely on RT_UTEST_USING_ALL_CASES, the
    two dependencies are in an "or" relationship. The
    role of RT_UTEST_USING_ALL_CASES is that once this
    option is turned on, all unit tests will be enabled
    to avoid selecting one by one.

After completing the above steps, add the path of the
Kconfig file of utest of this module to the
Kconfig.utestcases file.

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