iec10x_conf.h 581 B

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