#include <twl/scfg.h>
static inline void SCFG_SetCpuSpeed( SCFGCpuSpeed cpuSpeed );
| cpuSpeed | CPU frequency setting.SCFG_CPU_SPEED_1X: 67.03 MHz (equal to NITRO) SCFG_CPU_SPEED_2X: 134.06 MHz (double NITRO's speed) |
None.
Configures the operating frequency of the ARM9 CPU.
In TWL mode, the ARM9 CPU's operating frequency can be switched between 67.03 MHz (equal to NITRO) and 134.06 MHz (double speed).
Call this function with the setting value in cpuSpeed. If the value is the same as the current setting, this function does nothing and returns. Code runs on the ITCM when the switch occurs. Although a fixed dummy loop is required after the switch, developers do not need to be aware of this because it is performed inside this function.
In TWL mode, the frequency becomes double-speed when the process enters the NitroMain function. This setting is not changed even by the OS_Init function.
Note: This function is enabled only when running on TWL hardware.
However, because the system is designed so that there is no problem with calling this function on NITRO hardware, there is no need to detect the hardware and distinguish between systems. Calling this function on NITRO hardware has no effect on the operating frequency.
SCFG Overview
SCFG_GetCpuSpeed
2008/10/29 Revised the explanation about ARM9 operating frequency at initial operation.
2007/10/03 Initial version.
CONFIDENTIAL