Code from liamg with few edits to init seria comml and output counter.

Dependencies:   mbed

Fork of MKL05CLK by Liam G

head.h

Committer:
donoman
Date:
2014-05-29
Revision:
4:322eeda5453b
Parent:
3:985a40825e8d

File content as of revision 4:322eeda5453b:

//#head.h

#define SIM_SDID              (*(volatile unsigned long *)(0x40048024)) // Kinetis ID register
#define PORTC_PCR3            (*(volatile unsigned long *)(0x4004B00C)) // PORTC_PCR3 Mux
#define SIM_SOPT2             (*(volatile unsigned long *)(0x40048004)) // SIM Option Mux      
#define SIM_SCGC5             (*(volatile unsigned long *)(0x40048038)) // SIM Option Mux            
      
#define MCG_C1                (*(volatile unsigned char *)(0x40064000)) // MCG Register 
#define MCG_C2                (*(volatile unsigned char *)(0x40064001))
#define MCG_SC                (*(volatile unsigned char *)(0x40064008))