|
Page date Wed Feb 16 12:48:18 2011 . | Improve this page |
OSTimerTicks
Description
Initialize the internal members.
Parameters
:* none
Description
Transform the microseconds number into ticks number. However two issues should be considered: first, the result is approximative, the higher the tick rate the better the approximation, and second, the result should fit the range of OSTimerTicks_t, otherwise results are erroneous. To increase precission it is recommended to define the parameter of this macro as long (by using the L suffix, like 15000L).
Parameters
:* micros - input, the number of msecs
Return value
:* n - the number of ticks
Description
This interrupt service routine is called each time a tick expire; it increments the current ticks number, and calls the OSTimer::interruptTick.
Parameters
:* none
Return value
:* none