extern int common_ticktime__;
void Target_GetTime(IEC_TIME*);
long AtomicCompareExchange(long* atomicvar,long compared, long exchange)
void PLC_GetTime(IEC_TIME *CURRENT_TIME)
/* Call target GetTime function */
Target_GetTime(CURRENT_TIME);
void PLC_SetTimer(long long next, long long period)
int startPLC(int argc,char **argv)
if(__init(argc,argv) == 0)
int TryEnterDebugSection(void)
void LeaveDebugSection(void)
extern unsigned long __tick;
/* from plc_debugger.c */
/* Called by PLC thread when debug_publish finished
* This is supposed to unlock debugger thread in WaitDebugData*/
void InitiateDebugTransfer(void)
int WaitPythonCommands(void)
/* Called by PLC thread on each new python command*/
void UnBlockPythonCommands(void)