[Tinyos-help] A table of timers

Romain Thouvenin romain.thouvenin at gmail.com
Fri Mar 30 06:32:42 PDT 2007


Hello,

To implement a routing table, I need a number of timers for each
entry. I may have missed something obvious, but I am not sure about
how to do that.

At first, I tried to wire all the parameterized interfaces of
HilTimerMilliC, with something like :
MyTable { uses interface Timer[uint8_t id]; }
and :
MyTable.Timer -> HilTimerMilliC;

This compiles but doesn't seem to work. And I don't want to wire all
the timers by hand...

I can't see any trick to do that simply. The only solution I can think
of is adapting VirtualizeTimerC to my needs so that I could use it
without all the wirings.

I would be very glad to here some suggestions from you, or being
reminded an obvious solution.

Thanks for your help,
Romain


More information about the Tinyos-help mailing list