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


   Also, looking at the first wiki entry you linked:
   
   > Since timers are a limited resource, the use of two timers could be an 
issue on some systems. The job could be done with a single timer if, for 
example, the single timer were kept in a free-running at all times. Some 
timer/counters have the capability to generate a compare interrupt when the 
timer matches a comparison value but also to continue counting without 
stopping. If your hardware supports such counters, one might used the 
CONFIG_SCHED_TICKLESS_ALARM option and be able to simply set the comparison 
count at the value of the free running timer PLUS the desired delay. Then you 
could have both with a single timer: An alarm and a free-running counter with 
the same timer!
   
   
   arch_alarm.c should indeed use a free running timer, not one that requires 
restarting. Otherwise you are exactly in the case of non-alarm tickless mode.


----------------------------------------------------------------
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