master/device.c
changeset 398 ff37601361a8
parent 392 eaee3c8d6ae0
child 493 b17c95eac6b2
child 1739 5fcbd29151d2
equal deleted inserted replaced
397:c5d2fb08e43f 398:ff37601361a8
   228    done by the master calling the ISR "manually".
   228    done by the master calling the ISR "manually".
   229 */
   229 */
   230 
   230 
   231 void ec_device_call_isr(ec_device_t *device /**< EtherCAT device */)
   231 void ec_device_call_isr(ec_device_t *device /**< EtherCAT device */)
   232 {
   232 {
       
   233     device->cycles_isr = get_cycles();
       
   234     device->jiffies_isr = jiffies;
   233     if (likely(device->isr)) device->isr(0, device->dev, NULL);
   235     if (likely(device->isr)) device->isr(0, device->dev, NULL);
   234 }
   236 }
   235 
   237 
   236 /******************************************************************************
   238 /******************************************************************************
   237  *  Device interface
   239  *  Device interface