Hi to all
Sorry anyone can help me to port my software to release tinyos 2.1.1 , I start 
from tinyos 1.x, and I developed on tinyos four years ago.
I use a telosb

SingleTimer

configuration SingleTimer {
  provides interface Timer;
  provides interface StdControl;
}

implementation {
  components TimerC;
  
  Timer = TimerC.Timer[unique("Timer")];
  StdControl = TimerC;
}


BeaconC

includes beacon;

configuration BeaconC{}
implementation
{
components Main,
BeaconM,
TimerC,
LedsC,
HumidityC,
GenericComm as GComm,
CC2420RadioC,
        UARTComm as Comm;
Main.StdControl -> BeaconM.StdControl;
Main.StdControl -> TimerC;
Main.StdControl -> Comm;
Main.StdControl -> GComm;
BeaconM.Timer -> TimerC.Timer[unique("Timer")];
BeaconM.Leds  -> LedsC;
BeaconM.Radio -> CC2420RadioC.SplitControl;
BeaconM.DataMsg -> Comm.SendMsg[AM_BEACONMSGUART];
BeaconM.BeaconSendMsg -> GComm.SendMsg[AM_BEACONMSG];
BeaconM.ReceiveMyMsg -> GComm.ReceiveMsg[AM_BEACONMSG];
BeaconM.HumidityControl -> HumidityC;
BeaconM.Humidity -> HumidityC.Humidity;
BeaconM.Temperature -> HumidityC.Temperature;
BeaconM.HumidityError -> HumidityC.HumidityError;
BeaconM.TemperatureError -> HumidityC.TemperatureError;


}



BeaconM

module BeaconM
{
provides interface StdControl;
uses{
interface SplitControl as HumidityControl;  
interface Timer;
interface Leds;
interface SplitControl as Radio;
interface SendMsg as DataMsg;
interface SendMsg as BeaconSendMsg;
interface ReceiveMsg as ReceiveMyMsg;
interface ADC as Humidity;
interface ADC as Temperature;
interface ADCError as HumidityError;
interface ADCError as TemperatureError;
}
}[email protected]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to