Question about IRQ
Posted: Fri Apr 17, 2009 3:37 pm
I Have a question. it's a good idea to make an irq handle, Not to Handle the irq inmediatly, and handling in the multitasker?, And it's better this way? or it's better to handle inmediatly.for example
Code: Select all
/// Irq 0 = Timer, doesn't do this, so can call the Multitasker..
void irqHandle( ... )
{
PreIrqBody
pushToList irqNumber,irqRegisters
PostIrqBody
}
void Multitasker( )
{
if(irqStackList != NULL) {
PopIrq (IrqNumber,IrqRegisters)
DoIrqAction IrqNumber,IrqRegisters
}
HandleProcessEtc...
}