Can we have access to internal h/w timers on an embedded board having linux. The purpose behind this is to keep track of time - any of the time related system calls are not usful; as the jiffies value itself is beyond the required resolution.
See the thread "Linux system clock tick?" in this forum.
When in Kernel space, AFAIK, jiffies (frequency defined by the "HZ" constant in 1/sec) _is_ the resolution of the hardware timer used by the Kernel. The frequency used depends on the architecture (and can be changed by modifying a .h file and recompiling the Kernel). With not too fast CPUs it's 100 Hz, faster values not recommended.
In user space jiffies/HZ is always 100 Hz and changing it is not recommended. I don't think you can access the Kernel jiffies from user space.
Anyway, pure Linux is not meant to be a hard realtime system, so relying on fast timer stuff - especially in user space - usually fails.
Maybe you can use the rtc driver: activate an interrupt with a certain frequency via IOCTL, now you can do reads and you'll get the count of these interrupts.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.