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. |
||
|---|---|---|
| .. | ||
| application.c | ||
| application.h | ||
| CANOpenTask.c | ||
| CANOpenTask.h | ||
| CO_driver.c | ||
| CO_driver.h | ||
| readme | ||
NXP LPC177x (Cortex M3) and FreeRTOS. Contributed by AmitH(sourceforge) (17.9.2014): http://sourceforge.net/p/canopennode/discussion/387151/thread/d1b43992