Commit Graph

4929 Commits

Author SHA1 Message Date
Chen Wang 8e9872a554 doxygen: group name all in lowcase
This patch only updated the groups defined in documentation/0.doxygen.

Other groups will be moved into documentation/0.doxygen and updated at
that time.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-25 14:02:28 +08:00
sakumisu 2ac969b4ca
update(cherryusb): update to v1.5.0 (#10409) 2025-06-20 16:19:38 +08:00
Chen Wang 01ca3911ec componnets: utest: fix case-name matching problem
There is a problem with the matching of case names
in the original code. Due to original code use memcmp
with len, if the input case name and the existing
case name have an inclusion relationship, for example,
if the actual case name is "gpip_irq", and run
`utest_run gpio` will also match successfully, but it's
not expected.

Modify the logic of exact matching and use strcmp instead.
Keep the original wildcard logic, that is,
`utest_run gpio*` can match both "gpio_irq" and "gpio".

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 19:22:25 +08:00
Chen Wang 60c6fc0e3a components: drivers: adc: fixed cppcheck error
[cpp_check.py 80 INFO] components/drivers/misc/adc.c:76:12:
error: Uninitialized variable: result [legacyUninitvar]
    return result;
           ^

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 14:21:46 +08:00
Chen Wang ae86c6e8bb componnets: drivers: adc: remove build warnings
gcc build warnings:
cast from pointer to integer of different size [-Wpointer-to-int-cast]

For rt_adc_ops.enabled, the type of second param is rt_int8_t,
original _adc_control also called with wrong type casting.

Convert first to rt_base_t, then cast to rt_int8_t to remove the
build warnings.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 14:21:46 +08:00
Runcheng Lu 72c45043b5 components: drivers: rtc: add the alarm using local time for calculation
- add the alarm using local time for calculation

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2025-06-09 13:31:16 +08:00
Chen Wang a3339ca734 doxygen: change group_Drivers to group_device_driver
The originally defined "group_Drivers" should actually
be part of the device-driver component, so
"group_Drivers" is renamed to "group_device_driver".

In this way, the original "group_Device" and
"group_Drivers" are merged into "group_device_driver".

Adjusted the writing method of doxygen comments in the
driver code to be unified as follows:

```c
* @defgroup group_XXX XXX
* @brief xxxxxx
* @ingroup group_device_driver
```

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-29 13:47:46 +08:00
GuEe-GUI 99fc1bb72b [DM/PCI] Add /proc access in RT-Smart user.
1. Add ROM base info.
2. Save th PM status.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-05-23 13:22:25 +08:00
ryancw 5c23485006 [components][serial_v2] 写满丢弃策略对dma_ping_buf的处理有误、细节调整 2025-05-22 21:32:21 +08:00
LTreeshu cd3789f8ec Update shell.c
To enhance the robustness of key recognition and solve the problem of errors and omissions caused by the lag of state assignment statement
增强方向键识别的鲁棒性,解决状态赋值语句滞后带来的错漏问题
2025-05-21 13:24:36 +08:00
Bernard Xiong d1628a1cf3
[dfs] enable procfs and tempfs in default when using smart; fix LWIP_ROUTE warning issue. 2025-05-20 17:27:55 +08:00
bernard 83f6747245 [smart] Fix parameter issue when calling the __arch_get_hw_counter function. 2025-05-19 18:29:26 +08:00
bernard 1c46d55ad9 [smart] Enhance build script with additional cleanup steps 2025-05-19 18:29:26 +08:00
bernard 7e2b74a693 [smart] Fix typo in vDSO Kconfig. 2025-05-19 18:29:26 +08:00
bernard 921abdfb41 [smart] move vdso.c to arch/common folder. 2025-05-19 18:29:26 +08:00
bernard 721dfbfe01 [smart] Add vDSO support for RISC-V architecture and refactor related components
- Implemented vDSO functionality for the RISC-V architecture, including the necessary source files and linker scripts.
- Introduced a new `vdso_sys.c` file for RISC-V, containing functions to handle time retrieval using the vDSO mechanism.
- Created architecture-specific linker scripts (`vdso.lds.S`) for both AArch64 and RISC-V.
- Updated the build system to support vDSO compilation for RISC-V, including necessary adjustments in `SConstruct` files.
- Refactored existing vDSO code to improve compatibility and maintainability across architectures.
- Adjusted the maximum number of PTY devices in the terminal configuration from 64 to 32 for better resource management.
- Fixed minor issues in existing code, including correcting the path for the vDSO shared library and ensuring proper function definitions.
2025-05-19 18:29:26 +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
ryancw ac8fba0129 [drivers][serial_v2]允许阻塞接收超过rx缓冲区大小的数据、增加超时时间、flush、获取缓冲区数据长度命令、数据溢出逻辑修复、稳定性细节优化、添加更多serial_v2测试用例
[components][serial_v2] 优化txflush逻辑、对tx的activated做中断保护

[components][at] at_client适配新版serial_v2

[components][at] at_server适配新版serial_v2

[components][serial_v2] 测试用例增加循环调用,format测试用例

[components][serial_v2] poll模式判断逻辑错误

[components][serial_v2] 测试用例去掉一些非必要延时

[components][serial_v2] 测试例程使用menuconfig进行配置,更新readme

[components][at_client] at_client_getchar返回值错误、at_client解析线程优先级错误设置

[components][at] 错误码应该返回负值

[components][serial_v2] TCFLSH和FIONREAD完善、control函数增加错误返回值

[components][serial_v2] RT_SERIAL_CTRL_GET_RX_DATA_LEN更改为RT_SERIAL_CTRL_GET_UNREAD_BYTES_COUNT

[utest][serial_v2] TC_UART_SEND_TIMES替换为RT_SERIAL_TC_SEND_ITERATIONS

[components][serial_v2] FIONREAD参数应该是无符号类型

[utest][serial_v2] 完善测试用例

[components][serial_v2] 避免使用三目运算符

[components][serial_v2] 使用clang-format格式化代码

[components][serial_v2] 添加get超时时间命令

[components][serial_v2] 完善posix接口

[components][serial_v2] 阻塞接口添加阻塞时间为0时的处理逻辑、优化RX阻塞接收逻辑

[components][serial_v2] 设置超时时间命令的参数改为指针形式

[components][serial_v2] nbuf发送添加超时时间为0时的逻辑

[components][serial_v2] 完善添加测试用例

[utest][serial_v2] 修复依赖关系

[components][serial_v2] 非阻塞模式下tx_flush错误修复

[components][serial_v2] activated使用原子API

[components][serial_v2] 优化DMA逻辑、没使能DMA时屏蔽DMA逻辑节约资源

[components][serial_v2] 提供写满时丢弃新数据和覆盖旧数据策略,写满丢弃策略效率更高

[components][serial_v2] 部分平台适配写满时两种策略功能

[components][serial_v2] DMA模式暂不支持丢弃新数据策略

[utest][serial_v2] 优化测试代码

[components][serial_v2] DMA模式下使用乒乓缓冲、DMA模式支持丢弃新数据策略

[utest][serial_v2] 适配DMA乒乓缓冲

[bsp][serial_v2] 部分bsp适配DMA下乒乓缓冲

[components][serial_v2] 使用spinlock替换中断,对部分结构体变量使用原子操作

[utest][serial_v2] 更新测试用例

[components][at] 适配new serialv2不再判断RTT版本号

[components][at] 删除多余的中文注释

[utest][serial_v2] 添加交叉echo示例,qemu环境下专用

[bsp][qemu] 适配串口v2并开启fifo

[components][at] 修复合并导致的错误

[bsp][n32] 适配serial_v2,没有经过测试

[components][serial_v2] 格式化代码

[utest][serial_v2] 删除无意义的打印
2025-05-16 09:42:11 +08:00
Bernard Xiong 50998f4e43
[building] rename the group name: LIBADT to Utilities. (#10267)
* [building] rename the group name: LIBADT to Utilities.
2025-05-16 07:31:18 +08:00
Guorui Li 1635fb497a
[component/lwp]add annotation for lwp elf. (#10230)
* [component/lwp]add annotation for lwp elf.

* Update components/lwp/lwp_elf.c

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-09 02:55:29 +08:00
ricky 396eaa32f6
[components][wlan] Fixing comments errors of RT_WLAN_EVT_SCAN_DONE and RT_WLAN_EVT_SCAN_REPORT (#10237) 2025-04-29 09:51:49 +08:00
zhangyan 3ebad06ff3
[bsp/phytium]适配rtthread5.2版本 (#10178)
* rtthread 5.2适配
2025-04-14 19:14:54 +08:00
1078249029 9d1fb86020 [DM/FDT] Fix garble when booting
Fix garble caused by empty implementation of earlycon series
function in driver.If driver doesn't offer earlycon_id or rt_f
dt_earlycon_id.setup function but open option, the checking
of best_earlycon_id will failed.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-04-14 18:04:39 +08:00
wycwyhwyq 12de72a462 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
wycwyhwyq da1c5c7882 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
ricky 522f7aa0d3
[fal/sample] readme 添加 (#10175)
* 更改FLASH_PAGE_SIZE拼写错误
2025-04-11 17:34:36 +08:00
ricky 7475f5549d
fal: add new example for norflash 2025-03-27 20:08:16 -04:00
Yang Xijing cdb5ce8d04 解决 list_mutex 互斥量没有线程持有时打印错误 2025-03-21 20:52:18 -04:00
GUI fc86cb9427 [DM/Platform] Fixup the node will probe more than once
If a node request a new node or it's parent node. the  request's node will probe a double time.
So we check the device object of node in ofw probe entry and ofw probe child exit.
2025-03-19 09:46:48 +08:00
latercomer 76c2f2d77f 解决bps/simulator无法在vs2019环境下编译
Signed-off-by: latercomer <latercomer@qq.com>
2025-03-17 16:45:59 +08:00
GUI ccd79785ec [DM/DMA] DMA src and dst is wrong.
The first arg is src, then dst.
2025-03-17 11:57:17 +08:00
1078249029 9d3ee51107 [components][at] Add formatting message function for at client
It will be useful for quiting transmission mode of some chips like esp8266.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-12 20:48:07 -04:00
yixinghua121 983f02151a
修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题 2025-03-12 16:02:43 +08:00
1078249029 79c93b6571 [doxygen][audio] Naming anonymous enumeration type audio_stream
Signed-off-by: 1078249029 <1078249029@qq.com>
2025-03-11 19:46:10 -04: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
lingfengPeng 29a06142c5
fix dangling pointer in component pthread and dfs_elm (#9976)
* [components/libc/posix][pthreads]fix the risk of dangling pointer

* [components][dfs][dfs_elm]:fix risk of dangling pointer, unmount the temp driver then free the temp FATFS in dfs_elm_mkfs.
2025-03-11 10:48:29 +08:00
heyuanjie87 c16d14e70b [mm]修复unmap内存时遗漏刷新地址转换表的问题,避免dcache(PIPT)出错 2025-03-10 22:32:32 +08:00
sakumisu f5c24a9bfc fix(cherryusb): fix USBD_IRQHandler argument
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-10 13:45:33 +08:00
sakumisu de30bd1105 update(cherryusb): update to v1.4.3
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-10 13:45:33 +08:00
Yuqiang Wang ad79383fa3
feat: ci script associated with auto_utest. (#9933)
* feat: ci script associated with auto_utest.
2025-03-10 11:08:21 +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
GUI e75c49a17b [DM/THERMAL] fixup coefficients's offset lost
coefficients is double u32 data list.
2025-03-05 20:16:27 +08:00
Runcheng Lu ba50b60817 [components][drivers][spi]: fix: set message.parent.next to NULL for rt_qspi_send_then_recv API and rt_qspi_send API
- Ensure correct QSPI message chaining by setting next pointer to NULL, preventing unintended data transmission issues.

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2025-03-05 10:29:25 +08:00
Runcheng Lu faa8702510 [components][drivers][spi] dev_spi_flash_sfud: fix: set message.parent.next to NULL for qspi_read API
- Ensure correct QSPI message chaining by setting next pointer to NULL, preventing unintended data transmission issues

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2025-03-05 10:29:15 +08:00
GUI 4d6b9a1330 [DM/OFW] check available in stub probe
device node should not probe in stub if device is not available.
2025-03-05 09:41:49 +08:00
wycwyhwyq 88195c8cab
[components][dfs_v2]: Fix cromfs bug (#10054) 2025-03-02 16:01:11 +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
CYFS 84b5b2f408 fix:pwm msh err 2025-03-01 15:39:02 +08:00
GUI fbb65196a7 Fixup device rename by chip_select
`chip_select` is array now, should use index of value.
2025-03-01 12:03:32 +08:00
hydevcode 6d8d8884de
[bsp][nxp] add cherryusb config for mcxa156 (#10041)
[bsp][nxp] add cherryusb config for mcxa156 and add ci.attachconfig
2025-02-26 20:23:49 +08:00