
GBL_setFrequency
2-116
C Interface
Syntax
GBL_setFrequency( frequency );
Parameters
Uint32
frequency;
/* CPU frequency in KHz */
Return Value
Void
Reentrant
yes
Description
This function sets the value of the CPU frequency known to DSP/BIOS.
Note that GBL_setFrequency does not affect the PLL, and therefore has
no effect on the actual frequency at which the DSP is running. It is used
only to make DSP/BIOS aware of the DSP frequency you are using.
If you call GBL_setFrequency to update the CPU frequency known to
DSP/BIOS, you should follow the sequence shown in the CLK_reconfig
topic to reconfigure the timer.
The frequency must be an integer number of KHz.
If you enable the PWRM module, do not call GBL_setFrequency. When
you use frequency scaling, the PWRM module internally calls this API to
update the value known to DSP/BIOS.
Constraints and
Calling Context
❏
If you change the frequency known to DSP/BIOS, you should also
reconfigure the timer (with CLK_reconfig) so that the actual
frequency is the same as the frequency known to DSP/BIOS.
❏
Do not call this function if you use the PWRM module.
See Also
CLK_reconfig
GBL_getClkin
GBL_getFrequency
PWRM_changeSetpoint
GBL_setFrequency
Set frequency of the CPU in KHz