rt-thread/bsp
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
..
CME_M7 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
ESP32_C3 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
Infineon [Infineon]Fix scb5 can't use bug 2023-02-25 00:35:57 -05:00
Vango modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
acm32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
airm2m rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
allwinner [fixup] add cache maintenance ops; 2023-02-21 08:48:49 +08:00
allwinner_tina rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
amebaz rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
apm32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
apollo2 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
asm9260t modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
at32 replace RT_WEAK macros with rt_weak 2023-02-27 18:27:14 -05:00
at91 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
avr32uc3b0 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
beaglebone modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
bf533 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
bl808 [bsp/bl808] add: drv_i2c 2023-01-19 21:41:53 -05:00
bluetrum rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
bm3803 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
ck802 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
core-v-mcu [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
dm365 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
efm32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
essemi rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
fm33lc026 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
frdm-k64f rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
ft32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
ft2004 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
fujitsu/mb9x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
gd32 [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
gd32e230k-start rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
gd32vf103v-eval [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
gd32105c-eval rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
gd32107c-eval rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
gd32303e-eval rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
gd32350r-eval modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
gd32450z-eval rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
hc32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
hc32l136 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
hc32l196 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
hifive1 [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
hk32 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
hpmicro [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
imx6sx rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
imx6ul Add ADT Kconfig and fix MMU kconfig issue in Cortex-A (#6901) 2023-02-06 01:11:04 +08:00
imxrt [nxp] format imxrt libraries 2023-02-15 09:36:04 +08:00
juicevm rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
k210 [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
lm3s9b9x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lm3s8962 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lm4f232 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
loongson rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc43xx rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc55sxx [bsp][lpc55sxx] update pwm driver 2023-02-28 17:37:09 -05:00
lpc176x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc178x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc408x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc824 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc1114 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
lpc2148 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc2478 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc5410x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc54114-lite rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
lpc54608-LPCXpresso rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
m16c62p rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
maxim rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
microblaze modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
microchip rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
mini2440 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
mini4020 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
mipssim modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
mm32 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
mm32f103x modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
mm32f327x modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
mm32l3xx modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
mm32l07x modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
n32 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
n32g452xx [ng32] format ng32f452 bsp 2023-02-15 09:36:04 +08:00
nios_ii rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
nrf5x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
nuclei [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
nuvoton rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
nv32f100x modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
phytium modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
pic32ethernet rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
qemu-vexpress-a9 [rt-smart] PV_OFFSET as a variable (#6904) 2023-02-14 23:08:32 +08:00
qemu-virt64-aarch64 [BSP] Add vscode setting. (#6992) 2023-02-28 09:17:36 +08:00
qemu-virt64-riscv [rt-smart] PV_OFFSET as a variable (#6904) 2023-02-14 23:08:32 +08:00
raspberry-pi rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
raspberry-pico [bsp/raspberry-pico] add: SMP (#6888) 2023-02-02 12:19:33 +08:00
renesas [Renesas]Add tft-lcd lvgl support 2023-02-23 13:29:08 -05:00
rm48x50 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
rockchip Add ADT Kconfig and fix MMU kconfig issue in Cortex-A (#6901) 2023-02-06 01:11:04 +08:00
rv32m1_vega [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
rx modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
sam7x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
samd21 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
sep6200 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
simulator rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
smartfusion2 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
sparkfun-redv modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
stm32 [pin][5.0.0] 修正pin框架数据类型使用不当 (#6934) 2023-02-26 21:17:51 -05:00
synopsys/boards modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
synwit rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
tae32f5300 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
taihu modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
thead-smart modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
ti/c28x modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
tkm32F499 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
tm4c123bsp rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
tm4c129x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
tms320c6678 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
upd70f3454 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
w60x rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
wch [libcpu][riscv]整合libcpu/riscv中的移植文件 提供一份公共代码于common (#6941) 2023-03-01 01:32:43 -05:00
wh44b0 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
x86 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
xplorer4330 rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
yichip/yc3121-pos modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
zynqmp-r5-axu4ev rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
Copyright_Notice.md 本次PR涉及①BSP驱动新增②F103库更新③GCC、IAR适配及MDK更新④README文件及由更新驱动引起的脚本改动。 (#5638) 2022-03-08 12:03:06 +08:00