Please read the TinyOS programming manual, Chapter 5.2 (Combine
functions).
Phil
On Jun 17, 2007, at 2:50 PM, Ian Welch wrote:
I'm getting the follow warning
"calls to Recieve.recieve in CC1000ActiveMessageP fan out, but
there is no combine function fnction specified for the return type"
I looked in the NESC programming guide and couldn't figure out how
to solve me problem but did find out that this warning should not
be overlooked. How do I solve this warning, I'm thinking it's
something to do with using AMSenderC and ActiveMessageC?
Thanks ahead of time for the help.
-Ian
module InsoleC {
uses interface Boot;
uses interface Leds;
uses interface Timer<TMilli> as SampleDelay;
uses interface Timer<TMilli> as AckDelay;
uses interface Timer<TMilli> as Time;
uses interface Timer<TMilli> as TimeAck;
uses interface Atm128AdcMultiple as Multiple;
uses interface Atm128AdcSingle as Single;
uses interface Init as ADCInit;
uses interface Packet;
uses interface Receive as Receiver[am_id_t myid];
uses interface AMSend[am_id_t id];
uses interface Packet as DataPacket;
uses interface AMSend as DataSend;
uses interface PacketAcknowledgements as ACK;
uses interface GeneralIO;
uses interface GeneralIO as Battery1;
uses interface GeneralIO as Battery2;
uses interface LogRead;
uses interface LogWrite;
uses interface Suspend;
uses interface PowerControl;
}
implementation {
components MainC;
components LedsC;
components InsoleC;
components Atm128AdcP as MyADC;
components new TimerMilliC() as SampleDelay;
components new TimerMilliC() as AckDelay;
components new TimerMilliC() as Time;
components new TimerMilliC() as TimeAck;
components ActiveMessageC as Radio;
components new AMSenderC(6) as Data;
components HplAtm128GeneralIOC as BattIO;
components new LogStorageC(VOLUME_LOG,TRUE);
components MotePowerApp;
components SuspendApp;
//components new LogStorageC(VOLUME_STORAGE,FALSE) as
SampleStorageC;
InsoleC.Boot -> MainC;
InsoleC.Leds -> LedsC;
InsoleC.SampleDelay -> SampleDelay;
InsoleC.AckDelay -> AckDelay;
InsoleC.Time -> Time;
InsoleC.TimeAck -> TimeAck;
InsoleC.Multiple -> MyADC;
InsoleC.ADCInit -> MyADC; //Atm128AdcSingle was not
included, I dont think this is required
InsoleC.Single -> MyADC;
InsoleC.PowerControl -> MotePowerApp;
InsoleC.Suspend -> SuspendApp;
InsoleC.ACK -> Radio;
InsoleC.Packet -> Radio;
InsoleC.AMSend -> Radio;
InsoleC.Receiver -> Radio.Receive;
InsoleC.DataPacket -> Data; //Used to interface witht he
data packet
InsoleC.DataSend -> Data; //Dat packet
InsoleC.Battery1 ->BattIO.PortC6; //Used to monitor
Battery
InsoleC.Battery2 ->BattIO.PortC7; //Used to monitor
Batery
InsoleC.LogWrite -> LogStorageC;
InsoleC.LogRead -> LogStorageC;
//InsoleC.SampleWrite -> SampleStorageC;
//InsoleC.SampleRead -> SampleStorageC;
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/
tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help