iec104_conf.h 593 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __IEC10x_CONF_H
  2. #define __IEC10x_CONF_H
  3. #include "iec104_types.h"
  4. #include "project_var.h"
  5. #define WTP_SUPPORT_END_NUMBER 9
  6. #define RET_SUCESS 0
  7. #define RET_ERROR 1
  8. // #define IEC104_DEBUG
  9. #ifdef IEC104_DEBUG
  10. #define log(...) printf(__VA_ARGS__)
  11. #define LOG(...) printf(__VA_ARGS__)
  12. #define LogInit()
  13. #define PRINT_FUNLINE printf("%s %d\r\n", __FUNCTION__, __LINE__)
  14. #else
  15. #define log(...)
  16. #define LOG(...)
  17. #define dump_hex(buffer, len)
  18. #define PRINT_FUNLINE
  19. #endif
  20. #ifdef IEC104_DEBUG
  21. // #define dump_hex(buffer, len)
  22. void dump_hex(iec_8u *buffer, iec_32u len);
  23. #endif
  24. #endif