Поделиться через


OEMIdle (Windows Embedded CE 6.0)

1/5/2010

This function is called by the kernel to place the CPU in the idle state when there are no threads ready to run.

Syntax

void OEMIdle(
  DWORD dwIdleParam 
); 

Parameters

  • dwIdleParam
    [in] Used by MIPS CPU only. Base value for program status register (PSR) to allow interrupts to be enabled.

Return Value

None.

Remarks

Exceptions are blocked when this routine is called and must not be re-enabled unless the function is going to return immediately.

OEMIdle should place the CPU into a reduced power state and stop it. It is important to be able to resume execution quickly upon receiving an interrupt.

For performance management data, OEMIdle can track the time it is being run by using the curridlelow and curridlehigh kernel global variables.

This function takes a parameter that is only used by the MIPS CPU and that is undefined for other CPUs. It is a base value for the PSR to allow interrupts to be enabled.

Requirements

Header Developer Implemented
Library OEMMain.lib or OEMMain_StaticKITL.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Required OAL Functions
curridlelow
curridlehigh
OEMGetRealTime
OEMPowerOff

Concepts

Enabling Power Management