Make it possible to set EC_VER from osal layer

feature/soem_140
Andreas Karlsson 2019-05-24 14:02:46 +02:00
parent c892921d7e
commit 7b1ea32343
1 changed files with 7 additions and 4 deletions

View File

@ -23,12 +23,15 @@ extern "C"
{
#endif
/** define EC_VER1 if version 1 default context and functions are needed
* comment if application uses only ecx_ functions and own context */
#define EC_VER1
#include "osal.h"
/** define EC_VER1 if version 1 default context and functions are needed
* define EC_VER2 if application uses only ecx_ functions and own context */
#if !defined(EC_VER1) && !defined(EC_VER2)
# define EC_VER1
#endif
/** Define little endian target by default if no endian is set */
#if !defined(EC_LITTLE_ENDIAN) && !defined(EC_BIG_ENDIAN)
# define EC_LITTLE_ENDIAN