[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] WakeMeUpScotty
> Meaning wake up a process after a interrupt has occurred.
I'm doing that in my application and it works fine.
I have:
switch ( scanpulse ) {
case 63:
rt_task_wakeup( &t_process_pulse );
break;
default:
}
at the end of the ISR code. The above code triggers the task every 64
interrupts.
In the init code I have:
rt_task_init( &t_process_pulse, &process_pulse, 0, 1024, 1);
and
the task is (simplified) :
while (1) {
/* do stuff */
rt_task_suspend( &t_process_pulse);
}
I can clearly see on a scope, diagnostic pulses being generated with each
interrupt and a separate one in the task. The jitter between then is a
handful of microseconds.
-Wayne
--- [rtl] ---
For more information on Real-Time Linux see:
http://rtlinux.cs.nmt.edu/