
#ifndef __IEC10x_CONF_H
#define __IEC10x_CONF_H

#include "iec104_types.h"
#include "project_var.h"

#define WTP_SUPPORT_END_NUMBER 9

#define RET_SUCESS 0
#define RET_ERROR  1

// #define IEC104_DEBUG

#ifdef IEC104_DEBUG
#define log(...) printf(__VA_ARGS__)
#define LOG(...) printf(__VA_ARGS__)
#define LogInit()
#define PRINT_FUNLINE printf("%s %d\r\n", __FUNCTION__, __LINE__)
#else
#define log(...)
#define LOG(...)
#define dump_hex(buffer, len)
#define PRINT_FUNLINE
#endif

#ifdef IEC104_DEBUG
// #define dump_hex(buffer, len)
void dump_hex(iec_8u *buffer, iec_32u len);
#endif

#endif