#ifndef __LIB60870_INC_H__
#define __LIB60870_INC_H__

#include <stdint.h>
#include <stdbool.h>
#include <string.h>     //字符串处理 
#include <stdio.h>

#define IEC_LOBYTE(w) ((unsigned char)(w))
#define IEC_HIBYTE(w) ((unsigned char)((unsigned short)(w) >> 8))
#define IEC_MAKEWORD(low, high) ((unsigned short)((unsigned char)(low) | (((unsigned short)((unsigned char)(high))) << 8)))


#ifndef IEC_PRINT
#define IEC_PRINT(fmt, args...)
#endif

#endif
