mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 17:43:51 +01:00
Whole CAN code in RIOT is using 'struct can_frame' to represent a CAN frame. However incoming CAN FD support will bring 'struct canfd_frame' to represent CAN FD frames. Even if the 'struct canfd_frame' has additional flags and a bigger payload, it is aligned on 'struct can_frame' and thus they can be referenced by the same pointers in the code. As it is impossible to predict which one will be used in RIOT, just define a new type 'can_frame_t' which will map to the right struct according to the MCU CAN supported format. Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>