examples/dc_rtai/dc_rtai_sample.c
changeset 1466 362147819ca1
parent 1449 6d1ef8afeaab
child 1500 ed1a733efbc5
equal deleted inserted replaced
1465:3099d78343ea 1466:362147819ca1
   218         tv.tv_usec += 1000;
   218         tv.tv_usec += 1000;
   219         if (tv.tv_usec >= 1000000)  {
   219         if (tv.tv_usec >= 1000000)  {
   220             tv.tv_usec -= 1000000;
   220             tv.tv_usec -= 1000000;
   221             tv.tv_sec++;
   221             tv.tv_sec++;
   222         }
   222         }
   223         ecrt_master_application_time(master, EC_TIMEVAL2NANO(&tv));
   223         ecrt_master_application_time(master, EC_TIMEVAL2NANO(tv));
   224             
   224             
   225         if (sync_ref_counter) {
   225         if (sync_ref_counter) {
   226             sync_ref_counter--;
   226             sync_ref_counter--;
   227         } else {
   227         } else {
   228             sync_ref_counter = 9;
   228             sync_ref_counter = 9;