diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-30 16:16:39 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-30 16:16:39 +0900 |
commit | e7bd234a0daeff4c16ef80f1529aa1f9dd500697 (patch) | |
tree | 2430db3ff1a03eb62d61e0b64a99389e1a2c6a7d /mcu/clk_gpio_init-mkl27z.c | |
parent | c71a24ddcb22b8ba5d1fb45d1393838d1110b1b5 (diff) |
Update for MKL27Z
Diffstat (limited to 'mcu/clk_gpio_init-mkl27z.c')
-rw-r--r-- | mcu/clk_gpio_init-mkl27z.c | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |