how to setup timer in writing device driver/user space program
Hi all,
When developing bare-bone embedded system project, we usually need to use timers to trigger one-shot/periodic interrupt. In a bare-bone environment, this can be done by accessing registers. Right now I need to develop code in embedded Linux environment, what are the appropriate ways to achieve the same purpose? I read about jiffies, is it usually used in device driver? What about user space then? Thanks, Wei Xu |
http://linux.die.net/man/2/timer_create
Nanosecond resolution. Sample program included. That's user space, no idea how to do it in the kernel. And I am sure there are other ways. |
All times are GMT -5. The time now is 10:58 AM. |