[Tinyos-help] (yet another) Question about signal

Philip Levis pal at cs.stanford.edu
Thu Nov 15 11:24:31 PST 2007


On Nov 15, 2007, at 12:18 PM, Michael Schippling wrote:

> Yes that makes a lost of sense, logically. It just seems odd, to me,
> to have a bunch of redundant keywords cluttering up my code when the
> intent is (almost?) always implicit in the usage...
>
> Now, if "signal" actually fired off code in a different interrupt-like
> context...that would be both logical and reasonable.

Originally, when TinyOS was Perl scripts that munged some cpp macros,  
there were two macros:

TOS_CALL_COMMAND()
TOS_SIGNAL_EVENT()

They needed to be distinct because

TOS_COMMAND() and
TOS_EVENT()

led to different names.

Phil


More information about the Tinyos-help mailing list