targets/beremiz.h
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 07 Jun 2018 14:04:45 +0300
changeset 2174 55611282b909
parent 1050 56bef276055e
child 2175 667f7de69cf6
permissions -rw-r--r--
Use the same retain implementation for Win32 targets

Currently plc_Win32_main_retain.c is exact copy of
plc_Linux_main_retain.c, because it's not possible to use symbol
links.

It'd be nice in the future to have possibility to modify targets.code.
/* Beremiz' header file for use by extensions */

#include "iec_types.h"

#define LOG_LEVELS 4
#define LOG_CRITICAL 0
#define LOG_WARNING 1
#define LOG_INFO 2
#define LOG_DEBUG 3

extern unsigned long long common_ticktime__;
int LogMessage(uint8_t level, char* buf, uint32_t size);
long AtomicCompareExchange(long* atomicvar,long compared, long exchange);