From 4ba9d2b28018f814f71b6578ceb451c72a8b71e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Wed, 11 Apr 2018 19:55:51 +0200 Subject: [PATCH] teensy31: Fix off-by-1 error in clock dividers The comment says the config should yield 24 MHz flash clock, but the settings were configured to divide-by-3. (48 MHz / 3) --- boards/teensy31/include/periph_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/teensy31/include/periph_conf.h b/boards/teensy31/include/periph_conf.h index baf56935ce..6c6de07976 100644 --- a/boards/teensy31/include/periph_conf.h +++ b/boards/teensy31/include/periph_conf.h @@ -44,7 +44,7 @@ static const clock_config_t clock_config = { * should have better accuracy than the internal slow clock, and lower power * consumption than using the 16 MHz crystal and the OSC0 module */ .clkdiv1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(0) | - SIM_CLKDIV1_OUTDIV3(2) | SIM_CLKDIV1_OUTDIV4(2), + SIM_CLKDIV1_OUTDIV3(1) | SIM_CLKDIV1_OUTDIV4(1), .default_mode = KINETIS_MCG_MODE_FEE, .erc_range = KINETIS_MCG_ERC_RANGE_LOW, /* Input clock is 32768 Hz */ .fcrdiv = 0, /* Fast IRC divide by 1 => 4 MHz */