hal_can.h should define CANRxFrame/CANTxFrame

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

hal_can.h should define CANRxFrame/CANTxFrame

Post by faisal »

hal_can.h should define the CANRxFrame/CANTxFrame structures. The structure definitions are currently entirely inside hal_can_lld.h . If there are any platform specific members needed (for example, FMI and TIME in STM32), those should be in macros defined in hal_can_lld.h, and included at the end of the CAN frame structures in hal_can.h .
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: hal_can.h should define CANRxFrame/CANTxFrame

Post by Giovanni »

I will eventually rework this after evaluating the changes required for CAN FD which uses different frames.

Giovanni
Post Reply