Hi!

On Fri, 28 Aug 2009, [email protected] wrote:

> Hi,
>
> I was wondering:
>
> Whats the maximum number of timers one can use in TinyOS? And do I
> need to do this some special way, or can I just do
>
> components new Timer;

The declaration is something like this:
        components new TimerMilliC() as Timer0;

A good example of this is in the apps/Blink. The maximum number is 256 
(you can take a look at tos/system/TimerMilliC.nc and 
tos/system/TimerMilliP.nc to see the implementations). Various components 
already allocate some so not all 256 can be used by a user applications.

All the best!
Razvan ME

> (or sth. like this) as many times as I need it and TinyOS will take
> care of the rest??
> If I can't do the above, how do I create multiple timers correctly?
>
> Thx,
>
> Tobias
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to