mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 13:19:01 +00:00
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> |
||
|---|---|---|
| .. | ||
| can.c | ||
| can_common.c | ||
| can_sender.c | ||
| CMakeLists.txt | ||
| ctucanfd.h | ||
| ctucanfd_pci.c | ||
| Kconfig | ||
| kvaser_pci.c | ||
| Make.defs | ||
| mcp2515.c | ||
| mcp2515.h | ||
| sja1000.c | ||
| sja1000.h | ||