Commit Graph

18042 Commits

Author SHA1 Message Date
CYFS 414ff7f371 [bsp][drivers][soft_i2c] unify the software I2C driver 2026-07-16 13:19:57 +08:00
angryproton 997de9433a [fix][dfs] elmfat磁盘操作设备指针判空 2026-07-15 16:42:15 +08:00
Leeto1970 aff47231e6 [HC32] Format files by newer clang-format. 2026-07-14 19:55:12 +08:00
Leeto1970 d513da02db [HC32] Add HC32F4A2/HC32F467 BSP support
- Add chip macro for driver
 - Modify 'IDLE_THREAD_STACK_SIZE' to 512
 - Modify 'HWTIMER' to 'CLOCK_TIMER'
 - Use 'clang-format' format driver and BSP code
 - Fix SPI clock division configuration
2026-07-14 19:55:12 +08:00
Onlyou_tzZ f8a65e4092
sb_glue_nation.c中添加N32H49X和N32H7XX系列MCU的USBHS支持 2026-07-14 18:08:59 +08:00
CYFS c96551a7dd [bsp][stm32]:update templates files 2026-07-14 14:45:24 +08:00
HonestQiao 2f992bdd4c
[bsp][imxrt1180-nxp-evk]add I2C adapter support 2026-07-14 11:59:09 +08:00
Cheng Mingming 6c5378a1b0 [finsh][cmd] Merge duplicate RT_USING_CPU_USAGE_TRACER blocks in list_thread
The RT_USING_CPU_USAGE_TRACER print block was duplicated identically in
both the ARCH_CPU_STACK_GROWS_UPWARD and the normal branch of
list_thread(). Both branches only differ in the stack usage line (which
has no trailing newline), so move the single shared block after the
#endif of the stack-growth conditional. No functional change.
2026-07-14 09:33:50 +08:00
CYFS d86e4d93ba [ci][format] Ignore BSP rtconfig.h files 2026-07-13 17:39:35 +08:00
与非熊 63b4a7fcc2 [chg][dfs]Clean up comments in dfs_elm_free_vnode
Removed unnecessary comments from dfs_elm_free_vnode function.
2026-07-13 10:54:07 +08:00
angryproton cf1c12ee06 [fix][dfs_elm] 修复关闭目录和释放vnode时的资源泄露 2026-07-13 10:54:07 +08:00
angryproton 5af8b0af64 [fix][dfs] 修复elmfat挂载失败时的内存泄漏 2026-07-13 09:01:43 +08:00
HonestQiao 66d3070c80
[bsp][imxrt1180-nxp-evk]add TIMER support (#11511)
* [bsp][imxrt1180-nxp-evk]add TIMER support

* [bsp][imxrt1180-nxp-evk]update TIMER support

* [bsp][imxrt1180-nxp-evk] move fsl_gpt.c inclusion to SDK package SConscript

* [bsp][imxrt1180-nxp-evk] restore main.c to original Hello_World version

* [bsp][imxrt1180-nxp-evk] remove libraries/drivers/drv_timer.h

* [bsp][imxrt1180-nxp-evk]update TIMER support
2026-07-12 20:58:13 +08:00
CYFS b7eb6fb0e4
[ci][format] Use clang-format for format check#11582 2026-07-10 11:34:58 +08:00
CYFS b245c1869e [docs]Update the contribution document 2026-07-09 18:02:01 +08:00
CYFS dd7da0fd79 bsp: support env shared package paths 2026-07-09 17:29:51 +08:00
CYFS f12485a60e bsp: fix ra8p1 titan board keil build 2026-07-09 16:32:06 +08:00
Michael Rogov Papernov c29b6db74c ci: report skipped membrowse targets as identical 2026-07-09 15:19:42 +08:00
CYFS 205c713b3c bsp: update renesas MDK5 projects
同步 Renesas BSP 的 MDK5 工程生成方式,移除对 RASC gpdsc/build hook 的依赖,并更新由 scons 生成的 Keil 工程。

已保留存在实际 via 文件的 BSP 配置,仅移除缺失 via 文件的引用。
2026-07-09 10:36:08 +08:00
Old-Ding ac6dc197a0 bsp: hpmicro: clear full ENET buffers
rt_hw_eth_init() clears ENET descriptor tables using element size times count, but the RX/TX data buffers used sizeof(size), which only covers the width of the size field.

Use the configured buffer count and size so the whole RX/TX buffer areas are initialized before handing them to the ENET descriptor configuration.

Make the Cppcheck intent explicit for the HPM placement macros and the LPI_CSR register read so the touched file passes static analysis.

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:03:58 +08:00
Old-Ding c7f21bddeb drivers: pci: Fix endpoint MSI setup
rt_pci_ep_set_msi() checked the set_msix callback before calling set_msi. That rejects endpoint controllers that implement MSI without MSI-X, and can call through a NULL set_msi pointer when only MSI-X is provided.

The same helper converts a requested MSI vector count into the log2 field passed to the controller. Stop after the first value large enough for the request so smaller requests are not widened by later loop iterations.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:03:38 +08:00
Old-Ding 3eac0a8a17 drivers: pic: Fix PIRQ lookup upper bound
rt_pic_linear_irq() stores irq_nr as a count and assigns pic->pirqs to the first entry in that range. rt_pic_find_pirq() therefore must treat the upper bound as exclusive.

The inclusive check could return pic->pirqs[irq_nr] when irq equals irq_start + irq_nr, which is one entry past the allocated range.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:03:16 +08:00
Old-Ding 9e2ab35e17 bsp: rockchip: Fix CAN-FD bit timing copy size
RT_CAN_CMD_SET_BITTIMING receives an array of struct rt_can_bit_timing entries. The Rockchip CAN-FD driver used sizeof(&timing->items[n]) when copying those entries, so only pointer-sized bytes were copied into the device configuration.

Use the element size so both arbitration and data phase timing structures are copied completely.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:02:42 +08:00
Old-Ding d2d89271ea drivers: fix fan53555 slew rate bounds check
Valid slew_rates indices are 0 through RT_ARRAY_SIZE(slew_rates) - 1.
The current check rejects only values greater than the table size,
allowing slew_idx == RT_ARRAY_SIZE(slew_rates) to index one element
past the table.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:02:15 +08:00
Old-Ding 1648becff8 bsp: ft2004: Clear full QSPI command pack
Reset the whole FQSpi_CmdPack object before reusing it in the QSPI debug commands. Using sizeof(&cmd_pack) only clears the pointer-sized prefix and can leave stale fields in the command pack.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:40:24 +08:00
Old-Ding 965fc8e992 bsp: nxp: Bound VGLite buffer reader access
Check the buffer limits before reading ptr[i] in bufferred_fgets(). Also guard CR/LF skipping against the available input bytes so reading a full buffer does not inspect one byte past the source.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:38:32 +08:00
Old-Ding 221502ade0 components: finsh: check token bounds before access
Move the command length checks before reading command buffers while parsing module, script, and LWP command names. This keeps commands without separators from reading one byte past the provided length.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:37:21 +08:00
Old-Ding b9550aad85 drivers: dac: Fix disable callback check
_dac_control() checked the enabled callback before invoking disabled for RT_DAC_CMD_DISABLE. That can reject DAC drivers that provide a disable callback without enable, and can call through a NULL disabled callback when only enable is implemented.

Check the disabled callback in the disable command path so the guard matches the operation being dispatched.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:24:42 +08:00
Old-Ding d8a7e3eeb0 bsp: renesas: Fix LCD framebuffer bounds
The Renesas LCD helper treats LCD_WIDTH and LCD_HEIGHT as pixel counts. The framebuffer clear loop and lcd_draw_pixel() accepted those count values as valid indexes, which can write one pixel past the framebuffer.

Use strict bounds for the 0-based framebuffer indexes and adjust the 180-degree rotation mapping to target the last valid row and column.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:21:51 +08:00
Old-Ding 50c6853d38 rt-link: reject frame offset at frame limit
The receive sequence filter maps incoming data-frame sequence numbers to zero-based frame offsets. RT_LINK_FRAMES_MAX is the maximum number of split frames, so valid offsets are 0 through RT_LINK_FRAMES_MAX - 1.

Reject offset == RT_LINK_FRAMES_MAX before frame handling instead of letting it reach long-frame assembly.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-07 19:55:21 +08:00
CYFS ee43eeb685
[ci]:add armclang BSP build coverage (#11577)
* ci: add armclang BSP build coverage

* components/libc: avoid armclang errno include recursion
2026-07-07 11:52:14 +08:00
wdfk-prog 937be2c97d
feat[ADC]: 新增 ADC V2 驱动支持 (#11440)
* feat[ADC V2]: add ADC V2 driver support

add ADC V2 core APIs, session state management, and sequence read support
add STM32 ADC V2 HAL backend with internal-channel and VREF handling
add per-series STM32 ADC V2 default configuration headers
wire ADC V2 Kconfig and SConscript integration for components and STM32 BSP drivers
keep ADC V2 mutually exclusive with the legacy ADC driver path

* feat[ADC V2]: add ADC V2 MSH special channel read support

add generic ADC V2 MSH commands for probing, configuring, raw reads, voltage reads, and sequence reads
add STM32 ADC V2 backend special commands for VREFINT, temperature sensor, and VBAT reads
add STM32 helper APIs for special logical channels, sampling time, resolution, and temperature calculation
wire ADC V2 MSH sources through Kconfig and SConscript

* feat[ADC V2]: add ADC V2 stream DMA support

add ADC V2 stream APIs with latest-frame and FIFO buffering policies
wire STM32 ADC V2 to circular DMA stream mode with per-instance Kconfig options
extend STM32 ADC config headers and DMA helpers for stream DMA configuration
add FinSH stream commands for start, read, cancel, and stop operations
handle Cortex-M7 cache-safe DMA buffers for STM32 stream sampling

* feat[ADC V2]: add timer trigger support for ADC V2 streams

add ADC V2 trigger configuration, validation, and lifecycle coordination
add timer update trigger support through clock timer TRGO controls
map STM32 ADC V2 timer update triggers to HAL external trigger selector fields
add Kconfig, SConscript, and MSH entries for ADC trigger setup and inspection

* feat[ADCV2]: add timer and comparator trigger selectors

add ADC V2 timer compare and analog comparator trigger configuration support
extend clock timer trigger config with compare event and channel fields
wire STM32 ADC external trigger selector mappings for TIM update, TIM compare, and COMP output
add FinSH trigger_set commands and Kconfig switches for timer and comparator trigger backends

* fix[ADC V2]: resolve ADC V1 compatibility Kconfig loop

* ci[ADC V2][stm32]: add ADC v2 peripheral config for stm32f407-rt-spark BSP
2026-07-07 08:59:22 +08:00
Old-Ding 8a0fe09c65 components/usb: configure CDC VCOM strings 2026-07-06 13:17:44 +08:00
Old-Ding 31e634376f bsp: renesas: Fix RA pin name digit checks
Validate the second and third digits of RA PXXX pin names against their own characters. The previous checks used name[1] for those upper bounds, so non-digit suffixes could pass validation.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 13:03:28 +08:00
Old-Ding 5882e6a127 docs: clarify STM32 BSP template usage 2026-07-05 16:01:03 +08:00
rcitach 313e159031 Fix the CAN driver bug 2026-07-05 16:00:12 +08:00
Old-Ding 2b75ff3463 [bsp][gd32] add PWM ci attach config 2026-07-05 15:52:24 +08:00
Old-Ding 8f54be877d [bsp][gd32] fix pwm enable channel check 2026-07-05 15:52:24 +08:00
Old-Ding cfd6f0ec9e lwip: fix trailing whitespace in TLS config 2026-07-05 15:48:09 +08:00
Old-Ding 2c797c358c lwip: require TLS certificate verification when CA is configured 2026-07-05 15:48:09 +08:00
CYFS e97530fea8 [components][spi] add utest cases 2026-07-04 16:45:24 +08:00
Old-Ding ece7b4fe9f components: fix serial v2 rx indicate setup 2026-07-03 09:32:48 +08:00
Old-Ding 11d45f940a ci: add n32g452xx mini system BSP build mapping 2026-07-03 09:22:58 +08:00
Old-Ding 224a841c9e [bsp][n32] fix USART2 remap macro 2026-07-03 09:22:58 +08:00
rcitach d875db8938 Refresh menuconfig to keep it as minimal as possible 2026-07-01 12:25:19 +08:00
rcitach a57d9ddb47 Improve the CAN driver 2026-07-01 12:25:19 +08:00
rcitach e1b3a192f6 Add RTC functionality 2026-07-01 12:25:19 +08:00
rcitach a9917f1572 Add NS800RT7 IIC Functionality 2026-07-01 12:25:19 +08:00
Old-Ding 9b9e6fb7b0 fix dfs statfs fullpath leak 2026-07-01 12:23:26 +08:00
Old-Ding 0c25ffa18e fix pthread cond wait scheduling 2026-07-01 11:49:55 +08:00