mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 17:18:28 +08:00
46c3f354b3
Corrected CAN FD messages sending in character driver mode. Assign CAN FD format flag in reception of CAN FD messages. Corrected some defines mismatches. The code has been tested in QEMU qemu-system-x86_64 -m 2G -enable-kvm -smp 1 \ -cpu host,+pcid,+x2apic,+tsc-deadline,+xsave,+rdrand \ -kernel nuttx/nuttx \ -nographic -serial mon:stdio \ -object can-bus,id=canbus0-bus \ -object can-host-socketcan,if=can0,canbus=canbus0-bus,id=canbus0-socketcan \ -device ctucan_pci,canbus0=canbus0-bus,canbus1=canbus0-bus The overall state of this third party CTU CAN FD driver in NuttX is far from ideal. It would worth to consult and follow more closely our Linux kernel driver and even better RTEMS CAN/CAN FD stack design https://canbus.pages.fel.cvut.cz/#cancan-fd-subsystem-and-drivers-for-rtems Signed-off-by: Pavel Pisa <pisa@fel.cvut.cz>