Commit Graph

80 Commits

Author SHA1 Message Date
Hornos Lee 4f1a50be24
[HUST CSE] fix: Fixed wrong download link of env in 20+ files. (#7296) 2023-04-18 09:18:56 -04: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
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
Meco Man 0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04: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
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
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) 99bdf978d7
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
Meco Man 8b0610fc34 [bsp][readme] 增加scons --exec-path=xxx 命令的使用说明 2022-10-10 09:42:44 +08:00
liuxianliang a4eb64b873 update the project for RT-Thread_V4.1.1 2022-08-16 19:38:48 +08:00
Meco Man 16ceacda80 [k210] 调整Kconfig结构 2022-08-03 22:48:13 -04:00
Meco Man 9ee9b9205c [k210] update readme 2022-07-30 10:58:57 +08:00
Meco Man c1613ec7cb [k210] 使用新版的SDK软件包 2022-07-29 21:54:51 +08:00
guozhanxin e353b2d5f1 [bsp] Update all projects. 2022-03-29 19:28:06 +08:00
liukangcc ccbd22f493 [update] refresh project 2022-01-26 18:30:23 +08:00
Man, Jianting (Meco) bb1084556f [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题

* format codes

* [libc] 整理格式

* refresh projects
2022-01-09 00:20:32 +08:00
liukangcc b0f6c2fbae [update] CFLAGS 2021-12-17 14:28:40 +08:00
Tangyuxin d724eed9fc
分离内存分配接口与内存分配算法 (#5175)
* [kernel][mem] Multiple instances of small memory allocation algorithm

* [kernel][mem] Change small memory management algorithm memory header flag

* [kernel][mem] Fix assertion problem

* [kernel][slab] Multiple instances of slab memory management algorithm

* [kernel][memheap] Remove rt_malloc/rt_free/rt_realloc and other related memory interfaces

* [kernel][mem] Clean up memory space of small memory management objects

* [kernel][kservice] Add memory application interface and thread protection interface

* [kernel][kservice] Fix function return value problem

* [kernel][memheap] Optimize memheaptrace print

* [kernel][memheap] Support best mode

* [kernel][memory] Remove semaphore lock

* [kernel][memheap] Add locked flag

* [kernel][memory] Support malloc memory in interrupt

* [kernel][memheap] Add 'memheapcheck' cmd

* [kernel][mem] Fix failure to request full memory

* [kernel][memheap] Fix compilation warning

* [kernel][mem] Fix mem realloc ASSERT

* [examples][testcases] Add small mem testcase

* [examples][mem_tc] Modify test memory size

* [examples][testcases] Add slab memory management algorithm test case

* [examples][testcases] fix small memory management algorithm test case

* [kernel][memory] Adjusting memory allocation algorithm object definition and interface

* [kernel][memory] Fix compilation warning

* [examples][utest] Fix mem test case

* [examples][utest] fix slab test case

* [utest][testcases] Shorten test time

* [kernel][memory] Formatting code

* [examples][utest] Adjust test run time

* [examples][utest] Formatting code

* [bsp] update all rtconfig.h
2021-12-16 16:23:58 +08:00
Meco Man df9a23c534 [mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO 2021-11-17 15:57:15 -05:00
Meco Man 52bbd9d715 [posix] implement delay functions as RT_USING_POSIX_DELAY 2021-11-10 14:12:36 -05:00
liqiwen bbabae4429 k210 lcd添加Draco板子配置 2021-10-27 16:24:47 +08:00
liqiwen b064376993 去掉bsp/k210 lcd_init函数的static修饰 2021-10-27 14:09:17 +08:00
liqiwen 316cbd33fa adjust bsp/k210/driver/Kconfig 2021-10-27 10:52:29 +08:00
chunyexixiaoyu aa09f2b5c2 bsp/k210/:update K210 bsp and base on https://github.com/kendryte/K210-Micropython-OpenMV 2021-10-14 17:23:25 +08:00
guo b1baf42d4e
Revert "Fix compiler flags issue" 2021-10-14 14:36:18 +08:00
liukangcc 3ac36a3107 [update] Fix compiler flags issue 2021-10-14 10:32:22 +08:00
wugensheng 7003527060
Update rtconfig.py 2021-08-24 10:41:24 +08:00
shinu_61 606044bf6b update bsp/k210/README.md 2021-08-23 16:12:40 +08:00
shinu_61 4e21c1254d update K210 BSP 2021-08-23 16:02:29 +08:00
JCZou 0369db718c Fix compiler flags issue
CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for
gcc to avoid passing gcc flags to g++.
2021-08-19 08:53:27 +02:00
rtthread-bot 82560192a0 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-06-17 16:30:09 +00:00
bernard 171bd477cf !90 修复k210 GPIO引脚中断电平变化的错误
Merge pull request !90 from StupidMalphite/gitee_master
2021-06-17 08:50:28 +00:00
chunyexixiaoyu 4e54555120 /bsp/k210:add delay us function in board.c ,when using posix interface ,rt_hw_us_delay this function will be called in unistd.c file 2021-06-11 10:02:24 +08:00
yangjie eeaf1fcc50 resolve Conflicts
bsp/nrf52832/board/Sconscript
	bsp/nrf52832/startups/Sconscript
	bsp/raspberry-pi/raspi4-32/driver/SConscript
2020-12-28 12:02:31 +08:00
ZhaoJiasheng ad41afbc65 Fix bsp/k210/driver/drv_gpio.c error 2020-12-22 17:33:49 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
tangweikang 62654ea9ed [K210] update Kconfig : select ARCH_RISCV_FPU_S 2020-11-21 14:28:45 +08:00
tangweikang 732382c676 [K210] update compile parameters and startup_gcc.S 2020-11-21 13:47:58 +08:00
Bernard Xiong 2ef3c9d861
Merge pull request #3329 from Hehesheng/master
fixed drv_gpio bug
2020-11-18 08:11:26 +08:00
Bernard Xiong 36cb4349a6
Merge pull request #3897 from yangjie11/yj_dev1
[components][driver/pin.c]pin 框架增加 rt_pin_get
2020-09-11 12:57:59 +08:00
yangjie 38b3a3445e [bsp][driver] 初始化 BSP 中的 rt_pin_ops 2020-09-11 11:16:42 +08:00
RT-Thread 6e36f54e28 !22 【开源贡献活动】K210编译报错及解决方案总结 https://gitee.com/rtthread/rt-thread/issues/I1BFQG
Merge pull request !22 from shentalon/N/A
2020-06-15 13:10:16 +08:00
shentalon 2c622692ee 【开源贡献活动】https://gitee.com/rtthread/rt-thread/issues/I1BFQG 2020-06-11 22:37:43 +08:00
asd7893361 ea66435418 1、修改SPI1接口定义,使符合sipeed M1 dock模块TF卡;
2、调通TF卡挂载;
2020-06-08 00:07:05 +08:00
asd7893361 4dbbefdd8f 修复kconfig中引脚名错误问题
config BSP_LCD_WR_PIN
        int "DC pin number of 8080 interface"  -》 int "WR pin number of 8080 interface"
2020-06-06 23:05:27 +08:00
asd7893361 8b638d1013 修复“multiple definition of `uart_init'”问题。 2020-06-06 00:31:12 +08:00
Fu Wei 609911bee9 [RISC-V:K210]Add UART1~3 support for K210
This patch adds UART1~3 support for K210, and separates the rt_uart_ops of
UARTHS from UART.
This patch add configs in Kconfig for configuring the pins of UARTx,
please check the sysctl_set_power_mode for the pins in the io_config_init
of bsp/k210/driver/drv_io_config.c

Signed-off-by: Fu Wei <wefu@redhat.com>
2020-04-26 19:51:35 +08:00
Hehesheng 4fe5ce75c4 fixed drv_gpio bug 2020-01-14 17:06:18 +08:00