[Tinyos-help] CC2420Control issue
Joe Polastre
joe at polastre.com
Fri Oct 27 11:30:02 PDT 2006
There is no CC2420RadioC for pc.
-Joe
On 10/27/06, André Egners <andre.egners at rwth-aachen.de> wrote:
> Hi.
>
> my .nc file looks like this:
> -----------------------------------------------------------------
> configuration LedDrones {
> }
> implementation {
> components Main, TimerC, LedDronesM, LedsC, RandomLFSR, GenericComm
> as Comm, CC2420RadioC;
>
> Main.StdControl -> TimerC.StdControl;
> Main.StdControl -> LedDronesM.StdControl;
>
> LedDronesM.Timer -> TimerC.Timer[unique("Timer")];
> LedDronesM.Leds -> LedsC;
> LedDronesM.Random -> RandomLFSR;
> LedDronesM.SendCmdMsg -> Comm.SendMsg[AM_LED_MESSAGE];
> LedDronesM.ReceiveCmdMsg -> Comm.ReceiveMsg[AM_LED_MESSAGE];
> LedDronesM.CommControl -> Comm;
> LedDronesM.CC2420Control -> CC2420RadioC.CC2420Control;
>
> }
> -----------------------------------------------------------------
>
> the corresponding module looks like this
> -----------------------------------------------------------------
> module LedDronesM
> {
> provides {
> interface StdControl;
> }
> uses {
> interface Timer;
> interface Leds;
> interface Random;
> interface CC2420Control;
>
> interface ReceiveMsg as ReceiveCmdMsg;
> interface SendMsg as SendCmdMsg;
> interface StdControl as CommControl;
>
> }
> }
> ...
> -----------------------------------------------------------------
>
> If I do a "make pc" it produces these errors:
> LedDronesM.nc:10: interface CC2420Control not found
> LedDrones.nc:13: component CC2420RadioC not found
> LedDrones.nc:24: cannot find `CC2420Control'
> make: *** [exe0] Error 1
>
> Sorry for not being exact the first time.
>
> Andre
>
>
>
>
>
>
>
> Joe Polastre schrieb:
> > include
> >
> > components CC2420RadioC;
> >
> > in your components list.
> >
> > -Joe
> >
>
More information about the Tinyos-help
mailing list