1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
Olivier Desenfans
02fd8ee9da Renaming CANdevicePtr to CANdriverState 2019-11-13 08:34:42 +01:00
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
Martin Wagner
1755df7814 memory barrier doesn't work with inline functions...
needs pointer to pointer then
2017-09-05 10:48:34 +02:00
Martin Wagner
6307931275 fix missing semicolon 2017-09-01 14:00:11 +02:00
Martin Wagner
2439d1abf3 Added memory barrier to all objects 2017-09-01 13:45:34 +02:00
Janez
e6db254c63 Added CO->CANmodule[x]->CANnormal to all drivers. example/main.c updated. 2016-01-12 13:48:16 +01:00
Janez
41b8d903b7 License changed to the GNU General Public License version 2 with the classpath exception. 2016-01-10 00:15:50 +01:00
Janez
a5224176d2 Some updates to CO_memcpySwap and in SDO master. 2015-12-11 13:47:06 +01:00
Janez
b8266e9e20 SocketCAN endian. 2015-12-09 23:53:52 +01:00
JanezXD
0e9fba0ee1 Socket configuration added to CO_driver 2015-09-07 12:06:07 +02:00
JanezXD
68e7ad0817 Improved socketCAN filter configuration. 2015-09-05 13:59:09 +02:00
JanezXD
bbc165c218 First run of socketCan. 2015-08-29 01:13:54 +02:00
Janez_dw
69293ab422 CANopen.c: Node ID and CAN bit rate added as argument to CO_init(). 2015-08-28 07:27:40 +02:00
Janez_dw
345b37b573 Some cleanup. 2015-08-27 18:57:34 +02:00
Janez_dw
ea47ca89fb Macros "Disabling interrupts" replaced with "Critical sections" in all drivers. 2015-08-27 14:36:07 +02:00
JanezXD
36881e5e6a Example files moved to own directory. 2015-08-01 23:20:44 +02:00
JanezXD
12f33a4a7b Example files moved to base directory. Added template for socketCAN drivers (based on BECK SC 243) 2015-07-30 19:58:06 +02:00