master/device.c
changeset 1040 d2527675cdd5
parent 1029 61ffe5f22306
child 1305 de3fcbb6773e
child 1685 399ef727bf62
equal deleted inserted replaced
1039:2881a83d084f 1040:d2527675cdd5
   382  */
   382  */
   383 void ec_device_poll(
   383 void ec_device_poll(
   384         ec_device_t *device /**< EtherCAT device */
   384         ec_device_t *device /**< EtherCAT device */
   385         )
   385         )
   386 {
   386 {
       
   387 #ifdef EC_HAVE_CYCLES
   387     device->cycles_poll = get_cycles();
   388     device->cycles_poll = get_cycles();
       
   389 #endif
   388     device->jiffies_poll = jiffies;
   390     device->jiffies_poll = jiffies;
   389 #ifdef EC_DEBUG_RING
   391 #ifdef EC_DEBUG_RING
   390     do_gettimeofday(&device->timeval_poll);
   392     do_gettimeofday(&device->timeval_poll);
   391 #endif
   393 #endif
   392     device->poll(device->dev);
   394     device->poll(device->dev);