targets/Win32/plc_Win32_main.c
changeset 1428 e14003eb4d42
parent 985 cd8dadcef426
child 1457 ff7cfce737ca
equal deleted inserted replaced
1423:4e33f644f7cf 1428:e14003eb4d42
   134         printf("CreateWaitableTimer failed (%d)\n", GetLastError());
   134         printf("CreateWaitableTimer failed (%d)\n", GetLastError());
   135         return 1;
   135         return 1;
   136     }
   136     }
   137     if( __init(argc,argv) == 0 )
   137     if( __init(argc,argv) == 0 )
   138     {
   138     {
   139         PLC_SetTimer(Ttick,Ttick);
   139         PLC_SetTimer(common_ticktime__,common_ticktime__);
   140         PLC_thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PlcLoop, NULL, 0, &thread_id);
   140         PLC_thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)PlcLoop, NULL, 0, &thread_id);
   141     }
   141     }
   142     else{
   142     else{
   143         return 1;
   143         return 1;
   144     }
   144     }