[Tinyos-help] Main.StdControl -> TimerC;

Aditya Bhave adityay.bhave at gmail.com
Fri May 26 00:59:43 PDT 2006


I had a similar doubt. In my project in fact I never called TimerC.init().
In fact at the time, I wsnt even aware that TimerC provides StdControl
interface. In the tutorials, it was simply shown to call Timer.start() and
stop() and wire Timer to TimerC. However I never faced any problems with
using timers (I used 5 instances of timers).

Whats the purpose of TimerC providing StdControl and where it should be
used?

On 5/26/06, Andres Aberasturi <benytokmelas at hotmail.com> wrote:
>
> Hi all,
>
> We are working with micaz motes. We have noticed that there is a line in a
> lot of places like:
>
> Main.StdControl -> TimerC;
>
> That means StdControl interface is called from Main (actually from
> Realmain), is not it?
>
> We know StdControl.init(), which TimerC provides, should be called to
> start
> the clock, but we could write:
>
> AppM.TimerControl -> TimerC;  (if we have written StdControl as
> TimerControl)
>
> and then we could write TimerControl.init() in our application module,
> could
> not we? Why is that?
>
> We are grateful for any help or clue.
>
> Thanks in advance,
>
> Andres
>
> _________________________________________________________________
> Moda para esta temporada. Ponte al día de todas las tendencias.
> http://www.msn.es/Mujer/moda/default.asp
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
regards,
Aditya Bhave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060526/2884ea8c/attachment.htm


More information about the Tinyos-help mailing list