Partager via


System Tick Timer Initialization

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

How to Develop an OEM Adaptation Layer | Implementing the OEMInit Function

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.