Commit Graph

7640 Commits

Author SHA1 Message Date
kurisaw fe1308976e version: version release preparation 2025-05-30 15:52:45 +08:00
ZhangJing c3d33f39d4
[bsp]增加超睿DP1000 bsp支持 2025-05-30 13:32:58 +08:00
Chen Wang 890a4bad72 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 09:33:00 +08:00
yans dcf637dd30 [bsp][Infineon]修复psoc6-evaluationkit-062S2调用rt_adc_disable()时报错的问题 2025-05-29 13:04:49 +08:00
qianjiuyuan 2cf21619fb
[bsp]stm32f103-keysking 驱动:uart、pwm、pulse encoder (#10330) 2025-05-29 11:49:48 +08:00
Chen Wang 951bc922bc 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-28 13:49:49 +08:00
下里巴人 8f8354347e
[bsp][stm32] add descriptions of 2 board in README.md doc (#10327) 2025-05-27 11:02:45 +08:00
Chen Wang e0aee221d9 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-26 17:45:13 +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
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
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
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
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
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
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
hydevcode 759858127e
bsp/nxp:Separate nxp_imx library (#10273) 2025-05-15 15:44:47 +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
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
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 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
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
rcitach 0bdf9bdd31 add rk3500 doc 2025-04-28 18:29:32 +08:00
Chen Wang e08fc2999b bsp: k230: use rttpkgtool to package kernel
The original method of packaging and burning kernel
depends on installing the K230 RTOS SDK. It is quite
cumbersome. Now the relevant logic is extracted and
a small tool rttpkgtool is created to package the
rtthread.bin.

Considering that rttpkgtool still needs to compile
opensbi when packaging k230, which means that a
separate cross-toolchain needs to be installed.
Therefore, in order not to affect the CI operation,
the current packaging logic is not integrated into
POST_ACTION in rtconfig.py, but requires kernel
developers to run the build script separately for
packaging.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-28 10:50:10 +08:00
Supper Thomas 427e177526
[action/ci] add qemu-pre-build-and-post-build for RT_SMART build (#10203)
[action/ci] add qemu-pre-build-and-post-build for RT_SMART build
2025-04-27 17:31:51 +08:00
hydevcode b4e051a890 [bsp][Infineon] Update the peripherals of XMC7100D 2025-04-27 14:58:45 +08:00
hydevcode 8b968c3761 bsp: k210: fix drv_i2c's include file 2025-04-27 10:43:32 +08:00
koudai 9b6438dfec
[BSP][N32G45XVL]适配串口v2驱动 (#10222) 2025-04-24 16:59:14 +08:00
Passionate0424 6ffa53a914 修改ifx_pin_irq_enable函数 2025-04-24 14:34:51 +08:00
Chen Wang 283c2fb94f bsp: k230: fix some cpp_check warnings
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 919adbce38 bsp: canmv: update README
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 0c0b9e59d0 bsp: k230: use configuration instead of immediate value
The original code used immediate values directly when it
came to memory layout, which was not a good programming
habit.

Now we use macros and try to be compatible with SDK
configuration values in the SDK compilation environment.

The main changes are to clean up board.h, and extract
some memory layout constants to define a new header
file mem_layout.h.

Also update KERNEL_VADDR_START to the default value for
Smart, so we can use it as base to calculate other mapping
address.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 2a00bd4ecb bsp: k230: use rtconfig.h for linkscript
For linker script, use constant macro defined from
rtconfig.h, not immediate value.

Also cleanup the link_statksize.lds, it is also not
needed when using new mechanism.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 90e81cf4b6 bsp: k230: updated config
KERNEL_VADDR_START changed to 0xffffffc000020000.
__STACKSIZE__ changed to 65536.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Wang Chen db9746e001 bsp: k230: update uart driver
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Wang Chen 980a376e9b bsp: k230: support canmv board
Some changes to support canmv board, such as:
- Address constant, some may need be set as configuration later.
- link script
- build script

Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00