nuttx/drivers/can
xucheng5 724ad008ab ctucanfd: increase rwcnt bitfield width and fix structure alignment
The rwcnt (read word count) field in ctucanfd_frame_fmt_s was previously
limited to 4 bits, allowing a maximum value of 15. This is insufficient
to correctly represent the frame size (excluding the FRAME_FORMAT word)
for larger CAN FD frames as required by the CTU CAN FD hardware.

Increase the rwcnt bitfield width to support a larger range and adjust
the structure layout so that ctucanfd_frame_fmt_s has a size that is a
multiple of 4 bytes, as required by the hardware interface.

This change improves correctness and robustness when handling larger
CAN FD frames without affecting existing users.

Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2026-01-17 12:43:48 +01:00
..
can.c can: strict TX priority ordering to avoid priority inversion 2026-01-06 16:03:14 +08:00
can_common.c drivers/can: move CAN utils to CAN common files 2025-05-14 10:30:25 -03:00
can_sender.c drivers/can: repair compiler error 2026-01-16 01:37:50 +08:00
CMakeLists.txt drivers/can: move CAN utils to CAN common files 2025-05-14 10:30:25 -03:00
ctucanfd.h ctucanfd: increase rwcnt bitfield width and fix structure alignment 2026-01-17 12:43:48 +01:00
ctucanfd_pci.c can: ctucanfd: initialize CAN message header on receive 2026-01-06 23:20:18 +08:00
Kconfig can: strict TX priority ordering to avoid priority inversion 2026-01-06 16:03:14 +08:00
kvaser_pci.c drivers/can/kvaser_pci.c: refactor to use netdev_upperhalf 2025-10-08 12:00:06 +02:00
Make.defs drivers/can: move CAN utils to CAN common files 2025-05-14 10:30:25 -03:00
mcp2515.c sched/sleep: replace all Signal-based sleep implement to Scheduled sleep 2025-10-17 14:05:02 +08:00
mcp2515.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
sja1000.c sja1000: replace enter_critical_section with spinlock 2026-01-08 09:15:04 -03:00
sja1000.h drivers/can: add Kvaser PCI card driver (qemu only) 2024-12-13 11:19:22 +08:00