SOEM EtherCAT Master library for STM Nucleo F767ZI

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

  • It has been developed for the EasyCAT LAB , a complete educational and experimental EtherCAT® system, composed of one master and two slaves .

Warning

/media/uploads/EasyCAT/easycat_lab.jpg

Committer:
EasyCAT
Date:
Tue Jun 11 10:29:09 2019 +0000
Revision:
0:543d6784d4cc
SOEM EtherCAT Master Library for STM Nucleo F767ZI

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EasyCAT 0:543d6784d4cc 1 /*
EasyCAT 0:543d6784d4cc 2 * Licensed under the GNU General Public License version 2 with exceptions. See
EasyCAT 0:543d6784d4cc 3 * LICENSE file in the project root for full license information
EasyCAT 0:543d6784d4cc 4 */
EasyCAT 0:543d6784d4cc 5
EasyCAT 0:543d6784d4cc 6 #ifndef _osal_defs_
EasyCAT 0:543d6784d4cc 7 #define _osal_defs_
EasyCAT 0:543d6784d4cc 8
EasyCAT 0:543d6784d4cc 9
EasyCAT 0:543d6784d4cc 10
EasyCAT 0:543d6784d4cc 11 #ifdef __cplusplus
EasyCAT 0:543d6784d4cc 12 extern "C"
EasyCAT 0:543d6784d4cc 13 {
EasyCAT 0:543d6784d4cc 14 #endif
EasyCAT 0:543d6784d4cc 15
EasyCAT 0:543d6784d4cc 16
EasyCAT 0:543d6784d4cc 17 // define if debug printf is needed
EasyCAT 0:543d6784d4cc 18 //#define EC_DEBUG
EasyCAT 0:543d6784d4cc 19
EasyCAT 0:543d6784d4cc 20 #ifdef EC_DEBUG
EasyCAT 0:543d6784d4cc 21 #define EC_PRINT printf
EasyCAT 0:543d6784d4cc 22 #else
EasyCAT 0:543d6784d4cc 23 #define EC_PRINT(...) do {} while (0)
EasyCAT 0:543d6784d4cc 24 #endif
EasyCAT 0:543d6784d4cc 25
EasyCAT 0:543d6784d4cc 26 //#ifndef PACKED
EasyCAT 0:543d6784d4cc 27 #define PACKED_BEGIN
EasyCAT 0:543d6784d4cc 28 #define PACKED __attribute__((__packed__))
EasyCAT 0:543d6784d4cc 29 #define PACKED_END
EasyCAT 0:543d6784d4cc 30 //#endif
EasyCAT 0:543d6784d4cc 31
EasyCAT 0:543d6784d4cc 32
EasyCAT 0:543d6784d4cc 33 #ifdef __cplusplus
EasyCAT 0:543d6784d4cc 34 }
EasyCAT 0:543d6784d4cc 35 #endif
EasyCAT 0:543d6784d4cc 36
EasyCAT 0:543d6784d4cc 37 #endif