Hi
Can anybody help me, why this timer doesn't work?
Board: TinyOS-2.x, mote mica2 with Atmega128L
Timer: /tinyos-2.x/tos/chips/atm128/timer/
//---------------------------------------------------------------------
// $Id: TestTimeAppC.nc,idgay Exp $
configuration TestTimeAppC
{
}
implementation {
components TestTimeC, MainC, LedsC, HplAtm128Timer1C as TOtimer;
TestTimeC -> MainC.Boot;
TestTimeC.Timer -> TOtimer.Timer;
TestTimeC.Leds -> LedsC;
}
//--------------------------------------------------------------------
// $Id: TestTimeC.nc Exp $
#include "Atm128Timer.h"
module TestTimeC {
uses interface HplAtm128Timer<uint8_t> as Timer;
uses interface Leds;
uses interface Boot;
}
implementation
{
event void Boot.booted()
{
call Timer.set(0xFFFF); // Test value
call Timer.setScale(1); // presacler
call Timer.start(); // start timer
}
async event void Timer.overflow()
{
call Leds.led2On(); // to check if the timer start
call Leds.led0Toggle(); //
}
}
It would be nice if someone can help me.
Thanks a lot
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help