Newer
Older
SCADA / plc / GRFICS_Workstation_Docs / Documents / attack / build / beremiz.h
root on 8 May 2022 578 bytes playing with modbus day #1
  1. #ifndef _BEREMIZ_H_
  2. #define _BEREMIZ_H_
  3.  
  4. /* Beremiz' header file for use by extensions */
  5.  
  6. #include "iec_types.h"
  7.  
  8. #define LOG_LEVELS 4
  9. #define LOG_CRITICAL 0
  10. #define LOG_WARNING 1
  11. #define LOG_INFO 2
  12. #define LOG_DEBUG 3
  13.  
  14. extern unsigned long long common_ticktime__;
  15.  
  16. #ifdef TARGET_LOGGING_DISABLE
  17. static inline int LogMessage(uint8_t level, char* buf, uint32_t size)
  18. {
  19. (void)level;
  20. (void)buf;
  21. (void)size;
  22. return 0;
  23. }
  24. #else
  25. int LogMessage(uint8_t level, char* buf, uint32_t size);
  26. #endif
  27.  
  28. long AtomicCompareExchange(long* atomicvar,long compared, long exchange);
  29.  
  30. #endif
Buy Me A Coffee