Commit Graph

1770 Commits

Author SHA1 Message Date
Chuan
7983d97738 docs(utest):Add standardized documentation for IPC Workqueue Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-26 22:53:01 +08:00
Chuan
604d123186 [utest][serial bypass]:Add standardized documentation for Serial Bypass Test 2025-11-26 22:52:39 +08:00
Chuan
5423d43e25 [utest][audio]:Add standardized documentation for Audio Test 2025-11-26 19:21:19 +08:00
dongly
583d7f47c7 [soft_rtc]修正GET_TIMESPEC/GET_TIMEVAL 获取 ns/us 的错误; 优化soft_rtc实现 2025-11-25 09:44:07 +08:00
Copilot
30e1e5e9dc Reorganize Group names in build system for clarity and IDE integration #10923 2025-11-16 11:40:53 +08:00
Chuan
ee20484759 docs(utest):Add standardized documentation for Drivers Core Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-16 10:28:46 +08:00
CYFS
327006cb88 [docs][utest]:Add standardized utest documentation block for serialv2_tc 2025-11-15 14:18:44 +08:00
wdfk-prog
ddfe2cd61c feat[spi]: enable interrupt-safe operations using spinlocks 2025-11-13 15:41:41 +08:00
wdfk-prog
f56875fff5 fix[components]: 修复日志输出的gcc编译警告 2025-11-13 15:16:49 +08:00
rcitach
9150317539 Fixed PWM assertion error caused by using DM 2025-11-13 11:11:59 +08:00
Yonggang Luo
a81023b88d [components/ktime]: Remove unused rt_ktime_cputimer_getstep
Can use rt_ktime_cputimer_getfrq() / RT_TICK_PER_SECOND instead.
2025-11-12 12:59:29 +08:00
wdfk-prog
44cf90a4ef fix(can): Resolve potential race condition in message transmission
Setting the send status flag `sndchange` after calling the can->ops->sendmsg function
could lead to a race condition if a transmission timeout occurs, resulting in incorrect state handling.
This patch moves the operation of setting the `sndchange` flag to before the call to can->ops->sendmsg.
This ensures that the mailbox's status is correctly marked as "sending" before the hardware begins transmission,
making the driver's state management more robust and reliable, especially in handling exceptions like timeouts.

Additionally, new macros for CAN filter modes have been added in dev_can.h.
2025-11-08 11:52:25 +08:00
CYFS
934c8195f4 [serialv2]:Fixed the issue where the serialv2 terminal did not have the enable stream mode 2025-11-07 09:52:55 +08:00
CYFS
6a9a1df437 [components]:utilize the clang-format-ignore mechanism (#10860) 2025-10-28 15:17:04 +08:00
rbb666
0dd90619c7 cherryusb:Adapt the usbd_kinetis_delay_ms interface in usb_glue_mcx. 2025-10-27 17:31:55 +08:00
rbb666
ab5afb3689 cherryusb:Fixed the issue where the USB device in the cdc_rndis_template example could not enable DHCP. 2025-10-27 17:31:55 +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
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
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
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
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
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
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
wdfk-prog
7e5cd48360 feat[SPI]: Add SPI device detach function 2025-09-25 11:41:58 +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
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
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
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
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
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
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