sys_clock.cpp File Reference
Include dependency graph for sys_clock.cpp:

Functions | |
void | sys_clock_configure () |
unsigned int | sys_get_cpu_clock () |
Function Documentation
void sys_clock_configure | ( | ) |
< Not used (reserved)
Disconnect PLL0 (in case bootloader uses PLL0) Choose internal oscillator going forward (for now)
Connect PLL0 as our clock source. Right before we make the PLL clock as CPU clock, set our divider so our CPU clock doesn't go out of range once the faster PLL clock is established.
unsigned int sys_get_cpu_clock | ( | ) |
- Returns
- actual System clock as calculated from PLL and Oscillator selection
- Note
- The SYS_CFG_DESIRED_CPU_CLK macro defines "Desired" CPU clock, and doesn't guarantee this clock rate. This function returns actual CPU clock of the system.