Commit Graph

6470 Commits

Author SHA1 Message Date
Rbb666 d1e1f66e42 [STM32]Fix f469 touch build error and set lvgl to double buffer 2023-03-02 23:22:02 -05:00
Rbb666 3abfd4e5c1 [Renesas]Add tft-lcd pin connection description 2023-03-02 22:53:29 -05:00
杨熙 b7c2d1ba42
[bsp][lpc55sxx] add CPU define for S06/S16/S29/S36 make GCC comiple pass 2023-03-02 22:13:22 -05:00
linshire a3bef4d0da
[bsp][lpc55sxx] 修复scons --dist工程文件复制残缺的问题
修复CMSIS缺失的问题
2023-03-02 21:54:19 -05:00
Yaochenger 95540854a6
[libcpu/riscv]迁移libcpu/riscv/ch32中文件至bsp (#7004) 2023-03-02 09:17:43 -05:00
Yaochenger fc2e122ee2 [libcpu/risc-v]迁移libcpu/risc-v/hpmicro中的文件至bsp 2023-03-02 09:16:59 -05:00
Yaochenger 6aa2445522 [libcpu/risc-v]移除bumblebee文件夹与nuclei文件夹中的内容至bsp 2023-03-02 09:16:12 -05:00
Yaochenger 892ef3dc5b
[libcpu/risc-v]将cv32e40p文件夹中文件移至BSP (#7002) 2023-03-01 21:34:35 -05:00
Rbb666 00ad3921e4 [STM32]Add STM32F723E-DISCO bsp support 2023-03-01 08:23:35 -05:00
Rbb666 aa19e1376c [Renesas]Fix add lvgl build error problem 2023-03-01 17:36:51 +08:00
Rbb666 afd86f4547
fix stm32 drv_lcd some problem (#6836)
* LTDC:将 Alpha 通道默认设置为0(完全透明)
* rt_malloc 替换为 rt_malloc_align
2023-03-01 02:12:50 -05:00
Yaochenger b9e4fcfc68
[libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941)
整合libcpu/riscv中的移植文件 提供一份公共代码于common

在提交本pr时,除hpmicro的内核,rv32内核bsp已完成去除大部分的冗余,大部分代码采用common中的实现。本pr的作用是进一步统一common中的文件,从而提供一份公用代码,新移植的RV32内核的BSP可以全部使用common代码。

- 在common中提供一份公用文件:interrupt_gcc.S
- 修改原有的文件,将原有的中断中上下文切换代码替换为interrupt_gcc.S
- 基于上述修改,修改仓库中risc-v内核的BSP与移植相关的部分 (主要包含中断入口函数 中断栈等)
- 在common中提供一份公用文件:trap_common.c;提供统一中断入口函数,中断入口函数初始化,中断入口注册等函数,并完善异常时的信息输出

- 在common中提供一份公用文件:rt_hw_stack_frame.h;将栈帧结构体剥离,供用户使用

- 在上述工作完成后,在上述工作的基础上测试仓库中risc-v内核的BSP

- 完善函数中的命名,完善中断栈的获取

- 提供一份详细的基于现有common文件的移植指南

  #### 在什么测试环境下测试通过 

- 1.CH32V307V-R1-R0
- 2.CH32V208W-R0-1V4
- 3.HPM6750EVKMINI
- 4.GD32VF103V-EVAL
- 5.qemu(CORE-V-MCU )

> 与上述开发板使用同样芯片的BSP均测试通过

在CH32V307V-R1-R0与HPM6750EVKMINI上基于现有移植文件进行多线程复杂场景下的长时间测试,测试过程系统运行正常。
2023-03-01 01:32:43 -05:00
linshire 4021b82161
[bsp][ch32] fix the empty function ch32dma_transmit return error code as -RT_EIO 2023-02-28 17:41:17 -05:00
螺丝松掉的人 3a08336cb5
[bsp][lpc55sxx] update pwm driver 2023-02-28 17:37:09 -05:00
Yifang ae0296e802
[rtduino][lpc55s69] 添加RTduino所需i2c引脚定义及结构体对象声明 (#6984) 2023-02-27 21:28:39 -05:00
Bernard Xiong c5cb58383c
[BSP] Add vscode setting. (#6992) 2023-02-28 09:17:36 +08:00
杨熙 8015b61fcb
[bsp][lpc55sxx] update spi driver (#6986)
* [bsp][lpc55sxx] update spi driver

1. update spi driver, fix pin driver
2. move DMA_Init to board.c

* [bsp][lpc55sxx] formmat code

* [bsp][lpc55sxx] format lpc55s69_nxp_evk board file
2023-02-27 18:27:42 -05:00
sheltonyu 7542f780e9 replace RT_WEAK macros with rt_weak 2023-02-27 18:27:14 -05:00
sheltonyu d6605e3f8b fixed gcc compiling usb driver errors, update for including file position and adding macros 2023-02-27 18:27:14 -05:00
liYangYang 26fab3e792
[wch][spi] 修改ch32 risc-v spi底层驱动函数返回值类型 (#6979)
* [wch][spi] 修改ch32 risc-v spi底层驱动函数返回值类型

---------

Co-authored-by: Zxy <1308465141@qq.com>
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-02-27 18:26:16 -05:00
褚仕成 dfad527019 [arduino][lpc55s69] : update PWM 2023-02-27 14:20:08 +08:00
Zxy f5798d9917
[pin][5.0.0] 修正pin框架数据类型使用不当 (#6934) 2023-02-26 21:17:51 -05:00
liYangYang 93d572dee6
[spi][5.0.0] 修正SPI设备框架中,对函数返回值类型使用不恰当的情况 (#6937) 2023-02-26 21:09:07 -05:00
vandoul cdd2755bbd
[bsp][lpc55sxx]修复drv_spi和drv_pwm测试得到的问题 (#6983)
修复spi通过env配置选中之后没有使能的问题,修改spi获取时钟源的API,修改cs脚无效的问题;
修复pwm不能修改频率和占空比的问题,修改pwm获取时钟源的API解决PWM频率和占空比不正确的问题。
2023-02-26 20:06:05 -05:00
linshire e63e33a3c6
[ch32][bsp] fix warning: rt_size_t to rt_ssize_t 2023-02-25 13:50:33 -05:00
Yifang 7763183074
[rtduino][lpc55s69] 纠正uart引脚错误并使能相关依赖项 (#6976)
* [rtduino][lpc55s69] 纠正uart引脚错误并使能相关依赖项

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-02-25 01:28:03 -05:00
螺丝松掉的人 faddfecbd2
[rtduino][lpc55s69] update (#6972) 2023-02-25 01:26:37 -05:00
Rbb666 022760c569 [Infineon]Fix scb5 can't use bug 2023-02-25 00:35:57 -05:00
sheltonyu a5c62b9a84
[bsp/at32] add support usb driver (#6968)
* add support usb driver

* fixed code format error
2023-02-24 21:47:04 -05:00
jonas 7bf6648853 [serial]增加at32的serial_v2驱动 2023-02-24 14:54:20 +08:00
Yifang 08c2a65136
[rtduino][lpc55s69] 修正RTduino框架下的引脚错误 (#6963)
1.修正RTduino框架下的引脚错误
2.Kconfig新增RTduino依赖项
3.README文档完善
4.上传LPC55s69兼容arduino部分引脚图
2023-02-23 13:47:55 -05:00
Rbb666 96a636f0b5 [Renesas]Add tft-lcd lvgl support 2023-02-23 13:29:08 -05:00
褚仕成 1533b88390 [arduino][lpc55s69] : 对接RTduino 2023-02-22 19:20:33 -05:00
wangxiaoyao 484a0d602e [fixup] add cache maintenance ops;
fix bugs on cache maintenance when starting user app
2023-02-21 08:48:49 +08:00
vandoul c377c4bea3
[nxp][lpc55sxx] add status to lpc_i2c_bus in drv_i2c for lpc55sxx. (#6935)
添加一个status,判断I2C执行结果来修复i2c传输始终正确的BUG。
2023-02-19 23:09:27 -05:00
Rbb666 73f1ee76b6 [Renesas]Add use lvgl document 2023-02-16 14:00:47 +08:00
Meco Man ad79e29474 format ch32 driver 2023-02-15 09:36:04 +08:00
Meco Man 5f080215a1 [ng32] format ng32f452 bsp 2023-02-15 09:36:04 +08:00
Meco Man da533d113e [nxp] format imxrt libraries 2023-02-15 09:36:04 +08:00
Shell 2d09749086
[rt-smart] PV_OFFSET as a variable (#6904)
* [rt-smart/mem] remove pv_offset

* [rt-smart] list kernel space command

* [rt-smart] restore ioremap region

* [revert] restore kernel space isolation

* [rt-smart/pv_off] code format

* [rt-smart] add get_pvoff()

* [pvoffset] pvoff as constant for C codes

* [pvoff] pvoff as interfaces
2023-02-14 23:08:32 +08:00
guozhanxin b32eae36d3 [ci]add aarch64 smart ci 2023-02-13 10:56:17 +08:00
liYangYang 1eec660b12
[spi]添加rt_spi_bus_attach_device_cspin 函数 (#6916)
这个函数实现了原先的挂载功能,并且调用pin框架,初始化cs引脚,是一个功能相对完善的挂载函数。用户也能更简单的使用。
该函数取代rt_spi_bus_attach_device,后续rt_spi_bus_attach_device会被逐渐淘汰掉。新的BSP以及软件包应当使用rt_spi_bus_attach_device_cspin新函数。

STM32L475潘多拉测试通过。
2023-02-11 22:14:54 -05:00
Bernard Xiong e4edf7e182
[BSP] Add color build for qemu gcc config. (#6924) 2023-02-11 17:14:55 +08:00
Yaochenger ee121d25dc
[RTduino][ch32v208]修正rtconfig.h配置 (#6920) 2023-02-09 22:55:52 -05:00
Yaochenger 7c6c12cbff
[RTduino][ch32v208w-r0]ch32v208w-r0适配RTduino (#6917) 2023-02-08 23:01:20 -05:00
Meco Man f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Rbb666 e010d844af [Renesas]Fix ra6m3 build error 2023-02-06 22:18:07 -05:00
xiao xie e94a3bf52c
[imxrt1060] Update 1060 sdk 2.12.1 (#6892)
更新的SDK2.12.1更新imxrt1060的驱动
2023-02-06 22:17:31 -05:00
Yifang 53dcac6f68
bsp][LPC55S69] README文档增加keil版本编译报错解决方案 (#6910) 2023-02-06 22:15:42 -05:00
褚仕成 60199160cf [bsp][lpc55sxx] add: README_zh and README 2023-02-05 22:03:27 -05:00
Bernard Xiong 98e0c58527
Add ADT Kconfig and fix MMU kconfig issue in Cortex-A (#6901)
* Add ADT Kconfig and fix MMU kconfig issue in Cortex-A

* [BSP] enable ADT
2023-02-06 01:11:04 +08:00
Rbb666 db5ed9c576 [IFX]Add psoc6 bsp 2023-02-03 13:56:30 +08:00
杨熙 83bd8614ab
Bsp lpc55sxx (#6897)
* [bsp_lpc55sxx] i2c,rtc bsp update

1. add i2c DMA mode
2. enable rtc driver

* [bsp_lpc55sxx] formmat code

using formmating.py for format code

* [lpc55sxx] remove .gitignore

* [bsp][lpc55sxx] update bsp driver

1. update sdif driver, enable DFS, FAT32
2. update rtc driver
2023-02-02 16:41:14 +08:00
螺丝松掉的人 6d00b28425
[bsp/raspberry-pico] add: SMP (#6888) 2023-02-02 12:19:33 +08:00
Rbb666 a9b9bf0e7f [IFX]Add two board README.md 2023-02-01 18:18:43 +08:00
Rbb666 ca26a85652 [IFX]Add capsense support 2023-01-31 23:58:16 -05:00
sheltonyu a59a8d9302 fixed format error, add auto compile check 2023-02-01 11:30:56 +08:00
sheltonyu c8106bc19b add support f421/f425 2023-02-01 11:30:56 +08:00
Rbb666 ae78aedfac [Renesas]Fix ra6m3 build error 2023-02-01 10:32:55 +08:00
杨熙 c9c43c8c5b
[bsp_lpc55sxx] i2c,rtc bsp update (#6885)
* [bsp_lpc55sxx] i2c,rtc bsp update
2023-01-30 21:21:52 -05:00
andrew li 5f4b4ae5f1 add spi twi drv for nrf5340 2023-01-29 21:30:41 -05:00
Meco Man 7e177ebf1a [at32][can]修复CAN驱动返回消息时,错误给id和ide赋值问题
该驱动收到can消息时,给上级返回消息结构的id和ide成员赋值不正确。

Signed-off-by: 李刚 <lg28870983@163.com>
2023-01-29 08:44:07 -05:00
Meco Man 9b109639d1 [stm32] sconscript typo 2023-01-22 22:07:54 -05:00
Rbb666 a6502eea74
[IFX]Add psoc6-rtt-062S2 BSP (#6866)
* [IFX]Add psoc6-rtt-062S2 BSP

* [IFX]Update BSP name

* [IFX]Add libcy_capsense.a
2023-01-19 21:49:23 -05:00
褚仕成 61631c393e [bsp/bl808] add: drv_i2c 2023-01-19 21:41:53 -05:00
Rbb666 65adce2989 [D1s]Add mksdcard.sh 2023-01-19 21:40:49 -05:00
liYangYang 6eaf9a9c57
[stm32][qspi] qspi attach 函数问题解决方案 (#6867)
* [qspi] qspi attach 函数解决方案

* pin

* 更改函数名字
2023-01-18 22:04:45 -05:00
liYangYang 63294afc9d
[stm32][softspi]soft spi attach函数问题解决方案 (#6868)
* [softspi]soft spi attach函数问题解决方案

* 更改函数名
2023-01-18 22:03:48 -05:00
liYangYang 7ff64c1cfd
[stm32][spi] spi attach函数问题解决方案 (#6864)
attach #6819
2023-01-18 00:27:08 -05:00
会飞的猪 65f1804005 [bsp/stm32wle5-yizhilian-lm402]修复scons --dist缺失大量文件 2023-01-17 21:32:43 -05:00
会飞的猪 265dbc0ce1 [bsp/stm32wle5-yizhilian-lm401]修复scons --dist缺失大量文件 2023-01-17 21:32:43 -05:00
Rbb666 9a6dab644a Add psoc6-cy8cproto-062S3-4343W BSP and update doc 2023-01-16 23:37:22 -05:00
Zxy c9f7f0e771
[BSP][stm32] fix the compile error 2023-01-16 23:21:21 -05:00
褚仕成 a2647aa3e2 [bsp/bl808] update: READme 2023-01-16 21:34:23 -05:00
Rbb666 25c567e330 [IFX]Remove Kconfig—>Board extended module Drivers 2023-01-16 21:34:03 -05:00
螺丝松掉的人 84af32db34
[bsp/bl808] add: drv_gpio (#6856)
* [bsp/bl808] add: drv_gpio
2023-01-15 23:41:09 -05:00
Rbb666 1632ad083a [IFX]Remove HAL_Drivers/config folder 2023-01-15 21:36:49 -05:00
luobeihai 2da43febbd
add some apm32 bsp and fix apm32f0/apm32f1 gcc startup assembly file bug and fix apm32 drv_eth.c bug (#6855)
* add some apm32 bsp and fix apm32f0/apm32f4 gcc startup assembly file bug and fix drv_eth.c bug

* fix apm32f103xe-minibroard and apm32f407ig-minibroard link.lds file error

* replace apm32f051r8-evalboard picture

* fix apm32f1 gcc assembly startup file suffix name

* renamed startup_apm32f10x_md.s/startup_apm32f10x_hd.s file and modify apm32f103xe-minibroard/board SConscript file
2023-01-15 21:16:02 -05:00
Shell f0dadcb3c3
[rt-smart] porting c906 and D1s to mm (#6848)
* [rv64/bsp] porting to mm

* [mm] report more info for debugging

* [fix] code format

* [libcpu/c906] porting to RTOS

* [fix] using rtdbg api

* [fix] add return

* [fix] report more information for debugging

* [fix] use assert 0 for unrecoverable error
2023-01-16 08:24:03 +08:00
会飞的诸 fec7404506
[bsp] wch ch32v307v-r1动态初始化堆内存 (#6849)
#### 为什么提交这份PR (why to submit this PR)
- 修复ch32v307v-r1 board.h 中变量_stack_size未声明BUG
- 提供ch32v307v-r1动态堆内存分配(宏开关)代码
- ch32v307v-r1 MD文档新增烧录方式,作为烧录后无运行结果的替代方案

#### 你的解决方案是什么 (what is your solution)
- 去掉_stack_size未声明变量
- 动态分配内存堆,将堆起始地址放在.bss段结尾,堆结束地址放在.stack段开头[详情](https://club.rt-thread.org/ask/article/001065082e9ae611.html)
- 将烧录工具替换为WCH-LinkUtility

#### 在什么测试环境下测试通过 (what is the test environment)
- 开发工具: RT-Thread Studio
- 测试板卡:ch32v307v-r1评估板
- 烧录工具:WCH-LinkUtility
2023-01-13 20:50:33 -05:00
Meco Man ddccef3a64 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
Meco Man f4fa7ba970 [RTduino][stm32f469-disco][readme] fix typo 2023-01-13 11:40:57 +08:00
Meco Man 09b36e76f2 [RTduino][stm32f411-nucleo] add English readme 2023-01-13 11:40:57 +08:00
Meco Man baac8760a5 [RTduino][stm32f410-nucleo] add English readme 2023-01-13 11:40:57 +08:00
Meco Man 120595d371 [RTduino][readme] correct grammar 2023-01-13 11:40:57 +08:00
Meco Man b0c4aca6e5 [ch32v208] 调整Kconfig 2023-01-13 11:40:57 +08:00
Meco Man ce3f60b22b [RTduino][ch32v307] add English readme 2023-01-13 11:40:57 +08:00
Rbb666 7b35c8d353 Add Infineon Doc and modify file structure 2023-01-12 17:23:30 +08:00
Meco Man b310541471 [env] add scons --strict
此commit意图在脚本中增加 scons --strict命令,使用该命令编译工程时,会自动将CFLAGS CXXFLAGS设置为 Werrors,即较为严格的编译模式,任何警告都会当做错误来处理。

该命令主要用于CI,在CI执行bsp编译时,可以使用 scons --strict命令。现在QEMU的rtconfig.py 为了CI检查,直接将CFLAGS加上了Werrors,导致正常编译过程中也把警告当做了错误,对日常使用该bsp造成了影响。
2023-01-12 01:43:44 -05:00
Meco Man fcf2367966 [bsp] update ch32v307 readme 2023-01-12 14:00:27 +08:00
vandoul 076683f6e3 fix the syntax error of drv_spi.c in lpc55sxx. 2023-01-11 17:53:33 -05:00
Wayne bf8db63c78
Fix building issue of Nuvoton porting. (#6833)
* Fix  building issue of Nuvoton porting.

1. Change thread priority of lwip-tcpip and erx.
2. Remove '')' garbage symbols.
3. mm driver issues.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2023-01-11 16:26:56 +08:00
Rbb666 168e12501d
Add RA6M3 Studio Support (#6835) 2023-01-11 16:22:17 +08:00
lpy 071d52ad44
[RTduino][stm32f410-nucleo] 添加readme,在pins_arduino.c和pins_arduino.h添加了USER_KEY引脚编号 (#6838)
* 添加readme
* 更改pins_arduino.h引脚编号
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-01-10 21:41:58 -05:00
flyingcys 1480f7296c format file && update README.md 2023-01-09 22:15:30 -05:00
zhaohaisheng 9339e495f0
[RTduino] 增加CH32V307 readme 2023-01-09 21:41:59 -05:00
Rbb666 92531dec87 Update Infineon documents and introduce 2023-01-10 09:35:34 +08:00
Meco Man 7ecba50ff6 format stm32 drivers 2023-01-08 22:52:13 -05:00
Meco Man 592284c66c format link scripts 2023-01-08 22:52:13 -05:00
Meco Man 9bc68d26a4 format Kconfig and sconscript 2023-01-08 22:52:13 -05:00