Share via


System Tick Timer Initialization

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

The system tick timer should be initialized in OEMInit with a call to InitClock, also defined in the OAL.

The following list shows the suggested tasks for the InitClock function:

  • Determine what timer interrupt source to use for the system tick. The timer interrupt source depends on the CPU and available external sources.
  • Initiate the 1-millisecond (ms) tick interval required by the kernel by configuring the timer and unmasking the interrupt.

If the target device contains high-resolution timers, OEMInit should also set the pQueryPerformanceCounter and pQueryPerformanceFrequency global variables. For more information, see Supporting High-Resolution Timers.

See Also

Tasks

How to Develop an OEM Adaptation Layer
Implementing the OEMInit Function