Hello,
I have two issues I want to report:
I was working recently with timers and noticed that /aps/test/TestAlarm
is not Compiling on Micaz because AlarmTMilli is not implemented.
I have a project where I need very accurate timing. As the Alarm as
seen above does not seem to work I wrote my own AVR code
TCNT3=0x0000; //Timer3 storage
TCCR3A = 0x00; // no external compare
TCCR3B = 0x04; // F_ck = 7.3728Mhz / 256
OCR3A= 0x0050; //The time when the interrupt shall fire
ETIMSK= 0x05; // enable OutputCompareA&CInterupt
SREG= SREG || 0x80; //Enable global interrupts
call Leds.led0On();
Then I wait for an interrupt via
AVR_ATOMIC_HANDLER (SIG_OUTPUT_COMPARE3A){
call Leds.led0Off();
}
But nothing happens the interrupt handler is not called.
If I use
TOSH_SIGNAL(SIG_OUTPUT_COMPARE3A)
As I found it for Tinyos1
Then I get a compilation error of:
warning: declaration of `__vector_26' shadows global declaration
warning: location of shadowed declaration
old-style parameter lists not supported
warning: return-type defaults to `int’
Any help/ideas?
Reinhard
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help