[Tinyos-help] A simple question in tinyos

Murtuza mirmurtuza at gmail.com
Thu Jun 28 22:06:31 PDT 2007


Thts fine..but there is still one more thing to ask.

If an event is not doing anything then why do we take the pains to include
it..

for example
in file tinyos-1.x/tos/platform/mica2/CC1000RadioIntM.nc there are some
"default events" which do nothing. They are not even implemented in some
other configuration. Then what purpose do they serve. ( I did not find an
explanation of this in the manual)

Thanking you once again

MMA


On 28/06/07, Brian Mulanda <bmulanda.tinyos at gmail.com> wrote:
>
> When an event is preceded by "default", the compiler will not require you
> to wire this event when specifying your
> configuration. The nesC compiler will complain if an event, not preceded
> by default,  is not wired  within a
> configuration.
>
> You can read more about this in the nesC language reference manual  here:
>
>  http://nescc.sourceforge.net/papers/nesc-ref.pdf
>
> -Brian
>
>
> On 6/28/07, Murtuza <mirmurtuza at gmail.com> wrote:
>
> > hi friends,
> >
> > Can anyone tell me what a "default event" is? Why do we need the word
> > "default" in it...can we just say "event" ?
> >
> > Thanking You
> > MMA
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070629/c747669d/attachment.htm


More information about the Tinyos-help mailing list