Commit Graph

17612 Commits

Author SHA1 Message Date
godmial
2fb53c83c5 [bsp][spi flash]: 优化GD32F470 SPI Flash初始化和UART0配置 (#10983)
* feat(gd32): 优化GD32F470 SPI Flash初始化和UART0配置

主要修改:
1. SPI Flash初始化优化
   - 添加可配置的SPI Flash自动初始化选项(BSP_USING_SPI_FLASH)
   - 支持按SPI总线独立配置Flash初始化(BSP_USING_SPIx_FLASH)
   - 避免SPI Flash初始化与其他SPI设备(如OLED、WIFI)冲突
   - 添加SPI5 Flash支持
   - 修改drv_spi_flash.c,仅在明确配置的SPI总线上初始化Flash

2. UART0配置修复
   - 将UART0的AFIO默认值从AF1改为AF7
   - 修复串口无响应问题

这些修改使得用户可以更灵活地配置SPI Flash初始化,避免自动初始化导致的设备冲突问题。

* feat(gd32): 解耦SPI Flash与SFUD的依赖关系
2025-12-01 14:47:53 +08:00
wdfk-prog
75d6c1cec5 fix(finsh): Fix crash in 'tail' command with insufficient '-n' arguments 2025-11-30 12:58:51 +08:00
CYFS
5c20c4f8db [bsp][hpm]:fix scons --dist 2025-11-30 12:57:38 +08:00
Chuan
2fcdd86dbc docs(utest):Add standardized documentation for IPC Completion Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-26 22:53:01 +08:00
Chuan
7983d97738 docs(utest):Add standardized documentation for IPC Workqueue Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-26 22:53:01 +08:00
Chuan
604d123186 [utest][serial bypass]:Add standardized documentation for Serial Bypass Test 2025-11-26 22:52:39 +08:00
Tm-C-mT
9c2279acdc [docs][utest]:Add comments for smp_bind_affinity
Add comments for smp_bind_affinity, And fixed some comment issues in smp_affinity_pri2_tc.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
Tm-C-mT
cafd9c6dfe [docs][utest]:Add comments for smp_affinity_pri2
Add comments for smp_affinity_pri2

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
Tm-C-mT
ea37d4c2c9 [docs][utest]:Add comments for smp_affinity_pri1
Add comments for smp_affinity_pri1

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
kurisaw
5706c5ef4d [gd32/arm][bsp]: synchronous kconfig update 2025-11-26 21:42:29 +08:00
kurisaw
98b9ecdba6 [gd32/arm][drivers]: general GD serial driver adapter 2025-11-26 21:42:29 +08:00
kurisaw
d32ed6a4af [gd32/arm][drivers]: add support for the H7 series and optimize the GPIO driver 2025-11-26 21:42:29 +08:00
Chuan
5423d43e25 [utest][audio]:Add standardized documentation for Audio Test 2025-11-26 19:21:19 +08:00
Ze-Hou
d3e26999ce bsp: k230: add dma support to the i2c driver
1. add dma support to the I2C driver to improve efficiency.

Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-25 22:12:24 +08:00
dongly
583d7f47c7 [soft_rtc]修正GET_TIMESPEC/GET_TIMEVAL 获取 ns/us 的错误; 优化soft_rtc实现 2025-11-25 09:44:07 +08:00
guozhanxin
6695599afc [tool] fixed scons --target=xmake 2025-11-23 22:31:56 +08:00
Chuan
af6e310b61 docs(utest):Add standardized documentation for Mailbox Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-23 15:14:14 +08:00
wdfk-prog
0a02fd4545 docs:[STM32][drv_gpio] Add detailed Doxygen comments for GET_PIN macro 2025-11-22 10:11:38 +08:00
wdfk-prog
836eecc2f9 fix:[STM32][drv_can] Suppress unused variable warning in send error path 2025-11-22 10:11:38 +08:00
4444x
4e7a78ee0b [docs]:Add standardized function comment blocks for mutex_tc 2025-11-22 10:10:32 +08:00
liuyucai
29fb860ad4 finsh: replace str/mem functions with rt-prefixed versions
Replace standard string and memory functions with RT-Thread's rt-prefixed
equivalents where available:

- strcpy -> rt_strcpy
- strncpy -> rt_strncpy
- strcmp -> rt_strcmp
- strncmp -> rt_strncmp
- strlen -> rt_strlen
- strstr -> rt_strstr
- memcpy -> rt_memcpy
- memcmp -> rt_memcmp

Functions like strcat, strchr remain unchanged as RT-Thread does not provide
rt-prefixed versions.
2025-11-22 09:31:37 +08:00
蒙蒙plus
6ab057be41 🐞 fix(at_socket):修复socket 在开启server下的connect连接
修复accept在错误执行过程中返回无效socket问题
2025-11-21 17:23:54 +08:00
R b b666
25e98bd3f2 [utest]Refactor object_tc.c, add stress and error-path coverage (#10961) 2025-11-21 11:01:36 +08:00
Tm-C-mT
573c5489fa [docs][utest]:Add explanatory comments for the utest of thread allocation for idle harts
Add explanatory comments for the utest of smp_assigned_idle_cores.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-19 16:15:47 +08:00
Tm-C-mT
9308564a92 [utest]: Modify the utest logic for thread allocation of idle harts
Currently, this utest cannot determine whether threads are evenly distributed
across idle harts by observing the result of list_thread(). This is because
the presence of rt_thread_delay(5); causes all other threads to be in the
suspended state when thread information is printed. For example, if RT_CPUS_NR=4,
T0 executes list_thread() to print information, while T1~T3 are in hibernation
and thus it is impossible to observe which hart they are running on.

Solution:Here, the completion judgment condition has been modified. For example,
when RT_CPUS_NR=4, only RT_CPUS_NR-1 threads will be created (i.e., T0 to T2),
because running the utest occupies one hart. The execution is judged as completed
when finish_flag=0x0007, and the thread running the utest will call list_thread()
to print the information. Observe whether T0 to T2 are running on different
harts simultaneously.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-19 16:15:47 +08:00
Copilot
45f2246f73 [Kernel][Object] Remove object name assertions, use rt_strncpy for safe truncation #10943 2025-11-19 14:10:43 +08:00
Ze-Hou
75f1d8d0dc feature: utest: add standardized utest documentation to messagequeue_tc
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-19 10:49:17 +08:00
Ze-Hou
c745319c56 feature: utest: add standardized utest documentation to timer_tc
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-19 10:23:34 +08:00
R b b666
59e55f543c [utest]Fixed assertion failure in the smp_affinity_pri2_tc use case caused by improper priority configuration. (#10956) 2025-11-18 18:02:03 +08:00
Rbb666
e484f56b6c [utest]Fixed assertion failure in the smp_affinity_pri1_tc use case caused by improper priority configuration. 2025-11-18 17:22:43 +08:00
David Frisbee
6073c22164 [docs]utest]:Add standardized utest documentation to atomic_tc and mtsafe_kprint_tc #10945 2025-11-18 17:22:03 +08:00
Rbb666
0af3b3eec1 [utest]Fixed compilation warning issues in smp/smp_affinity_prix_tc. 2025-11-18 16:57:43 +08:00
CYFS
514bc130eb [copilot]:Improve the copilot guide 2025-11-18 11:34:06 +08:00
wdfk-prog
e1f609fe3a feat(ulog): Add a one-time warning when the log line buffer is insufficient 2025-11-18 09:55:37 +08:00
Ze-Hou
de784f7cf2 feature: utest: add standardized utest documentation to event_tc
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-18 09:47:46 +08:00
David Frisbee
4103870b74 [fix][utest] correct spelling of 'pref_test' to 'perf_test' (#10937)
* [fix][utest] correct spelling of ''pref_test' to 'perf_test'
2025-11-17 16:40:00 +08:00
Copilot
30e1e5e9dc Reorganize Group names in build system for clarity and IDE integration #10923 2025-11-16 11:40:53 +08:00
Chuan
ae2a5758bc bsp: k230: add spi driver
Requirement: The BSP for the k230 platform in the RT-Thread repository does not yet have an spi driver.

Solution: Provide spi driver for the k230 platform in the RT-Thread repository.

- Supports SPI0(OSPI) controller with 1/2/4/8 data lines.
- Supports SPI1(QSPI0) and SPI2(QSPI1) controllers with 1/2/4 data lines.
- Implements DMA-based transfers for OSPI, QSPI, and DSPI modes.
- Falls back to standard IRQ-driven transfers for legacy SPI mode (single line).
- Updates documentation in bsp/README.md

Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-16 11:37:32 +08:00
Chuan
ee20484759 docs(utest):Add standardized documentation for Drivers Core Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-16 10:28:46 +08:00
ibvqeibob
4e41e700f0 doxygen: add comments for lwp shared memory APIs
Add Doxygen-style comments for the lwp shared memory public APIs
in components/lwp/lwp_shm.c and the related control structure.
This change is documentation-only and does not modify any runtime
behavior or logic.

Signed-off-by: ibvqeibob <2601187225@qq.com>
2025-11-15 14:20:36 +08:00
CYFS
327006cb88 [docs][utest]:Add standardized utest documentation block for serialv2_tc 2025-11-15 14:18:44 +08:00
CYFS
92377190ba [docs][utest]:Add standardized utest documentation block for slab_tc 2025-11-14 23:32:08 +08:00
CYFS
b53293863d [docs][utest]:Add standardized utest documentation block for object_tc 2025-11-14 12:44:52 +08:00
CYFS
6a5489f947 [docs][utest]:Add standardized utest documentation block for mem_tc 2025-11-14 12:43:09 +08:00
CYFS
832fe803df [docs][utest]:Add standardized utest documentation block for memheap_tc 2025-11-14 12:43:09 +08:00
MuChenger
8286196d9f [bsp/xuantie][fix] 修正Bsp Kconfig配置 2025-11-13 18:44:24 +08:00
Ze-Hou
ec5e72c59a feature: utest: add standardized utest documentation to thread_tc
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-13 18:42:13 +08:00
Ze-Hou
538e5ff6d5 feature: utest: add standardized utest documentation to hooklist_tc
Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-13 16:23:15 +08:00
wdfk-prog
ddfe2cd61c feat[spi]: enable interrupt-safe operations using spinlocks 2025-11-13 15:41:41 +08:00
wdfk-prog
ec27e09df8 feat:[stm32][can]: enhance control logic and refactor sendmsg 2025-11-13 15:31:05 +08:00