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



_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to