You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/06 16:09:26 UTC

[GitHub] [incubator-nuttx] hartmannathan commented on pull request #5421: sched/wdog: fix adding one extra tick to any delay

hartmannathan commented on pull request #5421:
URL: https://github.com/apache/incubator-nuttx/pull/5421#issuecomment-1030863289


   I'm late to the party but I just wanted to add that I was also confused by the + 1 tick in the past and I remember writing to ask about it. I think it might be in the old Google Group. I don't have the link handy at this time. What Greg is describing above sounds a little like a Bresenham-style algorithm. It works for drawing slanted lines on a graphic display but also works for things like fitting a time intervals that don't divide easily. In my case, it turned out that I needed a much higher resolution timer and for that I ended up using one of the chip's timer peripherals to produce an interrupt (zero-latency in my application). I recognize that that is not always an option but may be something to consider. Anyway this PR is closed so this is a moot point now.


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

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org