43 Commits

Author SHA1 Message Date
Chuan
5423d43e25 [utest][audio]:Add standardized documentation for Audio Test 2025-11-26 19:21:19 +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
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
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
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
0fdeb4c077 utest: integrate config option for utest of audio driver
Some checks failed
doc_doxygen / doxygen_doc generate (push) Has been cancelled
doc_doxygen / deploy (push) Has been cancelled
ToolsCI / Tools (push) Has been cancelled
AutoTestCI / components/cpp11 (push) Has been cancelled
AutoTestCI / kernel/atomic (push) Has been cancelled
AutoTestCI / kernel/atomic/riscv64 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11/riscv64 (push) Has been cancelled
AutoTestCI / kernel/device (push) Has been cancelled
AutoTestCI / kernel/ipc (push) Has been cancelled
AutoTestCI / kernel/irq (push) Has been cancelled
AutoTestCI / kernel/mem (push) Has been cancelled
AutoTestCI / kernel/mem/riscv64 (push) Has been cancelled
AutoTestCI / kernel/thread (push) Has been cancelled
AutoTestCI / kernel/timer (push) Has been cancelled
AutoTestCI / rtsmart/aarch64 (push) Has been cancelled
AutoTestCI / rtsmart/arm (push) Has been cancelled
AutoTestCI / rtsmart/riscv64 (push) Has been cancelled
AutoTestCI / components/utest (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-08-26 10:26:47 +08:00
Chen Wang
2aebe694d9 doxygen: group name all in lowcase (part 2) (#10530)
* doxygen: fs: unify groupname to lowercase

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

* doxygen: drivers: unify groupname to lowercase

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

* doxygen: signal: unify groupname to lowercase

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

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-07-22 13:59:25 +08:00
1078249029
d834899a6f components: drivers: audio: Add audio driver test framework
Achieve driver framework by operating memory to simulate audio
peripheral drivers. And it could be as a draft standrad for other
drivers test framework.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-05-18 15:48:27 +08:00
wumingzi
2cc7320356 [doxygen][audio] Fix group names by adding group_ prefix (#10094)
Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-11 11:53:23 +08:00
1078249029
ed8d0bc36b [doxygen][audio] Fix doxygen comments for audio component
Added comments for data structure and rt_audio_ops in dev_audio.h.
Enriched comments for macro group. Moved and renamed folder audio.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-06 11:45:07 +08:00
wumingzi
fb64052722 [RFC][doxygen]Doxygen comment standard processing (#10058)
Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-01 16:02:17 +08:00
SeliverWang
66dd03f6c2 修复audio_pipe中函数在开启POSIX IPC时与 POSIX PIPE冲突问题 2024-09-06 23:18:09 -04:00
CXSforHPU
416ec66380 [device] add dev_ prefix for file names 2024-08-23 18:15:09 -04:00
sp-cai
f1832fea24 [components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054)
整理 components/drivers 的 Kconfig
2024-06-16 15:43:27 +08:00
Shell
71560bafb5 🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
7YZ7
501b22aabe [HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00
Meco Man
f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
thewon86
f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
Meco Man
f89a162ea3 [core] 使用rt_memcpy rt_memset代替memcpy memset 2022-01-09 00:23:18 +08:00
Meco Man
3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Meco Man
a233495718 Typo: rt_data_queue_peak() in dataqueue 2020-12-31 16:02:42 +08:00
Bernard Xiong
2a4b6453b0 Merge pull request #4145 from thread-liu/action
[Audio] Header files are repeatedly included
2020-12-11 17:38:09 +08:00
thread-liu
c827a42a18 [update] audio deficiency head file, compile fail. 2020-12-10 16:56:59 +08:00
liuduanfei
1f7a8e46a4 Update audio.c
修改注释错误 repaly ---> replay
2020-12-07 11:50:15 +08:00
David Lin
9f5d860d04 Update audio.c 2020-11-21 16:07:03 +08:00
David Lin
7f1aa82a88 Update audio_pipe.c 2020-11-21 16:05:24 +08:00
David Lin
db71258051 [components / drivers]fixed re-include of audio 2020-11-21 16:00:40 +08:00
guozhanxin
3952fd780f [fix] When enable audio and usb at the same time. The warning <"MIN" redefined> is shown. 2020-11-18 11:13:28 +08:00
shangjinlong
b87f493f2b 🐛 fix compile warning, undefine var 2019-12-31 16:16:15 +08:00
EvalZero
e855fb8536 [components][audio]improve device ops interface and data flows. 2019-08-06 11:36:50 +08:00
tyustli
d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
MurphyZhao
7556ab89da [components/drivers/audio] [修复] audio 中枚举类型不匹配的问题
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-28 18:56:40 +08:00
MurphyZhao
3cf808921d [components/drivers/audio] [修复] 编译警告
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-28 18:56:39 +08:00
aozima
669eb13ed9 [DeviceDriver] update RT_USING_DEVICE_OPS.
1. fixed audio_pipe.c compile error.
2. update pwm driver: support RT_USING_DEVICE_OPS.
2018-11-24 17:29:50 +08:00
Bernard Xiong
2c0640a178 [license] Change license to Apache. 2018-10-14 19:37:18 +08:00
Bernard Xiong
884fb70fe9 [Kernel] Add device ops feature. 2018-06-10 17:59:17 +08:00
heyuanjie87
fa09a700c1 Update audio.c 2018-03-27 13:59:22 +08:00
tangyuxin
6127313514 [audio]update audio/audio_pipe.h 2017-11-13 17:11:54 +08:00
tangyuxin
f7a6078c5c [audio]新版本pipe导致audio编译错误,添加以前的pipe 2017-11-10 19:50:29 +08:00
bernard
d7087fdd3b [DeviceDrivers] change cmd type.
1. Change 'rt_uint8_t' type of cmd to 'int';
2. Add waitqueue;
3. Split device ipc header files;
2017-10-15 22:56:46 +08:00
yygg_you
94746d8e5f audio驱动使用系统内的dataqueue,修复一些缩进,乱码 2017-08-16 01:17:06 +08:00
Bernard Xiong
cf6dfec55b Update SConscript 2017-05-12 15:46:25 +08:00
yygg
c046b78f07 添加 audio设备驱动 2017-03-14 11:07:20 +08:00