System Tick Timer Initialization (Windows CE 5.0)
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
Send Feedback on this topic to the authors