Hi,

Can anyone tell me how to use VirtualizeTimerC component instead of
TimerMilliC? I have done sth like the folllowings: I am trying to set up
three timers

*Configuration file:*

components App;
components new VirtualizeTimerC(TMilli,3) as Timer0;
App.Timer0 -> Timer0;

*Application file:*
module App {
  uses interface Boot;
  uses interface Timer<TMilli> as Timer0[3];
}
implementation {
  event void Boot.booted() {
    call AMControl.start();
  }

  event void AMControl.startDone(error_t err) {
    call Timer0.startOneShot[0](1000);
  }

  event void Timer0.fired[0](){
  }
}

Is this the right way to use this components? I have been trying for a while
but it didn't work out. I think it didn't wire properly. Can anyone help me
out? Thanks in advance.

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

Reply via email to