targets/Makefile/plc_Makefile_main.c
changeset 425 f390e9fdd2cf
child 452 2d0718a05cc7
equal deleted inserted replaced
424:86a7c1d11bbd 425:f390e9fdd2cf
       
     1 /**
       
     2  * Yagarto specific code
       
     3  **/
       
     4 
       
     5 //#include <stdio.h>
       
     6 
       
     7 /* provided by POUS.C */
       
     8 extern int common_ticktime__;
       
     9 
       
    10 void Target_GetTime(IEC_TIME*);
       
    11 
       
    12 long AtomicCompareExchange(long* atomicvar,long compared, long exchange)
       
    13 {
       
    14 	return 0;
       
    15 }
       
    16 
       
    17 void PLC_GetTime(IEC_TIME *CURRENT_TIME)
       
    18 {
       
    19 	/* Call target GetTime function */
       
    20 	Target_GetTime(CURRENT_TIME);
       
    21 }
       
    22 
       
    23 void PLC_SetTimer(long long next, long long period)
       
    24 {
       
    25 }
       
    26 
       
    27 int startPLC(int argc,char **argv)
       
    28 {
       
    29 	if(__init(argc,argv) == 0)
       
    30 		return 0;
       
    31 	else
       
    32 		return 1;
       
    33 }
       
    34 
       
    35 int TryEnterDebugSection(void)
       
    36 {
       
    37     return 0;
       
    38 }
       
    39 
       
    40 void LeaveDebugSection(void)
       
    41 {
       
    42 }
       
    43 
       
    44 int stopPLC(void)
       
    45 {
       
    46     __cleanup();
       
    47     return 0;
       
    48 }
       
    49 
       
    50 extern unsigned long __tick;
       
    51 /* from plc_debugger.c */
       
    52 int WaitDebugData(void)
       
    53 {
       
    54     return 0;
       
    55 }
       
    56 
       
    57 /* Called by PLC thread when debug_publish finished
       
    58  * This is supposed to unlock debugger thread in WaitDebugData*/
       
    59 void InitiateDebugTransfer(void)
       
    60 {
       
    61 }
       
    62 
       
    63 void suspendDebug(void)
       
    64 {
       
    65 }
       
    66 
       
    67 void resumeDebug(void)
       
    68 {
       
    69 }
       
    70 
       
    71 /* from plc_python.c */
       
    72 int WaitPythonCommands(void)
       
    73 {
       
    74     return 0;
       
    75 }
       
    76 
       
    77 /* Called by PLC thread on each new python command*/
       
    78 void UnBlockPythonCommands(void)
       
    79 {
       
    80 }
       
    81 
       
    82 int TryLockPython(void)
       
    83 {
       
    84 	return 0;
       
    85 }
       
    86 
       
    87 void UnLockPython(void)
       
    88 {
       
    89 }
       
    90 
       
    91 void LockPython(void)
       
    92 {
       
    93 }