xiaoxiang781216 commented on pull request #1705: URL: https://github.com/apache/incubator-nuttx/pull/1705#issuecomment-687693750
> > > > 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. > > > > > > > > > No. The behavior of a one shot is clear from its definition. It requires no further definition. A one shot generates a single pulse. If it generates multiple pulses it is not a on shot. > > > > > > @patacongo before you give ANY feedback, please read other people's comment CAREFULLY. I EXPLICTLY mention that "DISABLE THE INTERRUPT BUT KEEP THE COUNTING". The INTERRUPT already DISABLE, could you telll me how to generate MULTIPLE PULSE? > > A one shot, by its definition, generates a single event. That is the required behavior to be a one shot. Anything that generates multiple events is not a one shot. What you are describing is not a one shot. > > In order to get another event, the one shot has to be started again. Refer to drivers/timer/oneshot.c for the definitive use of the one shot interface. Of course, if you want to get another notification, you must call start again. Nobody change the behaviour: there is no furture event anymore once the event fired. The only difference is that the timer is keep counting. ---------------------------------------------------------------- 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]
