xiaoxiang781216 commented on pull request #5424: URL: https://github.com/apache/incubator-nuttx/pull/5424#issuecomment-1030882331
If you are familiar with Linux kernel, two set of API exist: timer: http://www.makelinux.net/ldd3/chp-7-sect-4.shtml hrtimer: https://www.kernel.org/doc/html/latest/timers/hrtimers.html NuttX's wdog is same as Linux's timer from the concept. If you want to achieve the accuracy as the hardware, the solution I suggest is: 1. Implement the high resolution timer like Linux kernel 2. Implement wdog on top of hrtimer(then you will understand what I said in this thread). 3. Implement POSIX timer and timer fd on top of hrtimer This is exactly how Linux kernel switch from the tick resolution to the high resolution. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
