project_var.h 955 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __PROJECT_VAR_H
  2. #define __PROJECT_VAR_H
  3. #include "includes.h"
  4. typedef unsigned long long INT64U;
  5. typedef signed long long INT64S;
  6. // project version
  7. #define SW_VERSION_HD0 'C'
  8. #define SW_VERSION_HD1 'C'
  9. #define SW_VERSION_HD2 'U'
  10. #define SW_VERSION_PJ0 0
  11. #define SW_VERSION_PJ1 0
  12. #define SW_VERSION0 1
  13. #define SW_VERSION1 0
  14. #define SW_VERSION2 2
  15. #define WTP_SUPPORT_END_NUMBER 9
  16. #define RET_SUCESS 0
  17. #define RET_ERROR 1
  18. //#define IEC101_STM32
  19. #define IEC104_STM32
  20. //#define IEC104_STM32_FUJIAN_HX
  21. //#define SIM900_MODE_SERVER
  22. #define SIM900_MODE_CLIENT
  23. #define SERIAL_DEBUG
  24. #ifdef SERIAL_DEBUG
  25. #define log(...) printf(__VA_ARGS__)
  26. #define LOG(...) printf(__VA_ARGS__)
  27. #define LogInit()
  28. #define PRINT_FUNLINE printf("%s %d\r\n", __FUNCTION__, __LINE__)
  29. #else
  30. #define log(...)
  31. #define LOG(...)
  32. #define DumpHEX(buffer, len)
  33. #define PRINT_FUNLINE
  34. #endif
  35. #ifdef SERIAL_DEBUG
  36. void DumpHEX(INT8U *buffer, INT32U len);
  37. #endif
  38. #endif