targets/plc_main_head.c
changeset 1001 3f966bbb3fba
parent 985 cd8dadcef426
child 1391 f6818bb5e292
equal deleted inserted replaced
1000:d19af9341d28 1001:3f966bbb3fba
     1 /**
     1 /**
     2  * Head of code common to all C targets
     2  * Head of code common to all C targets
     3  **/
     3  **/
     4 
     4 
     5 #include "iec_types.h"
     5 #include "beremiz.h"
     6 /*
     6 /*
     7  * Prototypes of functions provided by generated C softPLC
     7  * Prototypes of functions provided by generated C softPLC
     8  **/
     8  **/
     9 void config_run__(unsigned long tick);
     9 void config_run__(unsigned long tick);
    10 void config_init__(void);
    10 void config_init__(void);
    26 
    26 
    27 /*
    27 /*
    28  *  Variable generated by C softPLC and plugins
    28  *  Variable generated by C softPLC and plugins
    29  **/
    29  **/
    30 extern unsigned long greatest_tick_count__;
    30 extern unsigned long greatest_tick_count__;
    31 /* Tick time provided by POUS.C */
       
    32 extern unsigned long long common_ticktime__;
       
    33 
    31 
    34 /* Effective tick time with 1ms default value */
    32 /* Effective tick time with 1ms default value */
    35 static long long Ttick = 1000000;
    33 static long long Ttick = 1000000;
    36 
    34 
    37 /* Help to quit cleanly when init fail at a certain level */
    35 /* Help to quit cleanly when init fail at a certain level */