diff --git a/src/machine/machine_rp2.go b/src/machine/machine_rp2.go index d24ef12613..a468fb6ba0 100644 --- a/src/machine/machine_rp2.go +++ b/src/machine/machine_rp2.go @@ -57,6 +57,12 @@ func machineInit() { // Peripheral clocks should now all be running unresetBlockWait(RESETS_RESET_Msk) + + // RP2350 only + // Configure tick generator source for TIMER0 + rp.TICKS.SetTIMER0_CTRL_ENABLE(0) + rp.TICKS.SetTIMER0_CYCLES(12) + rp.TICKS.SetTIMER0_CTRL_ENABLE(1) } //go:linkname ticks runtime.machineTicks