I want to write a C program that runs some code at a fixed interval (somewhere between 200us and 1ms, TBD). Is it possible to use the hardware timer interrupts to execute code without resorting to writing a kernel driver? I'm hesitant to use any delay functions since that doesn't always ensure that the code fires off at a fixed interval. (The period is the delay PLUS the time it takes to execute the rest of the code, which may vary).
I saw that the WiringPi library allows you to attach code to a GPIO interrupt, but I didn't see anything about a timer. I would ideally like to do something similar with a timer interrupt.