Main Code
B-3
Switching Clock Modes
B.2 Main Code
The following is the main code for switching modes:
main()
{
…
…
..
// Enable Icache
INT_SetSupervisor();
ARM_WRITE_REG1(I_bit);
INT_SetUser();
// Enable DSP Clock
MCU_CKCTL = 0x2000;
switch_mode(CLOCK_MODE_SYNC_SCALE);
// Passing in 0x1000
…
.
…
.
}