[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rt_global_sti
Hello RTers
A while back a few of you helped with an ISR that looked like this:
void pport1_irq(void){
rt_global_sti();
if(lp_count == ctrl[event_num].dat1){
start_time = rt_get_time();
rt_task_resume();
}
lp_count ++;
}
The ISR resumes a previously suspended task after a certain number of
hardware interrupts are received on the parallel port. You helped
me with this ISR by instructing me that I need the rt_global_sti()
line.
Question: Would someone please tell me why enabling interrupts
was necessary? There's a gap in my understanding
that looms.
Thanks once again,
Daniel S.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com