Dr. Levis:
As you mentioned in the TinyOS programming book, default command and
event implementations address the problem of parameterized interface. It
provides a default implementation of command and event so that the user
does not need to wire all the instances.
However when I digged the code in CC2420RadioM.nc, I found something like
this.
default event TOS_MsgPtr Receive.receive( TOS_MsgPtr msg ) {
return msg;
}
And in CC2420RadioC.nc
configuration CC2420RadioC
{
provides {
interface ReceiveMsg as Receive @exactlyonce();
}
}
This Receive interface is not parameterized. But there is the default
implementation. However, nesC can compile it successfully if I
commentted the default implementation. Could you explain why?
Regards,
Hui
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help