Hi all. I want to know the difference between TOSH_SIGNAL and TOSH_INTERRUPT. AFAIK, TOSH_SIGNAL can't be preempted by any other external interrupts! On the other hand, TOSH_INTERRUPT can be preempted by other external interrupts which have higher priority! Is it right? If so, the execution thread starting from TOSH_SIGNAL can't be preempted by any other external interrupts? Or only TOSH_SIGNAL portion? In other words,
TOSH_SIGNAL(X) { signal A_MODULE.A_EVENT(); } TOSH_SIGNAL(Y) { signal B_MODULE.B_EVENT(); } Assume that A_MODULE.A_EVENT() is called by TOSH_SIGNAL and is executing, and at that time, TOSH_SIGNAL(Y) is fired. 1) TOSH_SIGNAL(Y) can't be fired. 2) TOSH_SIGNAL(Y) can be fired. And it preempts A_MODULE.A_EVENT(). Which is correct? Best regards, Man-Ki Yoon
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help