Then, which is the case in TinyOS 1.x? From MS's answer, it seems that other
interupt will be defered if a atomic section or hardware async
command/interrupt is running.

Who can give an authorative answer on this? 



-----Original Message-----
From: John Regehr [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 12:36 PM
To: Conor Todd
Cc: Adam; [email protected]
Subject: Re: [Tinyos-help] Interrupts and async events question

> No.  The only way to break out of the async nature of interrupt 
> handlers (and functions called by them) is to post a task, thus 
> allowing the synchronous interrupt-handling call tree to terminate.

Incorrect -- if interrupts are enabled inside of an interrupt handler then
other interrupts may fire before the first has completed.

John Regehr


 
>     - C
> 
> 
> On 9/6/06, Adam <[EMAIL PROTECTED]> wrote:
> > 
> > It is a great question - I am looking at build/telosb/app.c and has 
> > a complementary question:
> > 
> > I notice an async event is actually implemented by
> > __attribute((interrupt(xx))) function:
> > void  __attribute((wakeup)) __attribute((interrupt(14)))
> > sig_ADC_VECTOR(void)
> > 
> > Can another interuption interupt this routine?
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > jose m
> > Sent: Wednesday, September 06, 2006 1:22 PM
> > To: [email protected]
> > Subject: [Tinyos-help] Interrupts and async events question
> > 
> > Hello everybody,
> > 
> > In tinyos, usually, an interrupt signals an async event. When an 
> > interrupt routine is executed, all the interrupts are masked and 
> > cannot interrupt the current interrupt routine. If this interrupt 
> > routine jumps to a signalled event, are the other interrupts 
> > disabled until this event (and every routine called from this
> > event) finish it execution and return the control to the interrupt 
> > routine?
> > 
> > Thanks,
> > 
> > José
> > 
> > 
> > 
> > 
> > 
> > __________________________________________________
> > Preguntá. Respondé. Descubrí.
> > Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo!
> > Respuestas
> > (Beta).
> > ¡Probalo ya!
> > http://www.yahoo.com.ar/respuestas
> > 
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos
> > -help
> > 
> > 
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos
> > -help
> > 
> 
> 
> 
> --
> "Thought is only a flash in the middle of a long night, but the flash 
> that means everything."
> 
>    - Poincaré
> 
> -=-=-=-=-=-=-=-=-
> 
> I'm going to run the Houston Marathon, but finishing's not my only goal:
> help me raise money for cancer research!
> http://www.active.com/donate/tnttxgc/tnttxgcCTodd
> 
> Thanks!
> 


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to