From 114e9b2c7d9b6df64d0d2b21b40c2b8dfc9adc2d Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Fri, 16 Sep 2022 17:52:59 +1000 Subject: [PATCH] Correct Teensy 4.1 PIT clock scaler --- speeduino/board_teensy41.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino/board_teensy41.ino b/speeduino/board_teensy41.ino index b3476244..ae84a2b2 100644 --- a/speeduino/board_teensy41.ino +++ b/speeduino/board_teensy41.ino @@ -26,7 +26,7 @@ void initBoard() * 48 * 1000000uS / PER_clock = 2uS */ CCM_CSCMR1 |= CCM_CSCMR1_PERCLK_CLK_SEL; // 24MHz - CCM_CSCMR1 |= CCM_CSCMR1_PERCLK_PODF(0b110000); //Prescale to 48 + CCM_CSCMR1 |= CCM_CSCMR1_PERCLK_PODF(0b101111); //Prescale to 48 attachInterruptVector(IRQ_PIT, PIT_isr); NVIC_ENABLE_IRQ(IRQ_PIT);