From a8c902f9e979b0ff1cf8c65aaeae06d8ac83c25e Mon Sep 17 00:00:00 2001 From: Pieter Staal Date: Tue, 31 Dec 2024 10:48:10 +0100 Subject: [PATCH] Remove XOSC setup from example --- rp2040-hal-examples/src/bin/gpin.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rp2040-hal-examples/src/bin/gpin.rs b/rp2040-hal-examples/src/bin/gpin.rs index d6499104..9d37174c 100644 --- a/rp2040-hal-examples/src/bin/gpin.rs +++ b/rp2040-hal-examples/src/bin/gpin.rs @@ -22,7 +22,7 @@ use rp2040_hal::clocks::ClockSource; use rp2040_hal as hal; // Necessary HAL types -use hal::{clocks::ClocksManager, gpin::GpIn0, gpio, xosc::setup_xosc_blocking, Clock, Sio}; +use hal::{clocks::ClocksManager, gpin::GpIn0, gpio, Clock, Sio}; // A shorter alias for the Peripheral Access Crate, which provides low-level // register access @@ -38,8 +38,6 @@ pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER_GENERIC_03H; // The external clock provided to GPIO pin 20. const GPIN_EXTERNAL_CLOCK_FREQ_HZ: u32 = 1_000_000u32; -// Frequency of the external crystal on the board. This value works for an RPi Pico. -const EXTERNAL_XTAL_FREQ_HZ: u32 = 12_000_000u32; /// Entry point to our bare-metal application. /// @@ -54,8 +52,6 @@ fn main() -> ! { let sio = Sio::new(pac.SIO); - let _xosc = setup_xosc_blocking(pac.XOSC, EXTERNAL_XTAL_FREQ_HZ.Hz()).unwrap(); - let pins = gpio::Pins::new( pac.IO_BANK0, pac.PADS_BANK0,