diff --git a/Cargo.toml b/Cargo.toml index 3f33a74..4f47800 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,20 +7,19 @@ version = "0.1.0" cortex-m = "0.7" cortex-m-rt = "0.7" embedded-hal = { version = "0.2.5", features = ["unproven"] } -embedded-time = "0.12" defmt = "0.3" defmt-rtt = "0.3" panic-probe = { version = "0.3", features = ["print-defmt"] } # We're using a Pico by default on this template -rp-pico = "0.4" +rp-pico = "0.5" # but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead # sparkfun-pro-micro-rp2040 = "0.3" # If you're not going to use a Board Support Package you'll need these: -# rp2040-hal = { version="0.5", features=["rt"] } +# rp2040-hal = { version="0.6", features=["rt"] } # rp2040-boot2 = "0.2" # cargo build/run diff --git a/src/main.rs b/src/main.rs index d781391..5e08c60 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,6 @@ use bsp::entry; use defmt::*; use defmt_rtt as _; use embedded_hal::digital::v2::OutputPin; -use embedded_time::fixed_point::FixedPoint; use panic_probe as _; // Provide an alias for our BSP so we can switch targets quickly. @@ -45,7 +44,7 @@ fn main() -> ! { .ok() .unwrap(); - let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer()); + let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz()); let pins = bsp::Pins::new( pac.IO_BANK0,