1
0
Fork 0
Commit graph

30 commits

Author SHA1 Message Date
Olivier Desenfans
ecaa660b9d Revert "Single project-wide header for driver functions"
This reverts commit 07c61316b3.

Will start from beginning. Try to keep git history.
2020-01-14 16:31:32 +01:00
Janez
9c2f0a1c64 License changed to Apache 2.0 - main part 2020-01-08 14:52:56 +01:00
Martin Wagner
f6fb0894f6
Merge pull request #128 from wilkinsw/sync-optional
change SYNC module to be optional
2019-12-20 07:34:46 +01:00
Wilkins White
bdfe25f7da update examples with CO_process_SYNC_RPDO changes 2019-12-10 16:33:21 -08:00
Olivier Desenfans
07c61316b3 Single project-wide header for driver functions
Created a single header file (`CO_driver.h`) to declare the functions
of the drivers API. This forces drivers to use a common API.

Previously, each driver declared these functions in its specific
`CO_driver.h` file. This causes two issues:
1. while these functions are used in target-independent code,
   the declarations could be target specific, leading to API/ABI
   compatibility issues.
2. the declarations were duplicated for each driver.

The `CO_driver.h` files for each driver were renamed to
`CO_driver_target.h`. This file is included from `CO_driver.h`.

Added a new header for types: `CO_types.h`. This file currently
holds the definition of `CO_ReturnError_t` that was previously
duplicated for all drivers. Added a few enum values to support
the `neuberger-socketCAN` code.
2019-11-13 13:28:21 +01:00
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
Janez
8aa9b452fc Added LPC1768 into readme. 2017-02-03 13:02:36 +01:00
Janez
5df11b9d74 SYNC timeout bugfix; synchronous PDOs are now processed after next sync. 2016-09-07 16:08:07 +02:00
Janez
2e0a086514 Issue #10: Devices PIC32MX530, 550 and 570 has only 16 receive filters. 2016-07-07 10:12:10 +02:00
Janez
57a900f7b7 Issue #10 fixed: PIC32MX530 has only 16 acceptance filters. (Not 32.) 2016-07-06 11:08:58 +02:00
Janez
499111c5b8 Some rearangement in trace. 2016-03-25 17:25:48 +01:00
Janez
1eacd6d675 Trace works on PIC32. 2016-03-24 23:59:52 +01:00
Janez
85fc85482e Added trace interface for monitoring variables. 2016-03-24 22:01:44 +01:00
Janez
392abbe4d3 PIC32 2016-02-15 11:07:48 +01:00
Janez
934e90e7ec main_PIC32.c bugfix. 2016-01-14 09:28:34 +01: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
40f329d0f1 Removed plib dependency for PIC32. 2016-01-08 17:56:30 +01:00
Janez
df0d0353f0 Minor updates from Jens Nielsen. 2015-12-29 13:47:23 +01:00
Janez
ac41b50a50 Run on PIC32. 2015-10-20 19:55:14 +02:00
Janez
702b25cf56 application.h/c and main_PIC32.c added from the old repository 2015-10-20 17:54:02 +02:00
Janez_dw
ea47ca89fb Macros "Disabling interrupts" replaced with "Critical sections" in all drivers. 2015-08-27 14:36:07 +02:00
Janez_DW
cada159e40 Test against null pointers in eeprom.c files. 2015-08-26 21:27:45 +02:00
Janez_DW
8427cbcc90 Added testing against null pointers in _init functions.
Updated CO_process_SYNC_RPDO and CO_process_TPDO in CANopen.c.
2015-08-26 15:41:21 +02:00
Janez_D
50d2855326 Added driver for Freescale MCF5282 from archives. Not tested. 2015-08-20 19:10:08 +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
Janez_D
ddbabdae42 Specifiers CO_bool_t, CO_true and CO_false replaced with bool_t, true and false. 2015-07-26 19:15:21 +02:00
Janez_D
b50cb5e8b3 Cleanup in comments (no code changed).
Add and update multiple readme.txt
Remove SVN IDs.
2015-07-25 17:36:46 +02:00
Janez_D
d270c2d09a Move and rename files. No file change. 2015-07-25 14:03:15 +02:00