/* Configure the controllers clock system. 
| Core | 120 MHz | 4 MHz | | System | 120 MHz | 4 MHz | | Bus | 60 MHz | 4 MHz | | FlexBus | 50 MHz | 800 kHz | | Flash | 25 MHz | 4 MHz |  */
static void cpu_clock_init(void)
/* Configure the controllers clock system. 
| Core | 120 MHz | 4 MHz | | System | 120 MHz | 4 MHz | | Bus | 60 MHz | 4 MHz | | FlexBus | 50 MHz | 800 kHz | | Flash | 25 MHz | 4 MHz |  */
static void cpu_clock_init(void)
{
    SIM->CLKDIV1 = (uint32_t)SIM_CLKDIV1_60MHZ;
    SIM->SCGC5 |= SIM_SCGC5_PORTA_MASK;
    PORTA->PCR[18] &= ~(PORT_PCR_ISF_MASK | PORT_PCR_MUX(0x07));
    kinetis_mcg_set_mode(KINETIS_MCG_PEE);
}