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.h
- Committer:
- EasyCAT
- Date:
- 2019-06-11
- Revision:
- 0:543d6784d4cc
File content as of revision 0:543d6784d4cc:
/* * Licensed under the GNU General Public License version 2 with exceptions. See * LICENSE file in the project root for full license information */ #ifndef _osal_ #define _osal_ #ifdef __cplusplus extern "C" { #endif #include "osal_defs.h" #include <stdint.h> /* General types */ #define TRUE 1 #define FALSE 0 #define boolean uint8_t #define uint8 uint8_t #define uint16 uint16_t #define uint32 uint32_t #define uint64 uint64_t #define int8 int8_t #define int16 int16_t #define int32 int32_t #define int64 int64_t typedef struct { uint32 sec; //< Seconds elapsed since the Epoch (Jan 1, 1970) uint32 usec; //< Microseconds elapsed since last second boundary } ec_timet; typedef struct osal_timer { ec_timet stop_time; } osal_timert; void osal_timer_start(osal_timert * self, uint32 timeout_us); boolean osal_timer_is_expired(osal_timert * self); int osal_usleep(uint32 usec); ec_timet osal_current_time(void); #ifdef __cplusplus } #endif #endif