Programming a somewhat compute-intensive and time-critical application on an embedded ARM-9 system, running Linux. I need a clock in the low tens of milliseconds for triggering synchronous functions, ie.
while (1) { if Timeout (say 30mS) { reset timer do some stuff } }
The standard Linux itimer functions and callback mechanism will serve, but I suspect without a lot of data that there may be a significant overhead associated with them. Any suggestions on how to do better in terms of overhead?
I appreciate that this sort of thing can be done easily at the hardware level, just a few instructions in a timer ISR. For now, I'd prefer to stay within the Linux API, and also avoid realtime OS extensions.
As an aside, can anyone suggest a good Linux forum for real time programming?