Commit Graph

17273 Commits

Author SHA1 Message Date
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
Yuqiang Wang 9329d127b7 ci: cancel the filtering rules for the MAINTAINER file 2025-05-13 12:59:56 +08:00
Kenji Mouri / 毛利 研二 74245ed18c
bsp/simulator: improve Visual Studio 2012 project (#10253)
* bsp/simulator: update SDL2 Windows prebuilt binaries to 2.32.6 with x86 and x64 binaries

* bsp/simulator: tidy and extend the Visual Studio 2012 project

* bsp/simulator: fix format for SDL2 Windows headers
2025-05-12 20:19:36 +08:00
hydevcode 02287790b5
bsp/nxp:Separate nxp_lpc library (#10265) 2025-05-12 20:18:51 +08:00
hydevcode 27430ca7d4
bsp/nxp:Separate NXP_MCX drivers (#10246) 2025-05-12 15:51:31 +08:00
沐攸 40f42f30e9
bsp/stm32: Separate stm32mp1 hal drivers (#10264)
* bsp/stm32: Separate stm32mp1 hal drivers

* bsp/stm32: change stm32mp1 .config
2025-05-12 14:33:40 +08:00
zhangshuxun 0a57f0a038 bsp:stm32:add Dependency packages missing, please running 'pkgs --update' 2025-05-12 13:29:25 +08:00
kurisaw c285c9806b ci: optimize the logic for generating comments for the maintainer robot 2025-05-12 11:14:17 +08:00
kurisaw 1c5568cd2b Fixed missing unique files creation and cache logic 2025-05-12 10:38:54 +08:00
Yuqiang Wang 4909188bcb
ci: fixed the abnormal operation of ci files (#10259)
fixed the abnormal operation of ci files
2025-05-12 09:22:35 +08:00
Zhao Puhan 3fb3be8ad8
[infineon]fix ifx_pin_irq_enable 2025-05-10 18:02:51 +08:00
Kenji Mouri / 毛利 研二 f0609c1b06
bsp/simulator: fix issues for Visual Studio project generator (#10251) 2025-05-10 05:05:34 +08:00
Yuqiang Wang 0dd8eb090c
feat: CI script assigns PR reviews based on the list of maintainers (#9913) 2025-05-09 22:34:02 +08:00
Yuqiang Wang d7984289a4
fix: solve the issue of abnormal startup of STM32MP157, and fix arduino ci error. 2025-05-09 19:21:28 +08:00
Dmitriy 61da09fab5 GD32 CAN hdr_bank set in filter initialization 2025-05-09 16:11:20 +08:00
Supper Thomas e6c55e384f
[action/manual_trigger] fix mannual trigger to create dist zip file
修复手动生成编译的error
2025-05-09 16:00:59 +08:00
hydevcode 301fce1730
[action/ci] 修复bsp_buildings的传递参数的问题 (#10254) 2025-05-09 14:59:52 +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
Chen Wang 3777ac1e4f bsp: k230: eliminate warnings for kconfig
When run kconfig, see warnings as followings:

Kconfig:5: warning: BSP_ROOT has 'option env="BSP_DIR"',...
Kconfig:10: warning: RTT_ROOT has 'option env="RTT_DIR"',...
Kconfig:15: warning: PKGS_ROOT has 'option env="PKGS_DIR"',...
...
warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION (...)
is selected by the following symbols, but select/imply has no
effect on choice symbols
 - BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:41)
warning: the value '0xF00000000' is invalid for C908_PLIC_PHY_ADDR...

Trying to cleanup Kconfig and re-run menuconfig to update.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-07 16:06:54 +08:00
qilian f05f344388
[Docs] Modify invalid links (#10240) 2025-04-30 18:30:50 +08:00
Jamie 928e47395d
[hc32] Add the ev_hc32f4a8_lqfp176 board and modify some bsp drivers. (#10233)
* [hc32] Add the ev_hc32f4a8_lqfp176 board and modify some bsp drivers.
2025-04-29 14:23:01 +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
rcitach 0bdf9bdd31 add rk3500 doc 2025-04-28 18:29:32 +08:00
rcitach aee8920d07 import re 2025-04-28 10:52:58 +08:00
rcitach 5833e02e2f Fix Aarch64 architecture runtime issues
该问题由5b3320624da5149fc21c2d3e1f321d855e3d0dfe引入,导致工具链编译时加上了 -std=gnu99,其他架构是否出问题暂时未知
2025-04-28 10:52:58 +08:00