Can anybody catch the error in this extremely simple application. Non
of the Leds are coming on.
**************************config file********************
********************************************************
configuration Sampling {
}
implementation {
components Main,SamplingM,LedsC,TimerC;
Main.StdControl->SamplingM;
Main.StdControl->TimerC;
SamplingM.TimerJiffy->TimerC.TimerJiffy[unique("Timer")];
SamplingM.Leds -> LedsC;
}
*************** module***************************************
***************************************************************
module SamplingM{
provides interface StdControl;
uses {
interface Leds;
interface TimerJiffy;
}
}
implementation{
uint32_t sampleTime;
result_t result;
command result_t StdControl.init(){
call Leds.init();
return SUCCESS;
}
command result_t StdControl.start(){
sampleTime=1000;
result=call TimerJiffy.setPeriodic(sampleTime);
if (result!=SUCCESS){
call Leds.yellowToggle();
}else{
call Leds.greenToggle();
}
return SUCCESS;
}
command result_t StdControl.stop(){
call TimerJiffy.stop();
return SUCCESS;
}
event result_t TimerJiffy.fired(){
call Leds.redToggle();
return SUCCESS;
}
}
TIA
jagan
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help