nuttx/arch/arm/src/xmc4
aineoae86-sys c3494e47e3 arch/arm: xmc4: fix VADC index bounds checks
The XMC_VADC_* constants describe counts, so the valid register, group, and channel indexes are below those values. The current checks allow the count itself through and then use it to index VADC group, channel, and result registers.

Reject those boundary values before the register array access.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
2026-07-06 07:47:17 +02:00
..
hardware
chip.h
CMakeLists.txt
Kconfig
Make.defs
xmc4_allocateheap.c
xmc4_ccu4.c
xmc4_ccu4.h
xmc4_clockconfig.c
xmc4_clockconfig.h
xmc4_clockutils.c
xmc4_clrpend.c
xmc4_config.h
xmc4_dma.h
xmc4_ecat.c
xmc4_ecat.h
xmc4_flash.c
xmc4_flash.h
xmc4_gpio.c
xmc4_gpio.h
xmc4_i2c.c
xmc4_i2c.h
xmc4_idle.c
xmc4_irq.c
xmc4_lowputc.c
xmc4_lowputc.h
xmc4_mpuinit.c
xmc4_mpuinit.h
xmc4_pwm.c
xmc4_pwm.h
xmc4_serial.c
xmc4_spi.c
xmc4_spi.h
xmc4_start.c
xmc4_start.h
xmc4_tickless.c !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
xmc4_timerisr.c
xmc4_userspace.c
xmc4_userspace.h
xmc4_usic.c
xmc4_usic.h
xmc4_vadc.c arch/arm: xmc4: fix VADC index bounds checks 2026-07-06 07:47:17 +02:00
xmc4_vadc.h