patacongo edited a comment on pull request #1705:
URL: https://github.com/apache/incubator-nuttx/pull/1705#issuecomment-687647565


   > 
   > 
   > > Of course, it if reset and fired again it wouldn't be a one shot. The 
one shot timer was created to support tickless mode operation for the two timer 
case: https://cwiki.apache.org/confluence/display/NUTTX/Tickless+OS
   > 
   > That's exactly my thought. So, arch_alarm.c using oneshot does not really 
sound a good combination, is it?
   > I mean, there will be drift while the timer is stopped between the ISR and 
when the next up_alarm_start is called.
   
   It would would not be the tidiest solution since it is just a wrapper around 
the timer interface and since the timer interface can be configured to support 
a periodic timer.
   
   If you are clever in how you set up the next oneshot delay, then you could 
avoid drift.  But there would be drift if you naively set up a fixed delay from 
the current time without accounting for the processing delay from the timer 
expiration.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to