[Tinyos-help] A table of timers
Romain Thouvenin
romain.thouvenin at gmail.com
Fri Mar 30 09:16:20 PDT 2007
On 3/30/07, Philip Levis <pal at cs.stanford.edu> wrote:
> On Mar 30, 2007, at 6:32 AM, Romain Thouvenin wrote:
>
> But you can instantiate a VirtualizeTimerC with the number of entries
> you have in your routing table, and just wire to it. You can
> virtualize on top of a single underlying TimerMilliC, something like
> this:
>
>
> component new TimerMillic() as BaseTimer;
> component new VirtualizeTimerC as RoutingTimers(TMilli,
> NUM_ROUTING_ENTRIES);
>
> RoutingTableC.Timer -> RoutingTimers;
>
> Phil
>
It works perfectly, thanks !
Romain
More information about the Tinyos-help
mailing list