Commit Graph

6645 Commits

Author SHA1 Message Date
Shicheng Chu 93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
Rbb666 8a52e65013 [Infineon]Add lvgl support 2023-04-04 09:03:56 -04:00
Rbb666 72037b6353 [Renesas]Fix lvgl screen define 2023-04-04 09:02:05 -04:00
Sparks-Pion accab17fa5
[HUST CSE IoTS&P Lab] [fix] check rt_mutex_create return value (#7169) 2023-04-04 00:33:10 -04:00
sheltonyu 3bee170d52
[bsp/at32] remove #ifndef (#7168) 2023-04-03 21:18:49 -04:00
shandianchengzi e49140b513
[HUST CSE IoTS&P Lab][bsp] add missing UL suffix to BIT macro to prevent undefined behavior (#7153)
* [bsp] add missing UL suffix to BIT macro to prevent undefined behavior.

* [bsp] add UL suffix to BIT macro for consistency and readability.

* fix toUppercase.

* fix the abnormal character.

* format the file.
2023-04-03 23:05:42 +08:00
hustlixiang21 dd17ca01e6
[bsp] fix mismatched function types in rt_pin_ops (#7161) 2023-04-03 23:04:29 +08:00
Eziotao ce346d798b modify the sampling rate to increase the actual baud rate(drv_usart.c/drv_usart_v2.c) 2023-04-03 10:14:52 -04:00
hwk2077 d6c1b75e42 add `TIM1` and `TIM8` 2023-04-03 02:45:57 -04:00
KurisaW 429f46c632 [bsp][stm32] update the template.uvprojx for stm32f411-st-nucleo 2023-04-03 14:02:36 +08:00
sion 7a31ab9115 [bsp]Fix Chinese coding errors in annotations. 2023-04-02 08:02:46 -04:00
Frankx be8b381ac6
[bsp] Fix many abnormal symbols in annotations. (#7148) 2023-04-01 12:07:10 -04:00
shandianchengzi dc5123547c [bsp] Fix many abnormal symbols in annotations. 2023-03-31 23:57:17 -04:00
Shell 897ba365ba
[fix] compilation error from rpi (#7143)
* [fix] compile error from rpi
2023-03-31 20:58:01 +08:00
Wayne Lin c143842be2 Update fix warnings and builds. 2023-03-31 07:58:24 -04:00
Rbb666 d9e74b0f76 [Renesas]Update RA6M3/4 mdk proj 2023-03-31 18:10:11 +08:00
yangjie11 df74a617f1 fix #6594 2023-03-31 17:51:00 +08:00
yangjie11 95e6b69b8e
sync and update all projects (#7138)
* sync and update
2023-03-31 16:49:48 +08:00
vandoul ba6a27c850 [bsp][k210] add drv_i2c.c for i2c-tools, and use ascii code instead of special character in drv_io_config.c 2023-03-30 23:38:30 -04:00
vandoul 0822f02606 [bsp][lpc55sxx] add i2s and wm8904 driver 2023-03-30 23:38:30 -04:00
螺丝松掉的人 3c2169e637
[bsp][bouffalo_lab]add drv_adc (#7125)
* [bsp][bouffalo_lab]add drv_adc

* Update bsp/bouffalo_lab/libraries/rt_drivers/Kconfig

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>

---------

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-03-30 20:25:39 -04:00
WCX fb09316cb5
[bsp][bouffalo] add pwm & rtc & wdt devices (#7122) 2023-03-30 20:01:28 -04:00
褚仕成 0cdf72f753 [bsp] Modify the RT_Exxx error return value to a negative number 2023-03-30 09:49:24 -04:00
Rbb666 4aa38e3d86 [Infineon]Add slider driver demo 2023-03-30 16:52:34 +08:00
Rbb666 8552d061c2 [Infineon]Update spi driver 2023-03-30 16:48:48 +08:00
Shell eec78d9f5d
[rt-smart] testcase & improvements for memory management (#7099)
* [utest/mm] add testcase for create/init
format codes of create/init in components/mm

* [libcpu/aarch64] fix user stack check routine

* [kservice] export API for utest

* [utest/mm] testcase for aspace_map
format & modify the files under components/mm related with aspace_map

* [lwp/user_mm] add user_map_varea for mmap feature

* [mm] rename rt_mm_fault_try_fix to rt_aspace_fault_try_fix

* [utest/mm] testcase for synchronization

* [mm] modify unmap api to improve throughput

* [utest/mm] testcases for cache and varea map

* [format] remove extra space

* [utest/mm] fix testcase problem in header

* [lwp] extend map_user_varea with a flag

* [utest/mm] testcase for lwp_map_user_varea

* [libcpu/arm/cortex-a] fix kernel space layout

* [utest/mm] adjust for armv7 arch
2023-03-30 08:25:15 +08:00
Rbb666 dc77d8fcb6 [Renesas]Update lvgl document 2023-03-29 08:44:44 -04:00
Rbb666 b8988227d7 [Infineon]Fix spi cs problem 2023-03-29 20:35:39 +08:00
flyingcys 0cf3bcf495
[bsp]fix esp32_c3 compile error (#7107)
* fix rt_hw_interrupt_install return value

* add __rt_rvstack
2023-03-29 19:01:26 +08:00
Shell adf17c427f
[bsp] rpi 4b smart & rtos fixups (#7114)
* [bsp] rpi 4b smart & rtos fixups

* [format] remove spaces & modify readme

* [bsp] update rpi4b readme
2023-03-29 18:31:05 +08:00
ZXY_LINUX 1a7cd8b43f [driver]添加ESP32_C3 I2C驱动 2023-03-29 13:42:13 +08:00
NU-LL 4ab11d5bbc FIX: add stm32h7xx series board information 2023-03-26 22:17:57 -04:00
NU-LL 735fb14fe7 [bsp][stm32] add stm32h750-fk750m1-vbt6 bsp 2023-03-26 22:17:57 -04:00
flyingcys 575abd58ff
[bsp]add bl808 uart2 driver && add bl60x/bl70x bsp to ci-action (#7097)
* update bl_mcu_sdk SConscript && add bl808 uart2 driver

* add bl60x/bl70x bsp to ci-action
2023-03-25 19:05:33 +08:00
褚仕成 1dc8e5060a [arduino][stm32f411-weact-blackpill] : update Kconfig and README 2023-03-25 06:59:14 -04:00
Meco Man 4f8094ecd0 [stm32][l476-nucleo] support RTduino 2023-03-25 13:48:56 +08:00
褚仕成 dfd0e3e96d [arduino][stm32f401-weact-blackpill] : 对接RTduino 2023-03-25 00:49:31 -04:00
Rbb666 1cf26a8ea7 [Renesas]Remove lcd_ili9341 and update spi driver 2023-03-24 12:52:27 -04:00
yangjie11 b0c247fb59
[components/drivers][touch]删除多余的touch.h (#7090)
* [components/drivers][touch]删除多余的touch.h

* 将touc.h替换为rtdevice.h
2023-03-24 11:47:28 -04:00
褚仕成 6095d65679 [stm32] update README.md of f401 2023-03-24 11:43:03 -04:00
Yaochenger de4f237482
[atomic]添加arm与risc-v下的常用原子操作函数 (#7053)
* Update Kconfig
* Update trap_gcc.S
* Update bsp/hifive1/drivers/SConscript

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
* Update SConscript
* [atomic]提交一份arm与risc-v架构下的常用原子操作函数
* 修改变量类型
* 更新rtatomic.h与atomic_port.c
* 更新rt-thread\libcpu\arm\common\atomic_port.c
* 更新include/rtatomic.h与libcpu/arm/common/SConscript
* 更新include/rtatomic.h
* 修正格式与Kconfig
* 修正格式与文件结构

* 规范文件格式与文件重命名
* 添加测试用例与CI
* 添加函数声明
* 修改virt64/SConscript 添加atomic_riscv.c
  * 1.规范代码风格
  * 2.添加RISC-V64原子指令支持 解决在RV64下编译器将32-bit运算结果扩展为64-bit 导致判断错误
* 添加C11标准库原子操作测试

---------

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-03-23 20:06:50 +08:00
Zxy 765c2ec5f9 [errno code]fix that use RT_EFULL without - 2023-03-23 01:55:46 -04:00
Zxy 156fda61cf [errno code]fix that use RT_ENOMEM without - 2023-03-23 01:55:21 -04:00
Zxy 4ed9bc11f7
[errno code]fix that use RT_ENOSYS without - (#7084)
* [errno code]fix that use RT_ENOSYS without -

* Update bsp/airm2m/air32f103/libraries/rt_drivers/drv_hwtimer.c

---------

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-03-23 01:54:42 -04:00
Zxy e15adf5e45 [errno code]fix that use RT_EEMPTY without - 2023-03-23 01:52:21 -04:00
guo 767c18aafc
完善 Ifx bsp (#7078)
* add uart6 support

* [ifx] add rw007 support

* [ifx] add spi6 support

* [ifx] fix rw007 cs pin

* [ifx] change default console to uart6
2023-03-23 09:40:46 +08:00
Meco Man deb40e8c0c [errno code][-RT_EBUSY] fix that use RT_EBUSY without - 2023-03-22 01:55:18 -04:00
Meco Man eb3cb250be [errno code][-RT_ETIMEOUT] fix that use RT_ETIMEOUT without - 2023-03-22 01:54:52 -04:00
Meco Man 0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
Meco Man de963feef4 [stm32][drv_tim.c] enable timer clock 2023-03-20 00:05:36 -04:00
Meco Man f80e61d6ff [stm32][pwm] fix the timer clock enable problem 2023-03-20 00:05:36 -04:00
Meco Man 27da0f0472 format .icf, .lds, .sct 2023-03-20 00:04:51 -04:00
luobeihai 674c4d4ebc
add apm32 rtt sdio/flash/sdram driver (#7065)
* add rtt sdio/flash/sdram driver

* formatting rtt drivers
2023-03-20 00:04:18 -04:00
Meco Man 4b8f518c48 [stm32][adc] add error code return 2023-03-19 23:50:44 -04:00
Meco Man b33e1cbf68 [stm32][pin] 修复GPIO驱动警告 2023-03-19 23:50:24 -04:00
flyingcys a538b26858
[bsp] add bl808 lp core (#7069)
* Add riscv_32e support

* add bl808 lp core

* update README.md
2023-03-19 23:16:12 +08:00
letian 576ddc5aa7
[mm32] add drv_adc to mm32f327x (#7061) 2023-03-19 09:06:19 -04:00
Meco Man c3820a2c1b format sconscript Kconfig files 2023-03-19 07:08:27 -04:00
flyingcys c11f5bb251
add bl60x/bl70x/bl61x/bl808 (#7063)
Co-authored-by: flyingcys <flyingcys!163.com>
2023-03-19 14:41:18 +08:00
Shell 18a14cc935
[rt-smart] move sys_cacheflush to lwp_syscall.c (#7048)
* [syscall] move sys_cacheflush to lwp_syscall.c

* [syscall] improve assertion

* [format] rename to rt_ctassert

* [debug] modified ct assertion on mm_page.c
2023-03-17 15:11:38 +08:00
Meco Man dfddd79b24 [errno code][-RT_EINVAL] fix that use RT_EINVAL without - 2023-03-16 20:21:43 -04:00
Meco Man e4e88b2f3e [error code][RT_EOK] fix RT_EOK with - 2023-03-16 20:21:25 -04:00
Meco Man 991a2f1e9e [RT_ALIGN_SIZE] set RT_ALIGN_SIZE as 8 by default 2023-03-16 20:20:55 -04:00
Meco Man 2cc9bd876e [error code][-RT_EIO] fix that use RT_EIO without - 2023-03-16 20:20:37 -04:00
supperthomas 65301b9cdd [bsp] Add company readme.md 2023-03-15 12:16:22 -04:00
Rbb666 d4e70e15ac [Renesas]Add ra6m4-cpk lvgl for spi-lcd support and update rt_spi_bus_attach_device_cspin function 2023-03-14 17:46:00 +08:00
wangxiaoyao 27a1c55505 [bsp/qemu-virt64-aarch64] enable fdt by default 2023-03-11 19:01:33 +08:00
Man, Jianting (Meco) 0275b23638
[i2c] fix the i2c device return error code (#7035)
* [i2c] fix the i2c device return error code
2023-03-10 23:44:03 -05:00
yuanzihao 23786ee481
[GD32]add gd32470z-lckfb (#7022)
* --复制gd32450z-eval 作为立创梁山派 gd32470z-lckfb的模板进行移植
* -修改模板keil工程的配置,IROM需要注意总共为1024k,分为Code  area 和Data area  ,IRAM1为 : 512K-64K=448K=458752=0x70000。
-重新用ENV生成编译固件
片上SRAM可分为4块,分别为SRAM0(112KB)、SRAM1(16KB)、SRAM2(64KB)和TCMSRAM(64KB)。SRAM0、SRAM1和SRAM2可以被所有的AHB主机访问,然而,TCMSRAM(紧耦合存储器SRAM)只可被Cortex ® -M4内核的数据总线访问。BKPSRAM(备份SRAM)应用于备份域,即使当VDD供电电源掉电时,该SRAM仍可保持其内容。附加SRAM(ADDSRAM)只在一些特殊的GD32F4xx器件中可用。由于采用AHB互联矩阵,上述SRAM块可以同时被不同的AHB主机访问,例如,即使CPU正在访问SRAM0,USBHS也可以访问SRAM1。

* -修改IAR编译的链接脚本
* --修改Flash和RAM大小
-RAM大小为448k是因为512K-64K=448K,其中后面的64K为TCMSRAM(紧耦合存储器SRAM)只可被Cortex ® -M4内核的数据总线访问,先不要乱分配
* -修改MDK链接脚本
* -修改board.h
* -修改MCU型号
* -Finsh控制台和LED1闪灯程序工作正常,串口控制台名称错误,从uart改为uart0
-Scons正常生成工程
* -发现GD32固件库当前没有240Mhz的时钟配置,将固件库升级为GD32F4xx_Firmware_Library_V3.0.3-发布时间为2023-01-04
* -修改bsp/gd32/arm/gd32407v-start/board/SConscript文件
* -修改led1和change logs
* -按照提交规范使能 One ELF Section per Function(MDK) 并用scons重新生成工程
* -发现整个GD32的IAR模板工程template.eww 是没有的,所以当前是不支持IAR开发的,需要后面学习一下IAR使用再实现了。
* -使用formatting源码格式化工具跑一边gd32470z-lckfb目录
* -使用formatting源码格式化工具跑一遍[components/net/netdev/src/netdev.c]
-三个月前的提交多了几个空格
2023-03-10 23:21:31 -05:00
Zxy c8b30bf31a
[device]修改i2c读写函数返回类型为rt_ssize_t (#7029) 2023-03-09 23:42:58 -05:00
charlown 95fea2f159
[ch32]修正接口数据类型 (#7025) 2023-03-08 22:52:07 -05:00
cyyang 7c95cc98f9 Remove redundant 'extern' in function declaration 2023-03-06 21:20:58 -05:00
Meco Man 0429452465 [bsp][rtduino] update arduino_main.cpp 2023-03-05 21:10:08 -05:00
Misthao fab0e506be
新增stm32f401-weact-blackpill BSP(STM32F401CCU6最小系统板) (#6973)
* 新增stm32f401-weact-blackpill
2023-03-06 10:09:03 +08:00
Yaochenger 922e6e40d3
[libcpu/risc-v]迁移libcpu/risc-v/e310与rv32m1文件中内容至bsp (#7015) 2023-03-05 19:43:58 -05:00
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
Man, Jianting (Meco) f4b285dc9c
improve sensor framework (#6784)
* [stm32l475-pandora] rename sensor_port.c as drv_sensors.c
* [sensor][cmd] add enter critical section protection
* [sensor] add sensor reset command
2023-01-08 21:33:38 -05:00
Shell 7450ef6c4d
[rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works.
adding kernel virtual memory management layer for page-based MMU enabled architecture
porting libcpu MMU codes
porting lwp memory related codes
2023-01-08 21:08:55 -05:00
liYangYang 7c05d8517c
[STM32][SPI]解决挂载函数里面不同bsp对uaer_data的滥用 (#6819)
* [spi]attach 片选引脚依赖pin框架
* 修改attach函数
2023-01-07 23:03:42 -05:00
flyingcys 98a997c57e
[bsp]add new bsp-bl808 (#6824)
* add new bsp-bl808

* support ARCH_RISCV_FPU_S && update rtconfig.py
2023-01-07 02:03:21 -05:00
Rbb666 3dffc78f39 Add ra6m3 readme 2023-01-06 18:42:21 -05:00
yandld d58e863a6d [bsp][lpc55sxx] i2c driver fix&repair 2023-01-06 18:42:00 -05:00
Rbb666 5eadf36b3b
Add studio documents for Infineon (#6821)
* Add Studio doc

* Update PSOC6系列BSP制作教程.md
2023-01-06 16:41:41 +08:00
Yaochenger 6618293dc5
[bsp][ch32]pwm避免警告 (#6818) 2023-01-05 23:10:46 -05:00
BruceOu e498687a58
[BSP] Add n32g4frml-stb bsp (#6773)
新增n32g4frml-stb bsp,在n32g4frml-stb 开发板上测试通过。
Add n32g4frml-stb bsp. passed the test on the n32g4frml-stb board.
2023-01-05 01:45:17 -05:00
luobeihai 24575c4486
add apm32F0 serie MCU support (#6789)
* add apm32F0 serie MCU support
add apm32f072vb-miniboard bsp
update F103/F407 bsp

* replace apm32f072vb picture

* Update action.yml
2023-01-05 01:15:02 -05:00
Yaochenger b99769f686
[libcpu][riscv]移除ch32中的冗余文件,使用common下的文件 (#6813)
* [libcpu][riscv]移除ch32中的冗余文件,使用common下的文件

* 修正cpuport.h宏定义

* 规范宏定义格式
2023-01-04 21:06:09 -05:00
Yaochenger f2a66e122f [libcpu][riscv]移除cv32e40p中部分文件,采用common中的文件 2023-01-02 16:42:18 -05:00
wdfk-prog 431579a166
[stm32][adc]更改配置通道与校准函数顺序 (#6758)
* [stm32][adc]更改配置通道与校准函数顺序
* 添加16位与14位分辨率配置
* 添加内部参考电压与温度,电池电压通道配置

* [stm32][adc]修改返回参考电压函数
* 返回准确的参考电压值
* 通过该值在使用__HAL_ADC_CALC_DATA_TO_VOLTAGE宏计算的电压值更为准确

* 删除多余代码

* 规划代码格式

* 更新支持其余芯片
* 已测试F429
2023-01-02 01:47:58 -05:00
螺丝松掉的人 c38c6e2c83
[rtduino]:add README for stm32f411-weact-blackpill pinout (#6807)
* [rtduino]:add README for stm32f411-weact-blackpill pinout
2023-01-01 23:39:40 -05:00
褚仕成 2b41f80f0e [rtduino]: fix README 2023-01-01 23:00:52 -05:00
goldengrandpa d355981041 [bsp][stm32f407-RoboMaster-C]Enable TIM5_CH1/2/3 2022-12-31 16:30:16 -05:00
yandld 7788227887 [bsp][lpc55sxx] update IDE project file
1. update all LPC55sxx ide project file
2022-12-30 07:52:46 -05:00
褚仕成 de9db80814 [rtduino] : fix arduino_pinout and README 2022-12-30 07:51:49 -05:00
Meco Man 76b5d0dfcf [bsp][nuvoton] modify RT_WEAK as rt_weak 2022-12-29 20:23:12 -05:00
breederbai 5e40f3a0d4 修复BUG(simulator):修复bsp/simulator编译报错的BUG 2022-12-29 14:02:08 -05:00
Bernard Xiong 8a71ae75ad
[BSP][smart] fix link script for smart in vexpress-a9 (#6764) 2022-12-29 15:18:36 +08:00
Wayne 0d1c709fa5
Sync upstream (#6793)
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-12-29 15:15:13 +08:00
Yaochenger 882a0af94e [libcpu][riscv] 添加宏用于区别是否开启FPU,更新ch32v208v-r0 ->ch32v208w-r0,更新注释 2022-12-28 18:47:39 -05:00
打盹的消防车 525417085b
[bsp] add air32f103 (#6785) 2022-12-27 19:44:20 -05:00
Yaochenger b77241935c
[bsp][ch32v208]添加ch32v208BSP,合并libcpu/riscv 中ch系列的port文件 (#6780)
【1】添加ch32v208-r0 bsp
【2】合并libcpu/riscv 下ch系列mcu的port文件
2022-12-27 13:24:02 -05:00