From e7bd234a0daeff4c16ef80f1529aa1f9dd500697 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka <gniibe@fsij.org> Date: Thu, 30 Jun 2016 16:16:39 +0900 Subject: Update for MKL27Z --- mcu/clk_gpio_init-mkl27z.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mcu/clk_gpio_init-mkl27z.c') diff --git a/mcu/clk_gpio_init-mkl27z.c b/mcu/clk_gpio_init-mkl27z.c index 894a8ad..d126d94 100644 --- a/mcu/clk_gpio_init-mkl27z.c +++ b/mcu/clk_gpio_init-mkl27z.c @@ -38,7 +38,7 @@ struct MCG { uint8_t reserved2[15]; /* */ volatile uint8_t MC; /* MCG Miscellaneous Control Register */ }; -static struct MCG *const MCG = (struct MCG *const)0x40064000; +static struct MCG *const MCG = (struct MCG *)0x40064000; struct USB_CLK_RECOVER { volatile uint8_t CTRL; /* USB Clock */ @@ -51,7 +51,7 @@ struct USB_CLK_RECOVER { /* interrupt status */ }; static struct USB_CLK_RECOVER *const USB_CLK_RECOVER = - (struct USB_CLK_RECOVER *const)0x40072140; + (struct USB_CLK_RECOVER *)0x40072140; static void __attribute__((used)) clock_init (void) @@ -71,7 +71,7 @@ clock_init (void) SIM->SCGC4 = (1 << 18); /* Enable USB FS clock */ SIM->SCGC5 = (1 << 10); /* Enable Port B clock */ - SIM->SCGC6 = (1 << 25); /* Enable TPM1 clock */ + SIM->SCGC6 = (1 << 25)|1; /* Enable TPM1 clock */ SIM->COPC = 0; /* COP disabled */ /* Crystal-less USB setup. */ -- cgit v1.2.3