equal
deleted
inserted
replaced
1375 datagram->state = EC_DATAGRAM_TIMED_OUT; |
1375 datagram->state = EC_DATAGRAM_TIMED_OUT; |
1376 master->stats.timeouts++; |
1376 master->stats.timeouts++; |
1377 ec_master_output_stats(master); |
1377 ec_master_output_stats(master); |
1378 |
1378 |
1379 if (unlikely(master->debug_level > 0)) { |
1379 if (unlikely(master->debug_level > 0)) { |
|
1380 unsigned int time_us; |
|
1381 #ifdef EC_HAVE_CYCLES |
|
1382 time_us = (unsigned int) (master->main_device.cycles_poll - |
|
1383 datagram->cycles_sent) * 1000 / cpu_khz; |
|
1384 #else |
|
1385 time_us = (unsigned int) (diff_ms * 1000); |
|
1386 #endif |
1380 EC_DBG("TIMED OUT datagram %08x, index %02X waited %u us.\n", |
1387 EC_DBG("TIMED OUT datagram %08x, index %02X waited %u us.\n", |
1381 (unsigned int) datagram, datagram->index, |
1388 (unsigned int) datagram, datagram->index, time_us); |
1382 #ifdef EC_HAVE_CYCLES |
|
1383 (unsigned int) (master->main_device.cycles_poll |
|
1384 - datagram->cycles_sent) * 1000 / cpu_khz |
|
1385 #else |
|
1386 (unsigned int) (diff_ms * 1000) |
|
1387 #endif |
|
1388 ); |
|
1389 |
|
1390 } |
1389 } |
1391 } |
1390 } |
1392 } |
1391 } |
1393 |
1392 |
1394 master->frames_timed_out = frames_timed_out; |
1393 master->frames_timed_out = frames_timed_out; |