![]() |
Synergy Software Package User's Manual
|
Functions | |
| void | bsp_clock_init (void) |
| Sets up system clocks. More... | |
| uint32_t | bsp_cpu_clock_get (void) |
| Returns frequency of CPU clock in Hz. More... | |
Functions in this file configure the system clocks based upon the macros in bsp_clock_cfg.h.
| void bsp_clock_init | ( | void | ) |
Sets up system clocks.
MOCO is default clock out of reset. Enable new clock if chosen. S124 has no PLL.
If the system clock has failed to start call the unrecoverable error handler.
MOCO, LOCO, and subclock do not have stabilization flags that can be checked.
Wait for clock source to stabilize
Set which clock to use for system clock and divisors for all system clocks.
If the system clock has failed to be configured properly call the unrecoverable error handler.
| uint32_t bsp_cpu_clock_get | ( | void | ) |
Returns frequency of CPU clock in Hz.
| Frequency | of the CPU in Hertz |