You can create timers in your code to accomplish this; there are some libraries that may help you with this.
Let us know more about the requirements you need in order to give you a better approach.
Thanks for reply! I'm sorry. I forgot to write about it. I'm writing C project and I have two paremeter S0 and S1 to modify frequency.
OUTPUT FREQUENCY SCALING (fo)
L Power down L L Red
H 100 %
I want to read some variable OUT and in Arduino example code is timer like this one:
//the clock frequency source 1024 points
//10 ms overflow again
TIMSK2 = 0x01;
and s0 = 1; s1 =1
The code you are using is for Arduino and it registers so there could be some poblems while using this code with the Edison.
There are some threads that you may find helpful related to timers:
In here: Create your own timer routine in Linux | My Linux and Telecom Experiences you will find a timer example for C.