SCFG_GetCpuSpeed

Syntax

#include <twl/scfg.h>
static inline SCFGCpuSpeed SCFG_GetCpuSpeed( void );
  

Arguments

None.

Return Values

The operating speed configured for the ARM9 CPU.
SCFG_CPU_SPEED_1X: 67.03 MHz (equal to NITRO)
SCFG_CPU_SPEED_2X: 134.06 MHz (double NITRO's speed)

Description

Gets the current frequency configured for the ARM9-CPU.

Although only TWL hardware has an SCFG block, this function returns the correct value (SCFG_CPU_SPEED_1X) even if executed on NITRO hardware.

See Also

SCFG Overview
SCFG_SetCpuSpeed

Revision History

2007/09/04 Initial version.


CONFIDENTIAL