SOEM EtherCAT Master library for STM Nucleo F767ZI
Dependents: EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB
- This repository contains the SOEM (Simple Open EtherCAT® Master) library by rt-labs, that has been ported in the ecosystem by AB&T Tecnologie Informatiche.
- It has been developed for the EasyCAT LAB , a complete educational and experimental EtherCAT® system, composed of one master and two slaves .
- The EasyCAT LAB is provided as a kit by AB&T Tecnologie Informatiche, to allow everybody to have an educational EtherCAT® system up and running in a matter of minutes.
Warning
- Currently only the Nucleo STM32F767ZI board is supported.
osal/osal_defs.h@0:543d6784d4cc, 2019-06-11 (annotated)
- 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?
User | Revision | Line number | New 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 |