/* Set clock prescalers to safe values. 
This should be done before switching to FLL/PLL as clock source to ensure that all clocks remain within the specified limits.  */
static void set_safe_clock_dividers(void)
/* Set clock prescalers to safe values. 
This should be done before switching to FLL/PLL as clock source to ensure that all clocks remain within the specified limits.  */
static void set_safe_clock_dividers(void)
{
    SIM->CLKDIV1 = (
                       SIM_CLKDIV1_OUTDIV1(CONFIG_CLOCK_K60_SYS_DIV) |
                       SIM_CLKDIV1_OUTDIV2(CONFIG_CLOCK_K60_BUS_DIV) |
                       SIM_CLKDIV1_OUTDIV3(CONFIG_CLOCK_K60_FB_DIV) |
                       SIM_CLKDIV1_OUTDIV4(CONFIG_CLOCK_K60_FLASH_DIV));
}