Page 1 of 1

Question about IRQ

Posted: Fri Apr 17, 2009 3:37 pm
by Wolftein
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...
          }

Re: Question about IRQ

Posted: Fri Apr 17, 2009 4:39 pm
by neon
Wolftein wrote: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
Its entirely up to you and your systems design goals. I personally prefer handling it as soon as it happens.

Oh, and get FF - its automatic spellchecker is great! :D