1
0
Fork 0
CANopenNode/stack/MCF5282
Olivier Desenfans e7d9652658 Use a void pointer for the CAN device address
Previously, the address of the CAN device (`CANbaseAddress`)
was specified as a signed or unsigned integer of variable size.
This made the ABI specific for each driver and is not generic
enough for some use cases.

Replaced all usages by using a void pointer instead.
Renamed `CANbaseAddress` to `CANdevicePtr`.
Refactored the code where it needed to be (some comparisons to -1).

Use a pointer to a user-defined variable/structure instead of
a 32-bit integer for CANbaseAddress. Renamed CANbaseAddress
to CANbaseStruct to reflect that change in behavior.

This is more modular and avoids casts.
2019-11-10 13:14:53 +01:00
..
CO_driver.c Use a void pointer for the CAN device address 2019-11-10 13:14:53 +01:00
CO_driver.h Use a void pointer for the CAN device address 2019-11-10 13:14:53 +01:00
readme Readme updated and SocketCAN Linux tasks added. 2015-11-29 21:45:01 +01:00

Freescale MCF5282 (ColdFire V2)

Contributed by Laurent Grosbois (mar 2012):
http://sourceforge.net/p/canopennode/code_complete/ci/master/tree/mcf5282_ongoingdev/