That code sample looks OK, you should be able to put it in any .nc file.
Is that what you are asking?
MS
Hofmann Marcel T&A.E_BB.0501 wrote:
> Hellou
>
> I have a mote mica2 with a atmega128. I want to use SPI, RS232, Timer .....
> But where can i set the Interruptvector for the Interrupts. I mean
> tinyos-2.x/tos/chips/atm128/timer/HplAtm128Timer0AsyncP.nc us for the
> Interrupt "SIG_OVERFLOW0". Where can i find this or where is this set?
>
> example from HplAtm128Timer0AsyncP.nc:
>
> default async event void Timer.overflow() { }
> AVR_ATOMIC_HANDLER(SIG_OVERFLOW0) {
> stabiliseTimer0();
> signal Timer.overflow();
> }
>
> I hope someone can help me, thanks.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help