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. |
||
|---|---|---|
| .. | ||
| application.cpp | ||
| CO_driver.c | ||
| CO_driver_target.h | ||
| CO_Flash.c | ||
| CO_Flash.h | ||
| CO_PollingTimer.c | ||
| CO_PollingTimer.h | ||
| ecos_helper.cpp | ||
| ecos_helper.h | ||
| main.c | ||
| Makefile | ||
| readme | ||
CANopenNode driver for eCos CAN framework. The driver supports any hardware that is supported by the eCos CAN framework. See http://ecos.sourceware.org/ The driver was developed and tested with the Olimex LCP-E2294-1MB board: https://www.olimex.com/Products/ARM/NXP/LPC-E2294-1MB/ and with the Olimex LPC-L2294-1MB board: https://www.olimex.com/Products/ARM/NXP/LPC-L2294-1MB/ The driver also utilizes the eCos generic flash support to implement parameter storage and default parameter restore functionality via objects 0x1010 and 0x1011. Contributed by Uwe Kindler: http://sourceforge.net/p/canopennode/discussion/387151/thread/7603e3b5/