From 75cf17994fdc5357ac7a721c928b6ae98b2eebda Mon Sep 17 00:00:00 2001 From: QWS Date: Mon, 13 May 2024 19:48:23 +0800 Subject: [PATCH] In the start_xosc function, the frequency range is set twice. Remove the redundant one. --- embassy-rp/src/clocks.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/embassy-rp/src/clocks.rs b/embassy-rp/src/clocks.rs index bedb79464..fac2532ea 100644 --- a/embassy-rp/src/clocks.rs +++ b/embassy-rp/src/clocks.rs @@ -714,10 +714,6 @@ pub fn clk_rtc_freq() -> u16 { } fn start_xosc(crystal_hz: u32, delay_multiplier: u32) { - pac::XOSC - .ctrl() - .write(|w| w.set_freq_range(pac::xosc::vals::CtrlFreqRange::_1_15MHZ)); - let startup_delay = (((crystal_hz / 1000) * delay_multiplier) + 128) / 256; pac::XOSC.startup().write(|w| w.set_delay(startup_delay as u16)); pac::XOSC.ctrl().write(|w| {