Share via


Timer (OAL) (Compact 2013)

3/26/2014

The Windows Embedded Compact scheduler relies on a system timer to provide system ticks and other actions and information related to time. The header file that defines the OAL timer module interface is %_WINCEROOT%\Platform\Common\Src\Inc\oal_timer.h. The timer functions are linked into oal.lib.

The following are examples of timer code locations:

  • %_WINCEROOT%\Platform\Common\Src\Common\Timer
  • %_WINCEROOT%\Platform\Common\Src\SOC\<SOC Name>\OAL\Timer
  • %_WINCEROOT%\Platform\Common\Src\<CPU Family>\Common\Timer

The following table lists the main timer functions. For information about other functions related to timer activity, see Timer Reference. The common timer code that is provided with Windows Embedded Compact contains CPU-family-specific implementations that you may be able to use with little modification.

Purpose

Function name

Initializes timer

OALTimerInit, OALTimerInitCount

Handles timer interrupts

OALTimerIntrHandler

Gets timer information

OALTimerGetCount, OALTimerGetCompare, OALGetTickCount

Sets timer

OALTimerSetCompare, OALTimerUpdate, OALTimerRecharge

See Also

Concepts

OAL Code Overview