|
From: Adam D. <ad...@si...> - 2008-02-13 06:37:44
|
Perico delospalotes wrote: > Hi, > > I was looking at the contiki timers. I have seen that you use one timer in > the xmac implementation called rtimer. I have seen that you use a variable > called RTIMER_ARCH_SECOND to set this timer. I looked for the definition of > this constant and I didn't find the units. Neither I saw the units in the > rtimer definition. Is this time miliseconds? It is defined as whatever clock source is used to drive it. The only constant is the RTIMER_ARCH_SECOND. I.e., if you have a hardware timer that runs at 32768Hz, the rtimer units is 1/32768 s and RTIMER_ARCH_SECOND is 32768. If your hw timer runs at 4 Hz, the unit is 1/4 seconds an RTIMER_ARCH_SECOND is 4 (although such a low setting would not work with the current X-MAC code). /adam -- Adam Dunkels <ad...@si...> http://www.sics.se/~adam/ |