Code from liamg with few edits to init seria comml and output counter.
Fork of MKL05CLK by
Diff: head.h
- Revision:
- 3:985a40825e8d
- Parent:
- 2:1328c14aca66
--- a/head.h Fri Apr 11 02:34:27 2014 +0000 +++ b/head.h Sat Apr 12 00:54:25 2014 +0000 @@ -1,6 +1,10 @@ - +//#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 MCG_C1 (*(volatile unsigned long *)(0x40064001)) // MCG Register \ No newline at end of file +#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)) \ No newline at end of file