Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 Module Clock |
Module ClockModule Clock is the high-level interface to RTKernel-32's timer interrupt device driver. It supplies functions to convert timer ticks (RTKernel-32's type RTKDuration) to real time (seconds, etc.) and vice versa. In addition, it allows modifying the timer interrupt rate (if supported by the underlying driver). Module Clock is primarily concerned with timer ticks. However, it also knows timer units. Timer units define the granularity with which the timer interrupt intervals can be set. For example, the PC timer driver uses the PC's 8253 timer chip, which counts in intervals of 0.838 microseconds. Timer interrupt intervals can be specified as multiples of 0.838 microseconds. Thus, for this driver, the timer unit is 0.838 microseconds. The application interface to module Clock is given in include file Clock.h and documented in the RTKernel-32 Reference Manual.
|