From f5877d7b7e2d9eaf33de055c1343c0bf9b308f10 Mon Sep 17 00:00:00 2001 From: Jeremy Grosser Date: Wed, 31 Jan 2024 09:18:21 -0800 Subject: [PATCH] Don't disable ROSC after switching to XOSC in RP.Clock.Initialize. Fixes #55 --- src/drivers/rp-clock.adb | 1 - 1 file changed, 1 deletion(-) diff --git a/src/drivers/rp-clock.adb b/src/drivers/rp-clock.adb index 7366d35..f275ec4 100644 --- a/src/drivers/rp-clock.adb +++ b/src/drivers/rp-clock.adb @@ -124,7 +124,6 @@ package body RP.Clock is Reference := XOSC_Frequency; RP2040_SVD.XOSC.XOSC_Periph.STARTUP.DELAY_k := RP2040_SVD.XOSC.STARTUP_DELAY_Field (XOSC_Startup_Delay / 256); Set_SYS_Source (XOSC); - Disable (ROSC); Init_PLLs (XOSC_Frequency); else Reference := ROSC_Frequency;