Commit Graph

7665 Commits

Author SHA1 Message Date
ricky 3e4f0ec015
bsp:<bsp/gd32/arm/libraries/gd32_drivers/drv_pwm.c>[Support for non-complementary PWM output with advanced timers] (#10426)
bsp:<bsp/gd32/arm/libraries/gd32_drivers/drv_pwm.c>
[Support for non-complementary PWM output with advanced timers]

1.当前结构体 TIMER_PORT_CHANNEL_MAP_Srt_int16_t 的成员channel为u16
为增加对非互补输出的支持 将uint16_t 改为int16_t
/* timer channel: -2 is ch_1n, -1 is ch_0n, 0 is ch0, 1 is ch1 */
2.对函数 channel_output_config 以及 drv_pwm_enable 进行修改,增加对非互补输出的支持

Signed-off-by: Yucai Liu <1486344514@qq.com>
2025-06-28 10:55:51 +08:00
Yaochenger d62f1e46b8 [bsp/xuantie] 修复bsp的dist功能 2025-06-27 16:53:50 +08:00
沐攸 c3125df8fa
bsp: Separate nuvoton drivers (#10435)
* bsp: Separate nuvoton drivers

* bsp: update nuvoton series project.uvprojx
2025-06-26 17:07:51 +08:00
沐攸 29ab5334af
bsp:Separate HC32F4 series library (#10427)
* bsp:Separate HC32F4 series library
2025-06-25 10:02:43 +08:00
qianjiuyuan 1fe2a0bbb6
[bsp]stm32 attach配置整理为yml(f0-f4、g、l系列) (#10417)
* f0-f405 attach整理为yml

* f4系列yml整理

* g系列整理yml

* l系列yml整理

* l475 f429 yml关闭strict检测

* revert stm32l475-atk-pandora的修改

* revert stm32f723-st-disco的修改

* revert stm32f429-armfly-v6的修改
2025-06-25 00:09:47 +08:00
kurisaw 4f903298a2 libcpu/bsp: fix the M33 assembly syntax errors and fix the compilation error of bsp 2025-06-24 11:04:01 +08:00
godmial 593ac8dbd6 1.更改armcc编译器为armclang 2.修改sconstruct代码为通用模式 3.删除SPI flash 在使用DFS时自动挂载逻辑 2025-06-22 17:13:00 +08:00
Chasel bf75b6665c [bsp][stm32] 1.Fixed the problem that the watchdog device was not registered, because the macro RT_USING_WDT was not introduced due to the missing header file. 2025-06-22 17:11:35 +08:00
Chen Wang e8b6d4e3fd bsp: k230: imprvove README
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-22 17:10:11 +08:00
rcitach 7178c933f4 Modify reference document link 2025-06-22 10:40:58 +08:00
rcitach c9c1b9c8d0 Improve c906 smart qemu support 2025-06-22 10:40:58 +08:00
sakumisu 2ac969b4ca
update(cherryusb): update to v1.5.0 (#10409) 2025-06-20 16:19:38 +08:00
zhangshuxun c3da935369 bsp: Add a reminder when dependency packages fail to fetch 2025-06-18 18:03:54 +08:00
沐攸 5f9f522285
format: update all series of BSP configuration items (#10406) 2025-06-17 15:42:49 +08:00
qianjiuyuan f35c775cd4
[bsp]bluepill readme补充flash描述,整理attachconfig为yml 2025-06-16 23:35:13 +08:00
Chen Wang fe506d5157 bsp: k230: support adc
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 19:23:09 +08:00
Yaochenger cec2dbd7e9
玄铁全系列RISC-V内核支持(E系列/R系列/C系列) (#10343) 2025-06-10 16:18:07 +08:00
Chen Wang 14c147cb00 bsp: k230: add gpio driver
K230 supports 3 GPIO groups:
group0: GPIO0  ~ GPIO31, support i/o and irq
group1: GPIO32 ~ GPIO63, support i/o and irq
group2: GPIO64 ~ GPIO71, only support i/o.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 14:22:21 +08:00
qianjiuyuan e97c5822b4
[bsp]stm32f103-keysking ADC PWM1 I2C1驱动 (#10356)
* [bsp]stm32f103-keysking ADC与PWM1驱动

* Update README.md

* 删除include main.h

* 增加I2C1驱动

* 添加yml
2025-06-09 16:33:35 +08:00
godmial aec10aa0a8
bsp: gd32470z-lckfb: 增加 SPI Flash 支持及使用说明 (#10347) 2025-06-09 16:31:19 +08:00
Runcheng Lu 7568ec9618 bsp: stm32: drv_rtc: add local time conversion for get timeval and set stamp
-  include the year, month, and day for rtc_alarm_time_set API
- add local time conversion for get timeval and set stamp

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2025-06-09 13:31:16 +08:00
stranding 12ac742407
bsp: artpi2: init project. (#10364) 2025-06-08 12:41:27 +08:00
Chen Wang a84dc04307 bsp: k230: support pinctrl driver
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-08 12:40:33 +08:00
wangqiang 39dca869b4 修复了USB通信概率性挂掉的问题。原因是USB_OSA_ENTER_CRITICAL等宏使用的是禁止调度的函数,无法保护中断与任务的临界资源,修改为禁止中断可以解决这个问题 2025-06-05 12:15:12 +08:00
Chen Wang 8525e08709 bsp: k230: add hwtimer support
K230 support 6 general hardware timers and 3 stc timers.
This patch only implement drivers for general hw timers.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-31 19:50:07 +08:00
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