Commit Graph

16457 Commits

Author SHA1 Message Date
Fan YANG 0b1ba0f612 [bsp][hpmicro] add missing fence apis
- added missing fence apis

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-08-26 10:41:15 +08:00
Fan YANG 6c085218a3 [bsp][hpmicro][hpm6e00evk] add hpm6e00evk support
- added hpm6e00evk support

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-08-26 10:41:15 +08:00
Fan YANG e19b63e5fb [bsp][hpmicro] upgrade hpm_sdk to v1.6.0
- upgraded hpm_sdk to v1.6.0

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-08-26 10:41:15 +08:00
Supper Thomas a8ff514d09 [readme] add CI icon for build action 2024-08-26 09:19:00 +08:00
Supper Thomas a75ac04440 [action] add action auto labeler to label PR 2024-08-26 09:19:00 +08:00
Z8MAN8 742dae7220 bsp: cvitek: Add timer driver
Signed-off-by: Shicheng Chu <1468559561@qq.com>
2024-08-25 12:11:57 -04:00
Supper Thomas 077e6889e8 [bsp/nxp] Add fixed lds 2024-08-25 22:57:52 +08:00
zhuzhuzhu 1be24fc7da
【修复】修复link系统调用返回值问题 2024-08-25 10:57:38 -04:00
zhuzhuzhu dc232080a0
【修复】修复rmdir系统调用返回值不符合用户预期问题 2024-08-25 10:57:15 -04:00
zhuzhuzhu d9fac09f71
【修复】 修复dup系统调用对用户态的返回值问题 2024-08-25 10:56:47 -04:00
zhuzhuzhu c4c227e367
【修复】修复symlink系统调用返回值不是预期问题 2024-08-25 10:56:03 -04:00
yandld 8ba75bddc3 [bsp][mcxc] initial commit for frdm-mcxc444 2024-08-25 10:55:17 -04:00
Supper Thomas 1449d37cdf [action/ci] add cpu and arch 2024-08-25 10:54:47 -04:00
supperthomas 3a7e6997c2 [action] filter the not arm-none-eabi-gcc bsp 2024-08-25 01:36:50 -04:00
supperthomas fe8a00fafc [action] add toolchain download link 2024-08-25 01:36:50 -04:00
supperthomas 1df5be69e8 [action/ci] Add bsp detail python script 2024-08-25 01:36:50 -04:00
zx568073531 b19672ccc1 修复TLS内存申请没有初始化问题 2024-08-25 01:36:31 -04:00
SeliverWang f7f0afe03e 修复TLS申请内存后没有初始化问题 2024-08-25 01:36:31 -04:00
Shell 564ca848f4 fixup: uninitialized argument vector element
This patch addresses the potential issue of uninitialized elements in
the argument vector returned by `lwp_get_command_line_args()`. The
previous implementation could leave `argv` in an inconsistent state
if certain errors occurred, leading to possible undefined behavior.

Changes:
- Replaced `rt_malloc()` with `rt_calloc()` to ensure `argv` is properly initialized.
- Added a consistent error handling path using `goto error_exit` to handle memory allocation failures and string copy errors.
- Ensured `lwp_free_command_line_args()` is called before returning on error, preventing potential memory leaks.

Signed-off-by: Shell <smokewood@qq.com>
2024-08-24 15:46:35 -04:00
supperthomas d6d6752627 add fixed code 2024-08-24 15:44:23 -04:00
supperthomas 8b6df9a508 change RTTHREAD_GITHUB_TOKEN 2024-08-24 15:44:23 -04:00
supperthomas 372c841912 [action] remove multiprocessing 2024-08-24 15:44:23 -04:00
Supper Thomas cc4965cb4c [action] Add PR for update 2024-08-24 15:44:23 -04:00
Supper Thomas 93314e3392 [action] add multiprocess and add include_paths 2024-08-24 15:44:23 -04:00
Supper Thomas 1726a174de [action] add manual trigger build all bsp (#31) 2024-08-24 15:44:23 -04:00
zhujiale d086039608 fix_return 2024-08-24 14:44:39 +08:00
zhujiale afa17ed343 fix_return_err 2024-08-24 14:44:39 +08:00
CXSforHPU 416ec66380
[device] add dev_ prefix for file names 2024-08-23 18:15:09 -04:00
Koen De Vleeschauwer edfc7d6201 [bsp/at32] static dma_isr() in hard_i2c and spi 2024-08-23 17:45:56 -04:00
LZerro e5382cb733 [bsp][Infineon][psoc6-evk-062s2]Adapt to RTduino 2024-08-22 22:58:49 -04:00
rcitachi 9a84c13b2e
[lwp] Implementation of setpgrp and fix mmap2 problems (#9308)
* mmap2 failure handling

当传入一个非常大的地址时,offset会计算得到一个值,又因为传入的地址错误,rc会得到错误码,结合offset会得到一个很奇怪的值。

* Implementation of setpgrp

执行setpgrp会走到这一步,在执行getpgrp无法得到创建的group的值

* Modify the return method of mmap
2024-08-22 17:53:18 -04:00
zms123456 9d95ad9b8d
[lwp][tid]add error log when tid depleted, and return correct errno when clone failed (#9327)
add error log when tid depleted, and return correct errno when clone failed
2024-08-22 17:52:45 -04:00
zms123456 fd31965c3c
[components][lwp]fix mount param issue (#9333)
fix mount param issue
2024-08-22 17:52:19 -04:00
hywing d3b9480658 [bsp][nxp][mcxa153] add i2c driver 2024-08-21 17:35:19 -04:00
Z8MAN8 f5156774b2 bsp: cvitek: Canonically rename some macro definitions
Analysis: Some macro definition names are not standardized
and lack prefixes.

Solution: Add BSP_ prefix to GPIO_IRQ_BASE SYS_GPIO_IRQ_BASE
PLIC_PHY_ADDR TIMER_CLK_FREQ UART_IRQ_BASE I2C_IRQ_BASE.

Signed-off-by: Shicheng Chu <1468559561@qq.com>
2024-08-20 09:52:18 +08:00
Yilin Sun fea231407b bsp: nxp/mcx/mcxn/mcxn236: Remove invalid SPI8 entry.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-19 16:04:28 +08:00
Yilin Sun 42239863cf bsp: nxp/mcx/mcxn/mcxn947: Remove invalid SPI8 entry.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-19 16:04:28 +08:00
Yilin Sun a5780a341c bsp: nxp/mcx/mcxn: SPI: Use updated DMA mux enum.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-19 16:04:28 +08:00
Shell c451dce820 feat: add ISR safe completion API
Since the completion is used to sync with ISR mostly, we should set the
default semantic to ISR-safe. So most user will be happy and don't see
any weird behavior in their codes.

Changes:
- Added `rt_completion_wait_noisr` and
  `rt_completion_wait_flags_noisr` functions in `completion.h`,
  `completion_comm.c`, `completion_mp.c`, and `completion_up.c`.
- The new APIs allow waiting for completions in non-ISR contexts
  while ensuring thread context safety.
- Existing documentation and comments were updated to clarify
  usage contexts and emphasize restrictions on ISR usage.

Signed-off-by: Shell <smokewood@qq.com>
2024-08-19 10:39:15 +08:00
CrazyJhq d87f30cf21
mem: fix some log issue in src/slab.c 2024-08-18 18:33:52 -04:00
Yilin Sun fd3f603b27 bsp: nxp/frdm-mcxn947: FS: use generic SPI API.
This patch replaces SPI flash mount procedure with generic SPI API. This
patch also try to format the external flash on the first mount failure,
in case of empty or invalid flash content is present on the external SPI
flash.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-16 20:20:34 -04:00
Yilin Sun 12214dc18c bsp: nxp/frdm-mcxn947: WiFi: use generic SPI API.
This patch changed SPI initialization API to standard RT-Thread SPI API.
The current code contains a minor bug which does not wait for WiFi
module ready before stack initialization, this is also fixed.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-16 20:20:34 -04:00
Yilin Sun e6cf0bc97d bsp: nxp/mcxn947: Updated SDK to release v2.16.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-16 20:20:13 -04:00
Yilin Sun 0864456947
bsp: nxp/mcx: Use standard SPI CS pin. (#9312)
* bsp: nxp/mcx/mcxn: SPI: Added missing bracket and re-format code.

The closing bracket is missing from SPI6 struct.
Introduced since commit fc1cfd6d36 .

Use standard rt_spi_device->cs_pin instead of user_data pointer.

---------

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-16 16:47:16 +08:00
沐枫 9822b46291
[BSP][stm32]add BSP for FK407M2-ZGT6 2024-08-15 04:10:16 -04:00
Meco Man c90179beb5 删除rt_thread_sleep遗留 2024-08-15 04:08:33 -04:00
Yilin Sun 3e246caa1c CMake: Generator re-write and bug fixes.
Updated CMakeLists.txt generator to handle private macro definitions for
source groups. Individual source groups are added as OBJECT libraries,
which does not generate actual archive but will be linked together at
final application linking stage. Source groups without source files are
added as INTERFACE libraries, which provides library dependencies to the
final application.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-08-13 04:19:49 -04:00
Shell a6c38c5c44 bsp: fit into c11 atomic 2024-08-13 04:13:51 -04:00
Shell e9b683d0b3 feat: set RT_USING_STDC_ATOMIC to first priority
RT_USING_STDC_ATOMIC is a user selected option on current config system.
While the RT_USING_HW_ATOMIC is a forced option selected by Kconfig
under libcpu. And the RT_USING_STDC_ATOMIC will be meaningless if we set
RT_USING_HW_ATOMIC to first priority if the arch has hw-atomic.

Changes:
- set RT_USING_STDC_ATOMIC to first priority on rttypes.h

Signed-off-by: Shell <smokewood@qq.com>
2024-08-13 04:13:51 -04:00
yekai e418b959d7 modify startup to call entry after start 2024-08-12 19:19:59 +08:00