v01d commented on pull request #1705: URL: https://github.com/apache/incubator-nuttx/pull/1705#issuecomment-687658496
> So the implementer is free to just disable the interrupt but keep the counting. This behaviour is very important to implement the tickless mode on top of oneshot_lowerhalf_s without any drift. My suggestion is to not base tickless mode on this expectation of oneshot continuing to count after expiration. But arch_alarm should indeed be implemented over an interface which guarantees the timer continues to run without any manual restart. timer_lowerhalf_s could be used for this, but current implementations do not guarantee this property either (stm32/smt32l4 will autoreload the timer, but for "advanced timers" this would be possible) and overflow should be handled by exposing the overflow ISR. We really need to document the semantics of each interface so that we agree on how things should work. ---------------------------------------------------------------- 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]
