Richard Cochran wrote:
 > > -----Original Message----- From: Gilles Chanteperdrix
 > >>           *IXP4XX_OSRT1 = LATCH | ONE_SHOT_ENABLE;
 > > 
 > > In fact, should not this be:
 > > 
 > >                 *IXP4XX_OSRT1 = 
 > >                   (last_jiffy_time + LATCH - *IXP4XX_OSTS) |
 > ONE_SHOT_ENABLE;
 > 
 > Nope, we are using GP Timer 1. It counts down from the dialed value and
 > then stops. It is _not_ a free running timer.

I understand, but my point is that if we want the next timer interrupt
to occur at last_jiffy_time + LATCH, we should reprogram the decrementer
with last_jiffy_time + LATCH - *IXP4XX_OSTS to account for the time
which passed since last_jiffy_time.

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to