Commit Graph

17060 Commits

Author SHA1 Message Date
Wang Chen
980a376e9b bsp: k230: support canmv board
Some changes to support canmv board, such as:
- Address constant, some may need be set as configuration later.
- link script
- build script

Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
沐攸
6229153364 bsp/stm32: Separate STM32WB HAL drivers (#10223) 2025-04-24 00:24:25 +08:00
hydevcode
5804973a49 [bsp][Infineon] add a new bsp for XMC7100D-F144K4160AA 2025-04-23 12:54:52 +08:00
沐攸
ae83165609 bsp/stm32:Separate STM32L5 HAL drivers (#10216) 2025-04-23 06:00:58 +08:00
沐攸
6e19aadbc6 bsp/stm32:Separate STM32H7RS HAL drivers (#10217) 2025-04-23 06:00:29 +08:00
沐攸
c210588db9 bsp/stm32:Separate STM32WL HAL drivers (#10218) 2025-04-23 05:58:56 +08:00
沐攸
a7a6ccf6d5 bsp/stm32:Separate STM32L0 HAL drivers (#10215) 2025-04-22 22:53:52 +08:00
沐攸
a9cfc82298 bsp:Separate STM32G4 HAL drivers (#10214) 2025-04-22 22:53:15 +08:00
沐攸
1a6349d7dc bsp/stm32: Separate STM32G0 HAL drivers (#10213) 2025-04-22 22:52:27 +08:00
沐攸
fe7999ed33 bsp: Separate STM32F3 HAL drivers (#10211) 2025-04-22 22:51:42 +08:00
沐攸
e347305ad0 bsp/stm32:Separate STM32F2 HAL drivers (#10210) 2025-04-22 22:50:29 +08:00
沐攸
c7c8d9d6ef bsp/stm32:Separate STM32F7 HAL drivers (#10208) 2025-04-22 22:49:39 +08:00
沐攸
cee8c81d3c bsp/stm32:Separate STM32F1 HAL drivers (#10209) 2025-04-22 22:48:57 +08:00
sheltonyu
9551bfe5fc [bsp/at32] fixed 'scons --dist' error (#10212) 2025-04-22 18:42:38 +08:00
hydevcode
bd796f9055 [bsp][qemu-vexpress-a9] Adapter driver for serial port v2 ([#10176](https://github.com/hydevcode/rt-thread/issues/10176)) 2025-04-22 16:52:08 +08:00
Chen Wang
e7d870bb71 bsp: cvitek: riscv: use marco for linker script
Regarding link script, some memory offsets and sizes are different
between the standard version and the smart version (such as
"__STACKSIZE__", kernel start address, kernel memory size, etc.).
Original solution is replacing link scripts and use INCLUDE,
which is relatively complicated.

This improvement uses macros to replace constants in the link
script. The preprocessing mechanism provided by gcc is used
to dynamically replace constant values during the build process.

In addition, the kernel load address (the corresponding
KERNEL_VADDR_START for smart) was originally configured as
0xFFFFFFC000200000, which is default value of riscv with
kernelmap enabled (0xffffffc000000000) plus offset to skip over
bootloader (0x200000). This caused a trouble: due to
default bsp configuration is for smart, if we switched to the
standard version and build, and then switched back to the smart
version, the value of KERNEL_VADDR_START will be default back to
0xffffffc000000000, which is different from the original configuration
value, resulting in the need to manually reconfigure it, which
is easy to forget and cause problems.

The current solution is to use the default value
0xffffffc000000000 in the configuration. Add offset to the code
and link script when using it.

This patch update the default .config and rtconfig.h for cv18xx_riscv.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-22 09:48:53 +08:00
沐攸
7371a007af bsp:Separate STM32H5 HAL drivers (#10206) 2025-04-21 17:48:33 +08:00
沐攸
53a4bfa708 bsp/stm32:Separate STM32H7 HAL drivers (#10204) 2025-04-21 17:48:18 +08:00
ricky
7125e7bebd include:rtdef.h: comment Refine the annotation of RT_ALIGN and RT_ALIGN_DOWN (#10201)
include :rtdef.h : [ Refine the annotation of RT_ALIGN and RT_ALIGN_DOWN ]

This macro is vulnerable to non-2-byte alignments,
but I assume that the macro definition was designed with an explicit use case of 2-byte alignments in mind.
Therefore, I only modify the comment to remind the user.

Solution:
RT_ALIGN(size, align) ((size) + (align) - 1) / (align) * (align)
RT_ALIGN_DOWN(size, align) (size) / (align) * (align)
Here's what deepseek recommends more.

Signed-off-by: Yucai Liu <1486344514@qq.com>
2025-04-18 17:07:57 +08:00
Chen Wang
443c530c3c doxygen: fix one typo issue (#10200)
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-18 14:04:16 +08:00
Chen Wang
55428e4393 doxygen: re-org module groups (#10197)
Match the organization of modules (groups) with
that of user guide.

Preliminary arrangement. This patch is just a
framework arrangement. Details need to be continued.

P.S., in this patch, adding numerical prefixes to
the files in documentation/0.doxygen is to meet the
need of displaying sorting in HTML pages.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-18 10:44:43 +08:00
ThinkCode
d59f5c0fe8 [bsp] 修复 #10182 GD32生成Cmake工程错误的问题 (#10191)
修复 #10182 GD32生成Cmake工程错误的问题
2025-04-17 12:29:14 +08:00
Supper Thomas
d415282c59 [action/ci] add qemu-virt64-riscv (#10192) 2025-04-17 09:19:56 +08:00
Supper Thomas
c674e27b6e [action/ci] add qemu-virt64-riscv (#10192)
* Update ALL_BSP_COMPILE.json

* Update ALL_BSP_COMPILE.json
2025-04-16 22:55:44 +08:00
Lin-Chengqiu
0c084533ef [bsp/gd32/arm/drv_adc] incompatible function pointer types initializing. (#10190) 2025-04-15 14:55:10 +08:00
zhangyan
3ebad06ff3 [bsp/phytium]适配rtthread5.2版本 (#10178)
* rtthread 5.2适配
2025-04-14 19:14:54 +08:00
1078249029
9d1fb86020 [DM/FDT] Fix garble when booting
Fix garble caused by empty implementation of earlycon series
function in driver.If driver doesn't offer earlycon_id or rt_f
dt_earlycon_id.setup function but open option, the checking
of best_earlycon_id will failed.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-04-14 18:04:39 +08:00
keeping passionate!
7c39352f4c Fixed an error by running scons --tartget=cmake under LINUX, #10113 (#10164)
Fixed an error by running scons --tartget=cmake under LINUX, and associated issue #10113
2025-04-14 07:32:53 +08:00
mouch6131
86df886c7f libcpu: aarch64: Fix NORMAL_NOCACHE_MEM attr (#10180)
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
Signed-off-by: mouch6131 <187177037@qq.com>
Co-authored-by: Cliff Chen <cliff.chen@rock-chips.com>
2025-04-13 22:12:00 +08:00
Supper Thomas
5100d39def [bsp/hpm5300evk]: 修复readme中的描述问题 (#10187)
1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉
2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme
3. 添加download.bat脚本,方便下载
2025-04-13 15:29:39 +08:00
Chen Wang
4ff1cfce64 doxygen: cleanup and re-org files
This patch contains two small changes, mainly to
prepare for the next step of organizing the modules
framework.

The first change: move the files related to doxygen
examples to `documentation/0.doxygen/example/`

The second change: delete `documentation/0.doxygen/mainpage.h`,
which is the mainpage of the old page. Now the new mainpage
is `documentation/INDEX.md`, so the duplicate can be
deleted.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-13 15:28:21 +08:00
wycwyhwyq
12de72a462 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
wycwyhwyq
da1c5c7882 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
wycwyhwyq
f13193ff92 [src] fix mutex bug 2025-04-13 15:25:42 +08:00
CXSforHPU
2db2bf0cc7 [bsp/gd32/libraries] Repair naming (#10185)
[bsp/gd32/arm/libraries] Repair naming
2025-04-12 23:04:45 +08:00
CXSforHPU
1b0d939edb [bsp/gd32/arm/libraries] Repair naming (#10184) 2025-04-11 21:56:27 +08:00
ricky
522f7aa0d3 [fal/sample] readme 添加 (#10175)
* 更改FLASH_PAGE_SIZE拼写错误
2025-04-11 17:34:36 +08:00
Chen Wang
312f9dbc08 libcpu: riscv: declare external symbols inside
libcpu/risc-v/common64/mmu.c uses the external
symbol "__bss_end" (this symbol generally is
defined in the link script file) and depends
on the extern declaration of this symbol in
the bsp's "board.h". This is not a problem in
implementation, but it is not a good habit.

If this extern symbol is used locally, just
declare it locally should be better.

In this way, there will be no dependency of
the kernel core on the bsp header file. And
there will be no special requirements for the
bsp board code, such as the need to make
extern declarations for these "__bss_end"
symbols in "board.h".

This patch currently only explicitly externly
declares "__bss_end" inside libcpu itself.
The code of "#include <board.h>" is kept, because
the modification involved is too large, it is
necessary to clean up the bsp involved before
cleaning this include code line uniformly.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-11 14:15:12 +08:00
Chen Wang
5c9f61879c libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177)
* libcpu: cleanup undefined rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init() is declared in header files but
no definition found, cleanup the code.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp: allwinner: d1: remove calling of rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init is an undefined function, calling it
is meaningless.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-11 07:54:21 +08:00
hydevcode
0c4a2048f9 [bsp][qemu-vexpress-a9] Adapter driver for serial port v2 (#10176) 2025-04-10 09:24:12 +08:00
Yang Xijing
6639dbe252 【修改】timer parameter注释 (#10172) 2025-04-08 12:11:19 +08:00
Wang Qiang
5c660c0f99 修复了GD32目录下BSP使用dist后生成的工程无法使用menuconfig的问题 2025-04-04 18:40:27 -04:00
hydevcode
f422b6a991 [bsp/stm32] 修复linux下编译的可执行文件无法启动问题 (#10169) 2025-04-03 17:40:14 +08:00
沐攸
e131a0011e bsp/stm32:Separate STM32U5 HAL drivers (#10167) 2025-04-03 16:17:21 +08:00
沐攸
45eea78e09 bsp: Separate STM32F0 HAL drivers (#10160)
* bsp: Separate STM32F0 HAL drivers

* fix stm32f0_sdk and update readme.md
2025-04-01 11:16:32 +08:00
qilian
98589e6229 [BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)
Create cpuport.h

Add support for spinlock
2025-04-01 07:37:09 +08:00
hydevcode
4d826cad13 [action/ci] 将需要编译的bsp分离,同时根据修改的文件编译对应的bsp (#10159) 2025-03-31 21:07:53 +08:00
Supper Thomas
c97c9c6c57 [bsp/stm32l496zg] 添加uart2 , 添加btstack yml文件 2025-03-29 19:55:59 -04:00
kk
4acef9b1cd Update include/rtdef.h version to 5.2.1 2025-03-28 23:12:14 -04:00
jojoandgyc
15ef367477 bsp: cvitek: use rttpkgtool for aarch64
Fixed  #9968

1.Using scripts in rttpkgtool to make firmware.
2.Deleted duplicate prebuild files.
3.Modify README.md

Signed-off-by: YunZhan Huang <1583267844@qq.com>
2025-03-29 08:55:40 +08:00