Correct Teensy 4.1 PIT clock scaler
This commit is contained in:
parent
b8278e7ecb
commit
114e9b2c7d
|
@ -26,7 +26,7 @@ void initBoard()
|
||||||
* 48 * 1000000uS / PER_clock = 2uS
|
* 48 * 1000000uS / PER_clock = 2uS
|
||||||
*/
|
*/
|
||||||
CCM_CSCMR1 |= CCM_CSCMR1_PERCLK_CLK_SEL; // 24MHz
|
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);
|
attachInterruptVector(IRQ_PIT, PIT_isr);
|
||||||
NVIC_ENABLE_IRQ(IRQ_PIT);
|
NVIC_ENABLE_IRQ(IRQ_PIT);
|
||||||
|
|
Loading…
Reference in New Issue