Hi Nicola and Paul, VirutalizeTimerC layers 255 independent timers on top of the lower layer hardware timer resources
The platform wiring takes care of the wiring. From application code using something like the following works well: I have code that uses a timer... uses interface Timer<TMilli> as GPSTimer; usage is like you'd expect. call GPSTimer.startOneShot(dt); This timer interface is wired into the system via VirtualizeTimerC that then is wired via platform code to the actual underlying hardware. The virtualizer keeps track of an array of timers and sets the hardware up to fire for the next one to go in time. Virtualize provides for 255 timers. TEP102 gives the fouundaton but to figure out how exactly it works one needs to follow the code referenenced in the TEP. hope this helps. eric p.s. Paul what s HTH mean? On Mon, Jul 28, 2008 at 9:07 AM, Paul Stickney <[EMAIL PROTECTED]> wrote: > For TinyOS 2.x see VirtualizeTimerC. > I believe `new TimerMilliC()`, has the same affect, but allows a > different way to wire. > There is a different between hardware-level HPL/HAL timers and the > exposed software timers in the HIL. > > HTH, > Paul > > On Mon, Jul 28, 2008 at 1:38 AM, Nicola Wegner > <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > > > just a short question to the micaz platform. Is the number of timers I > > can use limited? I read in TEP102 that there are only three compare > > registers for each of the 16-bit timers. Does this mean that I can use > > only 6 timers at a time? Or does TinyOS provide some kind of > > virtualization layer that creates virtual Timers? > > > > Thanks > > > > Nicola > > _______________________________________________ > > 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 > -- Eric B. Decker Senior (over 50 :-) Researcher Autonomous Systems Lab Jack Baskin School of Engineering UCSC
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
