Commit Graph

17147 Commits

Author SHA1 Message Date
Chen Wang
93cc80e461 bsp: k230: use utest asset api
Use utest assert API for utest cases.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-30 14:06:32 +08:00
Yaochenger
ab0f7d5cab 移除无用文件,该文件未被任何BSP使用 2025-05-30 14:06:32 +08:00
Yaochenger
37fcf62ada [libcpu/common] 修正对RV32E的支持,RV32E不支持s2寄存器,修改为s1寄存器 2025-05-30 14:06:31 +08:00
Yaochenger
bf76a7ec6f Update MAINTAINERS 2025-05-30 14:06:31 +08:00
Chen Wang
db5a503768 doxygen: move device_driver under to components for pages
In line with the layout of the source code, the
Device-Driver submodule should belong to components.

The doxygen Module part has been adjusted. This commit
modifies the markdown document part and moves the
device-driver pages under to components.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-30 14:06:30 +08:00
Chen Wang
7b88658802 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-30 14:06:30 +08:00
Chen Wang
cce92c7535 doxygen: change group_Device to group_device_driver
The originally defined "group_Device" should actually
be part of the device-driver component, so create
a new "group_device_driver" and then rename
"group_Device" to "group_device_driver".

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-30 14:06:29 +08:00
yans
df893a2031 [bsp][Infineon]修复psoc6-evaluationkit-062S2调用rt_adc_disable()时报错的问题 2025-05-30 14:06:29 +08:00
qianjiuyuan
425ac775d5 [bsp]stm32f103-keysking 驱动:uart、pwm、pulse encoder (#10330) 2025-05-30 14:06:28 +08:00
zhangjing
9777a9662b [libcpu][risc-v]:add comment for the round down of symb_pc 2025-05-30 14:06:28 +08:00
zhangjing
3c2897fe92 [libcpu][risc-v] fix:only map the 1GB space where the original code segment is located 2025-05-30 14:06:27 +08:00
Chen Wang
aaae1a8809 bsp: k230: add watchdog support
K230 has two watchdog timers.

Add unit tests based on utest framework.

Watchdog and test are both configuable, disabled by default.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-30 14:06:27 +08:00
下里巴人
1526fe152d [bsp][stm32] add descriptions of 2 board in README.md doc (#10327) 2025-05-30 14:06:27 +08:00
Chen Wang
23ce816468 bsp: k230: fix kconfig warnings
scons --menuconfig will report:
```
warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION
(defined at /home/u/.env/packages/packages/misc/zlib/Kconfig:31)
is selected by the following symbols, but select/imply has no
effect on choice symbols
 - BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:36)
warning: default on the choice symbol BSP_USING_SDIO0
(defined at board/Kconfig:20) will have no effect, as defaults
do not affect choice symbols
warning: default on the choice symbol BSP_USING_SDIO1
(defined at board/Kconfig:34) will have no effect, as defaults
do not affect choice symbols
```

Fix and remove these warnings.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-30 14:06:26 +08:00
godmial
524ae345c1 新增gd32470z-lckfb配套LCD驱动 (#10311)
* 新增gd32470z-lckfb配套LCD驱动

* 1.使用RTT的编程规范修改注释 2.readme文件新增注意事项以及原作者信息

* Add maintainer info for gd32470z-lckfb-lcd
2025-05-24 11:19:44 +08:00
Chasel
5153f38047 [bsp][wch][risc-v] add drv_flash for ch32v307. (#10306)
* [bsp][wch][risc-v] add drv_flash for ch32v307.

* [bsp][wch][risc-v] 1. add yml file for ch32v307.
                   2. fix programs a word at chip flash timeout.
                   3. priority use of fast mode.

* [bsp][wch][risc-v] fix spi device for ch32v307.
2025-05-23 22:41:30 +08:00
htl5241
31ff6fecc1 [clock]添加 rt_tick_get_delta 函数 2025-05-23 14:21:37 +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
hydevcode
51b6df9c16 ci: Replace the judgment file modification mechanism of bsp_building.… (#10314)
ci: Replace the judgment file modification mechanism of bsp_building.yml and incorporate the PR status show into bsp_building.yml
2025-05-23 09:33:23 +08:00
wumingzi
9e9669b47d [bsp] [ESP32C3] Add dockerfile and update README (#10313)
bsp: ESP32C3: Add dockerfile and update README
2025-05-23 05:36:24 +08:00
ryancw
5c23485006 [components][serial_v2] 写满丢弃策略对dma_ping_buf的处理有误、细节调整 2025-05-22 21:32:21 +08:00
冥焱破晓
d64ce335fc fix scons --target=cmake command failure (#10276)
* fix scons --target=cmake command failure

* fix scons --menuconfig
scons: Reading SConscript files ...
Cannot found RT-Thread root directory, please check RTT_ROOT
2025-05-21 22:15:04 +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
ryancw
5e75fb0f4a MAINTAINERS: serial_v2 按照字母顺序进行排序 2025-05-21 11:50:34 +08:00
Chen Wang
3f1653b688 bsp: k230: support sdio
Support sdio work for 01Studio board.

01Studio connect TF socket with sdio0, which is
different from standard canmv v1.0/v1.1 board
(which uses sdio1).

Updated configuration menu,
- SDIO devices are now a choice of two.
- Root file system types are also a choice of multiple.
  Currently only cromfs and elmFAT are supported.
- Modified the default mount partition of the root file
  system to sd0p1

Deleted the configuration BSP_SD_SDIO_DEV, and now
directly set mmcsd_change according to the selection of
the SDIO device.

Eliminated the warning of the drv_sdhci.c and
egularized the code format. The logic of this file
has not been essentially modified.

Sync and update the .config/rtconfig.h to the latest.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-21 09:42:50 +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
Chen Wang
e9f6992fa1 bsp: k230: add flashsd script
Add a script to call rttpkgtool's sdcard.sh.
Ths script encapsulate checking and downloading
of rttpkgtool and call ./script/sdcard.sh.

It also print new message so user need not
learn how to use sdcard.sh.

Update README.md.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-20 11:23:40 +08:00
Chen Wang
4fb64e3710 bsp: k230: improve cleanup
Previously, `scons -c` did not clean up the build directory
and the automatically generated link.lds.generated.

This is fixed now.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-20 11:23:02 +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
hydevcode
2a525e82be [tools] 修复rttstudio无法导入bsp的问题 (#10290) 2025-05-19 16:41:03 +08:00
Wang Chen
be3cfd9c00 bsp: k230: use sysctl to reboot the board
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-05-19 10:05:56 +08:00
qianjiuyuan
fd5c70d042 stm32f103-keysking学习板BSP移植(first version) (#10286)
* 添加bsp到ci

* [BSP]stm32f103-keysking学习板 bsp移植(first version)

* 压缩board.png

* 删除不必要文件(main.c,system_stm32f1xx.c)

* 修改ignore文件

* 删改CubeMX_Config多余文件

* 修改attach文件为ci.attachconfig.yml

* yml添加 --strict
2025-05-19 05:44:44 +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
Supper Thomas
bf96f99d6b [action/ci] show the PR status for Pull request 2025-05-16 08:54:49 +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
Wang Chen
33a719db63 bsp: k230: add sysctl driver
SystemCtrl includes:
- boot
- clock
- power
- reset

These drivers are built-in by default.

Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-05-15 20:45:09 +08:00
Yuqiang Wang
05699d63d5 bsp: ab32vg1 board support gpio interrupt (#10280) 2025-05-15 19:39:26 +08:00
RyanCW
9c3ed2063a MAINTAINERS: add Ryan-CW as owner of serial_v2 2025-05-15 18:09:50 +08:00
hydevcode
759858127e bsp/nxp:Separate nxp_imx library (#10273) 2025-05-15 15:44:47 +08:00
Chen Wang
ab1b238d0a MAINTAINERS: add myself as owner of bsp/cvitek & bsp/k230
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-15 11:13:40 +08:00
Wang Chen
fd739c288f bsp: k230: add hardlock driver
This hardlock is required by some other drivers, such
as sysctl power.

This driver can be enable/disabled by configuration.

Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-05-15 09:46:55 +08:00
Yaochenger
3775ea0611 [bsp] add xuantie e906 series bsp (#10275)
* [add] add xuantie e906 series

* [ci] 添加玄铁e906 bsp ci

* 移除脚本中输出彩色的print
2025-05-14 23:48:39 +08:00
Supper Thomas
d67c02cd33 [action] Remove phytium because of gitee link sdk (#10271) 2025-05-14 10:21:46 +08:00
Chen Wang
22bed063fe MAINTAINERS: add myself as owner of documentation (#10272)
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-13 18:21:15 +08:00
Chen Wang
e48d76d749 MAINTAINERS: sort entries with tag in alphabetical
Each entry must be sorted in alphabetical order with
tag as the keyword. This makes it easier for searching
when there are more entries in the future.

And this is also a common practice in English, and
alphabetical sorting is also more beautiful.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-13 17:13:49 +08:00