On Fri, 11 May 2012, burnsmicro wrote:
>
>
> --- In ts-7000%40yahoogroups.com, "al" <> wrote:
> >
> > I do this routinely on a TS-7500 by using a high-priority thread that
> > does nothing but execute a loop that calls nanosleep() (standard Posix
> > API) and then calls a short routine. If you need tight control over
> > jitter, consider using a hardware solution. (Standard Linux is NOT a
> > real-time operating system.)
>
> Thanks. I will fall back on this if I have difficulty fighting how to
> deal with the SIGALRM resulting from the use of setitimer()
If you have difficulty doing that (it's standard Unix/Linux stuff and there
is tons of example code google-able), then you'll have problem doing kernel
code.
Despite setitimer having an interface that can set microseconds, the
smallest interval it can do is normally the jiffy interval - 10millisecs
and multiples thereof. Modern kernels do have high performance timer
options but I am not sure if they are enabled/coded in the TS kernels.