targets/plc_common_main.c
changeset 286 a2a8a52b0d4f
parent 280 f2ef79f3dba0
child 289 d17bd2f00a87
equal deleted inserted replaced
285:e5782a52dcea 286:a2a8a52b0d4f
    67 int __init(int argc,char **argv)
    67 int __init(int argc,char **argv)
    68 {
    68 {
    69     int res;
    69     int res;
    70     config_init__();
    70     config_init__();
    71     __init_debug();
    71     __init_debug();
       
    72     __init_python();
    72     %(init_calls)s
    73     %(init_calls)s
    73     return 0;
    74     return 0;
    74 }
    75 }
    75 /*
    76 /*
    76  * Calls plugin cleanup proc.
    77  * Calls plugin cleanup proc.
    77  **/
    78  **/
    78 void __cleanup()
    79 void __cleanup()
    79 {
    80 {
    80     %(cleanup_calls)s
    81     %(cleanup_calls)s
    81     __cleanup_debug();
    82     __cleanup_debug();
       
    83     __cleanup_python();
    82 }
    84 }
    83 
    85 
    84 
    86 
    85 void PLC_GetTime(IEC_TIME *CURRENT_TIME);
    87 void PLC_GetTime(IEC_TIME *CURRENT_TIME);
    86 void PLC_SetTimer(long long next, long long period);
    88 void PLC_SetTimer(long long next, long long period);