teensy40: fix PIT clock, which actually uses 24 MHz OSC

see: https://forum.pjrc.com/threads/63979-What-peripherals-are-affected-by-the-undocumented-24-MHz-OSC-circuit-on-Teensy-4-0
This commit is contained in:
ardnew
2020-10-22 20:58:42 -05:00
committed by Ron Evans
parent f93b28057a
commit 0d9c46b59e
2 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
// Core, bus, and peripheral clock frequencies (Hz)
const (
CORE_FREQ = 600000000 // 600 MHz
OSC_FREQ = 100000 // 100 kHz (see note below)
SYSTICK_FREQ = 100000 // 100 kHz (see note below)
_ // -----------
AHB_FREQ = 600000000 // 600 MHz
CAN_FREQ = 40000000 // 40 MHz
@@ -65,7 +65,7 @@ var (
}
)
// Note about OSC_FREQ from Teensyduino (cores/teensy4/startup.c):
// Note about SYSTICK_FREQ from Teensyduino (cores/teensy4/startup.c):
//
// | ARM SysTick is used for most Ardiuno timing functions, delay(), millis(),
// | micros(). SysTick can run from either the ARM core clock, or from an