From 9582886c2cef3bf46f0e6db09e6246c84da60973 Mon Sep 17 00:00:00 2001 From: Hans-Erik Floryd Date: Fri, 16 May 2025 16:43:03 +0200 Subject: [PATCH] Refactor repository layout (step 2 of 2) Rename files ethercat to ec_ Change-Id: If79f133fa37147bf509a3a75b0f4e14de860fea3 --- CMakeLists.txt | 46 +++++++++---------- include/soem/{ethercatbase.h => ec_base.h} | 6 +-- include/soem/{ethercatcoe.h => ec_coe.h} | 6 +-- .../soem/{ethercatconfig.h => ec_config.h} | 6 +-- include/soem/{ethercatdc.h => ec_dc.h} | 2 +- include/soem/{ethercateoe.h => ec_eoe.h} | 8 ++-- include/soem/{ethercatfoe.h => ec_foe.h} | 6 +-- include/soem/{ethercatmain.h => ec_main.h} | 6 +-- include/soem/{ethercatprint.h => ec_print.h} | 8 ++-- include/soem/{ethercatsoe.h => ec_soe.h} | 6 +-- include/soem/{ethercattype.h => ec_type.h} | 0 include/soem/ethercat.h | 27 ----------- include/soem/soem.h | 26 +++++++++++ oshw/erika/oshw.h | 3 +- oshw/intime/nicdrv.c | 3 +- oshw/intime/oshw.h | 3 +- oshw/linux/oshw.h | 3 +- oshw/macosx/nicdrv.c | 3 +- oshw/macosx/oshw.h | 3 +- oshw/rtems/oshw.h | 3 +- oshw/rtk/oshw.h | 3 +- oshw/vxworks/oshw.h | 3 +- oshw/win32/nicdrv.c | 2 +- oshw/win32/oshw.h | 3 +- samples/eepromtool/eepromtool.c | 2 +- samples/simple_ng/simple_ng.c | 2 +- samples/simple_test/simple_test.c | 2 +- samples/slaveinfo/slaveinfo.c | 2 +- src/{ethercatbase.c => ec_base.c} | 4 +- src/{ethercatcoe.c => ec_coe.c} | 5 +- src/{ethercatconfig.c => ec_config.c} | 7 +-- src/{ethercatdc.c => ec_dc.c} | 5 +- src/{ethercateoe.c => ec_eoe.c} | 2 +- src/{ethercatfoe.c => ec_foe.c} | 5 +- src/{ethercatmain.c => ec_main.c} | 2 +- src/{ethercatprint.c => ec_print.c} | 3 +- src/{ethercatsoe.c => ec_soe.c} | 5 +- 37 files changed, 100 insertions(+), 131 deletions(-) rename include/soem/{ethercatbase.h => ec_base.h} (96%) rename include/soem/{ethercatcoe.h => ec_coe.h} (97%) rename include/soem/{ethercatconfig.h => ec_config.h} (90%) rename include/soem/{ethercatdc.h => ec_dc.h} (95%) rename include/soem/{ethercateoe.h => ec_eoe.h} (98%) rename include/soem/{ethercatfoe.h => ec_foe.h} (88%) rename include/soem/{ethercatmain.h => ec_main.h} (99%) rename include/soem/{ethercatprint.h => ec_print.h} (79%) rename include/soem/{ethercatsoe.h => ec_soe.h} (97%) rename include/soem/{ethercattype.h => ec_type.h} (100%) delete mode 100644 include/soem/ethercat.h create mode 100644 include/soem/soem.h rename src/{ethercatbase.c => ec_base.c} (99%) rename src/{ethercatcoe.c => ec_coe.c} (99%) rename src/{ethercatconfig.c => ec_config.c} (99%) rename src/{ethercatdc.c => ec_dc.c} (99%) rename src/{ethercateoe.c => ec_eoe.c} (99%) rename src/{ethercatfoe.c => ec_foe.c} (99%) rename src/{ethercatmain.c => ec_main.c} (99%) rename src/{ethercatprint.c => ec_print.c} (99%) rename src/{ethercatsoe.c => ec_soe.c} (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6da82d..67f7071 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,24 +34,24 @@ set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1) set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1) add_library(soem - src/ethercatbase.c - src/ethercatcoe.c - src/ethercatconfig.c - src/ethercatdc.c - src/ethercateoe.c - src/ethercatfoe.c - src/ethercatmain.c - src/ethercatprint.c - src/ethercatsoe.c + src/ec_base.c + src/ec_coe.c + src/ec_config.c + src/ec_dc.c + src/ec_eoe.c + src/ec_foe.c + src/ec_main.c + src/ec_print.c + src/ec_soe.c ) target_include_directories(soem PUBLIC - $ - $ + $ + $ ) target_include_directories(soem PUBLIC $ - $ + $ ) install( @@ -66,17 +66,17 @@ install( ) install(FILES - include/soem/ethercatbase.h - include/soem/ethercatcoe.h - include/soem/ethercatconfig.h - include/soem/ethercatdc.h - include/soem/ethercateoe.h - include/soem/ethercatfoe.h - include/soem/ethercat.h - include/soem/ethercatmain.h - include/soem/ethercatprint.h - include/soem/ethercatsoe.h - include/soem/ethercattype.h + include/soem/ec_base.h + include/soem/ec_coe.h + include/soem/ec_config.h + include/soem/ec_dc.h + include/soem/ec_eoe.h + include/soem/ec_foe.h + include/soem/ec_main.h + include/soem/ec_print.h + include/soem/ec_soe.h + include/soem/ec_type.h + include/soem/soem.h osal/osal.h DESTINATION include/soem ) diff --git a/include/soem/ethercatbase.h b/include/soem/ec_base.h similarity index 96% rename from include/soem/ethercatbase.h rename to include/soem/ec_base.h index 959f70a..835b48c 100644 --- a/include/soem/ethercatbase.h +++ b/include/soem/ec_base.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatbase.c + * Headerfile for ec_base.c */ -#ifndef _ethercatbase_ -#define _ethercatbase_ +#ifndef _ec_base_ +#define _ec_base_ #ifdef __cplusplus extern "C" diff --git a/include/soem/ethercatcoe.h b/include/soem/ec_coe.h similarity index 97% rename from include/soem/ethercatcoe.h rename to include/soem/ec_coe.h index 314c635..1bef0a8 100644 --- a/include/soem/ethercatcoe.h +++ b/include/soem/ec_coe.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatcoe.c + * Headerfile for ec_coe.c */ -#ifndef _ethercatcoe_ -#define _ethercatcoe_ +#ifndef _ec_coe_ +#define _ec_coe_ #ifdef __cplusplus extern "C" diff --git a/include/soem/ethercatconfig.h b/include/soem/ec_config.h similarity index 90% rename from include/soem/ethercatconfig.h rename to include/soem/ec_config.h index ff0ebf9..354d1c6 100644 --- a/include/soem/ethercatconfig.h +++ b/include/soem/ec_config.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatconfig.c + * Headerfile for ec_config.c */ -#ifndef _ethercatconfig_ -#define _ethercatconfig_ +#ifndef _ec_config_ +#define _ec_config_ #ifdef __cplusplus extern "C" diff --git a/include/soem/ethercatdc.h b/include/soem/ec_dc.h similarity index 95% rename from include/soem/ethercatdc.h rename to include/soem/ec_dc.h index 5a5dbaa..5df148f 100644 --- a/include/soem/ethercatdc.h +++ b/include/soem/ec_dc.h @@ -6,7 +6,7 @@ /** \file * \brief - * Headerfile for ethercatdc.c + * Headerfile for ec_dc.c */ #ifndef _EC_ECATDC_H diff --git a/include/soem/ethercateoe.h b/include/soem/ec_eoe.h similarity index 98% rename from include/soem/ethercateoe.h rename to include/soem/ec_eoe.h index 6e39fc9..c10d707 100644 --- a/include/soem/ethercateoe.h +++ b/include/soem/ec_eoe.h @@ -6,18 +6,18 @@ /** \file * \brief - * Headerfile for ethercatfoe.c + * Headerfile for ec_foe.c */ -#ifndef _ethercateoe_ -#define _ethercateoe_ +#ifndef _ec_eoe_ +#define _ec_eoe_ #ifdef __cplusplus extern "C" { #endif -#include "ethercat.h" +#include "soem/soem.h" /* use maximum size for EOE mailbox data - mbxheader and 2x frameinfo */ #define EC_MAXEOEDATA (EC_MAXMBX - (sizeof(ec_mbxheadert) +\ diff --git a/include/soem/ethercatfoe.h b/include/soem/ec_foe.h similarity index 88% rename from include/soem/ethercatfoe.h rename to include/soem/ec_foe.h index 66166b2..e2170d3 100644 --- a/include/soem/ethercatfoe.h +++ b/include/soem/ec_foe.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatfoe.c + * Headerfile for ec_foe.c */ -#ifndef _ethercatfoe_ -#define _ethercatfoe_ +#ifndef _ec_foe_ +#define _ec_foe_ #ifdef __cplusplus extern "C" diff --git a/include/soem/ethercatmain.h b/include/soem/ec_main.h similarity index 99% rename from include/soem/ethercatmain.h rename to include/soem/ec_main.h index 25436da..b5f6c31 100644 --- a/include/soem/ethercatmain.h +++ b/include/soem/ec_main.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatmain.c + * Headerfile for ec_main.c */ -#ifndef _ethercatmain_ -#define _ethercatmain_ +#ifndef _ec_main_ +#define _ec_main_ #ifdef __cplusplus diff --git a/include/soem/ethercatprint.h b/include/soem/ec_print.h similarity index 79% rename from include/soem/ethercatprint.h rename to include/soem/ec_print.h index 315a829..6690523 100644 --- a/include/soem/ethercatprint.h +++ b/include/soem/ec_print.h @@ -6,18 +6,18 @@ /** \file * \brief - * Headerfile for ethercatprint.c + * Headerfile for ec_print.c */ -#ifndef _ethercatprint_ -#define _ethercatprint_ +#ifndef _ec_print_ +#define _ec_print_ #ifdef __cplusplus extern "C" { #endif -char* ec_sdoerror2string( uint32 sdoerrorcode); +const char* ec_sdoerror2string( uint32 sdoerrorcode); char* ec_ALstatuscode2string( uint16 ALstatuscode); char* ec_soeerror2string( uint16 errorcode); char* ec_mbxerror2string( uint16 errorcode); diff --git a/include/soem/ethercatsoe.h b/include/soem/ec_soe.h similarity index 97% rename from include/soem/ethercatsoe.h rename to include/soem/ec_soe.h index 910b904..4a99bcc 100644 --- a/include/soem/ethercatsoe.h +++ b/include/soem/ec_soe.h @@ -6,11 +6,11 @@ /** \file * \brief - * Headerfile for ethercatsoe.c + * Headerfile for ec_soe.c */ -#ifndef _ethercatsoe_ -#define _ethercatsoe_ +#ifndef _ec_soe_ +#define _ec_soe_ #ifdef __cplusplus extern "C" diff --git a/include/soem/ethercattype.h b/include/soem/ec_type.h similarity index 100% rename from include/soem/ethercattype.h rename to include/soem/ec_type.h diff --git a/include/soem/ethercat.h b/include/soem/ethercat.h deleted file mode 100644 index 694d0de..0000000 --- a/include/soem/ethercat.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This software is dual-licensed under GPLv3 and a commercial - * license. See the file LICENSE.md distributed with this software for - * full license information. - */ - -/** \file - * \brief - * Headerfile for all ethercat headers - */ - -#ifndef _EC_ETHERCAT_H -#define _EC_ETHERCAT_H - -#include "ethercattype.h" -#include "nicdrv.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatdc.h" -#include "ethercatcoe.h" -#include "ethercatfoe.h" -#include "ethercatsoe.h" -#include "ethercateoe.h" -#include "ethercatconfig.h" -#include "ethercatprint.h" - -#endif /* _EC_ETHERCAT_H */ diff --git a/include/soem/soem.h b/include/soem/soem.h new file mode 100644 index 0000000..b2c8168 --- /dev/null +++ b/include/soem/soem.h @@ -0,0 +1,26 @@ +/* + * Licensed under the GNU General Public License version 2 with exceptions. See + * LICENSE file in the project root for full license information + */ + +/** \file + * \brief + * SOEM main include file + */ + +#ifndef _SOEM_H +#define _SOEM_H + +#include "soem/ec_type.h" +#include "nicdrv.h" +#include "soem/ec_base.h" +#include "soem/ec_main.h" +#include "soem/ec_dc.h" +#include "soem/ec_coe.h" +#include "soem/ec_foe.h" +#include "soem/ec_soe.h" +#include "soem/ec_eoe.h" +#include "soem/ec_config.h" +#include "soem/ec_print.h" + +#endif /* _SOEM_H */ diff --git a/oshw/erika/oshw.h b/oshw/erika/oshw.h index 07143a4..a1ed5d5 100644 --- a/oshw/erika/oshw.h +++ b/oshw/erika/oshw.h @@ -16,9 +16,8 @@ extern "C" { #endif -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons(uint16 hostshort); uint16 oshw_ntohs(uint16 networkshort); diff --git a/oshw/intime/nicdrv.c b/oshw/intime/nicdrv.c index fe4804c..a2e5a9d 100644 --- a/oshw/intime/nicdrv.c +++ b/oshw/intime/nicdrv.c @@ -38,9 +38,8 @@ #include #include "hpeif2.h" -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "oshw.h" /** Redundancy modes */ enum diff --git a/oshw/intime/oshw.h b/oshw/intime/oshw.h index 24926c9..b1548a7 100644 --- a/oshw/intime/oshw.h +++ b/oshw/intime/oshw.h @@ -12,9 +12,8 @@ #ifndef _oshw_ #define _oshw_ -#include "ethercattype.h" +#include "soem/soem.h" #include "ethercatmain.h" -#include "nicdrv.h" #ifdef __cplusplus extern "C" { diff --git a/oshw/linux/oshw.h b/oshw/linux/oshw.h index 1e2bd55..e998004 100644 --- a/oshw/linux/oshw.h +++ b/oshw/linux/oshw.h @@ -16,9 +16,8 @@ extern "C" { #endif -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons(uint16 hostshort); uint16 oshw_ntohs(uint16 networkshort); diff --git a/oshw/macosx/nicdrv.c b/oshw/macosx/nicdrv.c index 8a5b8cc..0219ea9 100644 --- a/oshw/macosx/nicdrv.c +++ b/oshw/macosx/nicdrv.c @@ -38,9 +38,8 @@ #include #include -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "osal.h" /** Redundancy modes */ enum diff --git a/oshw/macosx/oshw.h b/oshw/macosx/oshw.h index 1e2bd55..e998004 100644 --- a/oshw/macosx/oshw.h +++ b/oshw/macosx/oshw.h @@ -16,9 +16,8 @@ extern "C" { #endif -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons(uint16 hostshort); uint16 oshw_ntohs(uint16 networkshort); diff --git a/oshw/rtems/oshw.h b/oshw/rtems/oshw.h index 1e2bd55..e998004 100644 --- a/oshw/rtems/oshw.h +++ b/oshw/rtems/oshw.h @@ -16,9 +16,8 @@ extern "C" { #endif -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons(uint16 hostshort); uint16 oshw_ntohs(uint16 networkshort); diff --git a/oshw/rtk/oshw.h b/oshw/rtk/oshw.h index 8702cc2..ebf301f 100644 --- a/oshw/rtk/oshw.h +++ b/oshw/rtk/oshw.h @@ -18,9 +18,8 @@ extern "C" #endif #include -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" int oshw_mac_init (const uint8_t * mac_address); int oshw_mac_send (const void *payload, size_t tot_len); diff --git a/oshw/vxworks/oshw.h b/oshw/vxworks/oshw.h index aca3045..3640906 100644 --- a/oshw/vxworks/oshw.h +++ b/oshw/vxworks/oshw.h @@ -12,9 +12,8 @@ #ifndef _oshw_ #define _oshw_ -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons(uint16 hostshort); uint16 oshw_ntohs(uint16 networkshort); diff --git a/oshw/win32/nicdrv.c b/oshw/win32/nicdrv.c index 33603a3..3e87f01 100644 --- a/oshw/win32/nicdrv.c +++ b/oshw/win32/nicdrv.c @@ -39,7 +39,7 @@ #include #include -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" #include "osal_win32.h" diff --git a/oshw/win32/oshw.h b/oshw/win32/oshw.h index 74666d3..d178846 100644 --- a/oshw/win32/oshw.h +++ b/oshw/win32/oshw.h @@ -17,9 +17,8 @@ extern "C" { #endif -#include "ethercattype.h" +#include "soem/soem.h" #include "nicdrv.h" -#include "ethercatmain.h" uint16 oshw_htons (uint16 hostshort); uint16 oshw_ntohs (uint16 networkshort); diff --git a/samples/eepromtool/eepromtool.c b/samples/eepromtool/eepromtool.c index c283783..090c8c5 100644 --- a/samples/eepromtool/eepromtool.c +++ b/samples/eepromtool/eepromtool.c @@ -18,7 +18,7 @@ #include #include -#include "ethercat.h" +#include "soem/soem.h" #define MAXBUF 524288 #define STDBUF 2048 diff --git a/samples/simple_ng/simple_ng.c b/samples/simple_ng/simple_ng.c index 82eb1ba..f4e40e9 100644 --- a/samples/simple_ng/simple_ng.c +++ b/samples/simple_ng/simple_ng.c @@ -7,7 +7,7 @@ * This is a minimal test. */ -#include "ethercat.h" +#include "soem/soem.h" #include #include #include diff --git a/samples/simple_test/simple_test.c b/samples/simple_test/simple_test.c index 1c6f85b..08b00cd 100644 --- a/samples/simple_test/simple_test.c +++ b/samples/simple_test/simple_test.c @@ -13,7 +13,7 @@ #include #include -#include "ethercat.h" +#include "soem/soem.h" #define EC_TIMEOUTMON 500 diff --git a/samples/slaveinfo/slaveinfo.c b/samples/slaveinfo/slaveinfo.c index c77cd0a..428ee5c 100644 --- a/samples/slaveinfo/slaveinfo.c +++ b/samples/slaveinfo/slaveinfo.c @@ -15,7 +15,7 @@ #include #include -#include "ethercat.h" +#include "soem/soem.h" static char IOmap[4096]; static ec_ODlistt ODlist; diff --git a/src/ethercatbase.c b/src/ec_base.c similarity index 99% rename from src/ethercatbase.c rename to src/ec_base.c index b6a7065..16bd086 100644 --- a/src/ethercatbase.c +++ b/src/ec_base.c @@ -14,12 +14,10 @@ * wait for the frame to be returned to the master or timeout. If this is * not acceptable build your own datagrams and use the functions from nicdrv.c. */ - +#include "soem/soem.h" #include #include "oshw.h" #include "osal.h" -#include "ethercattype.h" -#include "ethercatbase.h" /** Write data to EtherCAT datagram. * diff --git a/src/ethercatcoe.c b/src/ec_coe.c similarity index 99% rename from src/ethercatcoe.c rename to src/ec_coe.c index b4b50b0..be46d17 100644 --- a/src/ethercatcoe.c +++ b/src/ec_coe.c @@ -11,13 +11,10 @@ * SDO read / write and SDO service functions */ +#include "soem/soem.h" #include #include "osal.h" #include "oshw.h" -#include "ethercattype.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatcoe.h" /** SDO structure, not to be confused with EcSDOserviceT */ PACKED_BEGIN diff --git a/src/ethercatconfig.c b/src/ec_config.c similarity index 99% rename from src/ethercatconfig.c rename to src/ec_config.c index a609793..b091e2b 100644 --- a/src/ethercatconfig.c +++ b/src/ec_config.c @@ -12,16 +12,11 @@ * the slaves can be auto configured with this module. */ +#include "soem/soem.h" #include #include #include "osal.h" #include "oshw.h" -#include "ethercattype.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatcoe.h" -#include "ethercatsoe.h" -#include "ethercatconfig.h" typedef struct diff --git a/src/ethercatdc.c b/src/ec_dc.c similarity index 99% rename from src/ethercatdc.c rename to src/ec_dc.c index 761fae9..942c4bd 100644 --- a/src/ethercatdc.c +++ b/src/ec_dc.c @@ -9,12 +9,9 @@ * Distributed Clock EtherCAT functions. * */ +#include "soem/soem.h" #include "oshw.h" #include "osal.h" -#include "ethercattype.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatdc.h" #define PORTM0 0x01 #define PORTM1 0x02 diff --git a/src/ethercateoe.c b/src/ec_eoe.c similarity index 99% rename from src/ethercateoe.c rename to src/ec_eoe.c index 5610b26..df96d37 100644 --- a/src/ethercateoe.c +++ b/src/ec_eoe.c @@ -14,10 +14,10 @@ * Read incoming EoE fragment to Ethernet Frame */ +#include "soem/soem.h" #include #include "osal.h" #include "oshw.h" -#include "ethercat.h" /** EoE utility function to convert uint32 to eoe ip bytes. * @param[in] ip = ip in uint32 diff --git a/src/ethercatfoe.c b/src/ec_foe.c similarity index 99% rename from src/ethercatfoe.c rename to src/ec_foe.c index 6eb1208..a9c61e3 100644 --- a/src/ethercatfoe.c +++ b/src/ec_foe.c @@ -11,13 +11,10 @@ * SDO read / write and SDO service functions */ +#include "soem/soem.h" #include #include "osal.h" #include "oshw.h" -#include "ethercattype.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatfoe.h" /* use maximum size for FOE mailbox data - header and metadata */ #define EC_MAXFOEDATA \ diff --git a/src/ethercatmain.c b/src/ec_main.c similarity index 99% rename from src/ethercatmain.c rename to src/ec_main.c index 0b660e6..9927295 100644 --- a/src/ethercatmain.c +++ b/src/ec_main.c @@ -16,10 +16,10 @@ * Needed for most user interaction with slaves. */ +#include "soem/soem.h" #include #include "osal.h" #include "oshw.h" -#include "ethercat.h" /** delay in us for eeprom ready loop */ diff --git a/src/ethercatprint.c b/src/ec_print.c similarity index 99% rename from src/ethercatprint.c rename to src/ec_print.c index fe17a0a..14a6288 100644 --- a/src/ethercatprint.c +++ b/src/ec_print.c @@ -13,10 +13,9 @@ * For the defined error codes see the EtherCAT protocol documentation. */ +#include "soem/soem.h" #include #include "oshw.h" -#include "ethercattype.h" -#include "ethercatmain.h" #define EC_MAXERRORNAME 127 diff --git a/src/ethercatsoe.c b/src/ec_soe.c similarity index 99% rename from src/ethercatsoe.c rename to src/ec_soe.c index 7070eea..036ccbf 100644 --- a/src/ethercatsoe.c +++ b/src/ec_soe.c @@ -9,13 +9,10 @@ * Servo over EtherCAT (SoE) Module. */ +#include "soem/soem.h" #include #include "osal.h" #include "oshw.h" -#include "ethercattype.h" -#include "ethercatbase.h" -#include "ethercatmain.h" -#include "ethercatsoe.h" #define EC_SOE_MAX_DRIVES 8