hal_can.h should define CANRxFrame/CANTxFrame

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

hal_can.h should define CANRxFrame/CANTxFrame

Postby faisal » Thu Apr 04, 2019 5:41 pm

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: 13442
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 843 times
Been thanked: 732 times
Contact:

Re: hal_can.h should define CANRxFrame/CANTxFrame

Postby Giovanni » Thu Apr 04, 2019 6:12 pm

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

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 4 guests