you can do that using a for/while loop and a variable that you update  
every time the timer is fired.

Sent using an iPod.



El 19/08/2009, a las 21:59, Daniel Souza Coelho <[email protected]>  
escribió:

> Hi friends
>
> I'm begining studing NesC and I have 1 doubt about Timer interface:
>
> I know I can declare a Timer using one of these ways:
>
>    Timer.start(TIMER_ONE_SHOT, 3000) - 1 execution
>
>    Timer.start(TIMER_REPEAT, 3000) - loop infinite
>
> I wonder if there is a third way that would make the
> timer to run a number of times greater than 1 and less than
> infinity, for example, 2, 3, 4, 50 times. I've heard it's possible  
> using a counter, but I don't know how to do it.
> Could anybory help me?
> It's urgente
>
> Thanks vey much and apologize my english :)
> _______________________________________________
> 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

Reply via email to