/*
 * global.h
 *
 *  Created on: 02.05.2017
 *      Author: WallnerR
 */

#ifndef INC_CLASS_GLOBAL_H_
#define INC_CLASS_GLOBAL_H_


/*#define EPS_DEBUG                     Activate Debug Variables */
/*#define X2C_INTERFACE                 This activates the X2C Interface for Debugging and Tracing */
/*#define SER_DEBUG                   0  Activate Serial Interface for Debugging with printf */
/*#define SIMULATION                    This Activates the Hardware Simulation to compile the project on the pc */



/*
 * If Set Debug is enabled, the X2C Interface has to be disabled!
 */
#ifdef SER_DEBUG
    #undef X2C_INTERFACE
#endif


#ifdef SER_DEBUG
    #include <stdio.h>
    #define debug0_printf(x)     printf x

    #if SER_DEBUG > 0
        #define debug1_printf(x)     printf x
    #else
        #define debug1_printf(x)
    #endif

    #if SER_DEBUG > 1
        #define debug2_printf(x)     printf x
    #else
        #define debug2_printf(x)
    #endif

    #if SER_DEBUG > 2
        #define debug3_printf(x)     printf x
    #else
        #define debug3_printf(x)
    #endif

#else
    #define debug0_printf(x)
    #define debug1_printf(x)
    #define debug2_printf(x)
    #define debug3_printf(x)
#endif




#ifdef X2C_INTERFACE
    #include "BlockServicesX2C.h"
    #include "TableStruct.h"
    #include "LNet.h"
    #include "Services.h"
    #include "VersionInfo.h"
    #include "X2Cuart.h"
#endif


/*
 * Global Defines
 */
#include <stdio.h>
#include <string.h>


#endif /* INC_CLASS_GLOBAL_H_ */
