diff --git a/rp2040-hal/examples/adc.rs b/rp2040-hal/examples/adc.rs index 773de7e36..dadaa28fa 100644 --- a/rp2040-hal/examples/adc.rs +++ b/rp2040-hal/examples/adc.rs @@ -20,7 +20,7 @@ use rp2040_hal as hal; // Some traits we need use core::fmt::Write; use embedded_hal::adc::OneShot; -use fugit::RateExtU32; +use hal::fugit::RateExtU32; use rp2040_hal::Clock; // UART related types diff --git a/rp2040-hal/examples/i2c.rs b/rp2040-hal/examples/i2c.rs index dc2135aa7..94591b39e 100644 --- a/rp2040-hal/examples/i2c.rs +++ b/rp2040-hal/examples/i2c.rs @@ -13,13 +13,13 @@ // be linked) use panic_halt as _; -// Some traits we need -use embedded_hal::blocking::i2c::Write; -use fugit::RateExtU32; - // Alias for our HAL crate use rp2040_hal as hal; +// Some traits we need +use embedded_hal::blocking::i2c::Write; +use hal::fugit::RateExtU32; + // A shorter alias for the Peripheral Access Crate, which provides low-level // register access and a gpio related types. use hal::{ diff --git a/rp2040-hal/examples/rom_funcs.rs b/rp2040-hal/examples/rom_funcs.rs index fe81839ca..1b335a05c 100644 --- a/rp2040-hal/examples/rom_funcs.rs +++ b/rp2040-hal/examples/rom_funcs.rs @@ -22,7 +22,7 @@ use hal::pac; // Some traits we need use core::fmt::Write; -use fugit::RateExtU32; +use hal::fugit::RateExtU32; use hal::Clock; // UART related types diff --git a/rp2040-hal/examples/spi.rs b/rp2040-hal/examples/spi.rs index eb212dc2c..c85f3edde 100644 --- a/rp2040-hal/examples/spi.rs +++ b/rp2040-hal/examples/spi.rs @@ -21,8 +21,8 @@ use rp2040_hal as hal; // Some traits we need use cortex_m::prelude::*; -use fugit::RateExtU32; -use rp2040_hal::clocks::Clock; +use hal::clocks::Clock; +use hal::fugit::RateExtU32; // A shorter alias for the Peripheral Access Crate, which provides low-level // register access diff --git a/rp2040-hal/examples/spi_dma.rs b/rp2040-hal/examples/spi_dma.rs index b0c1b295d..37bf3b75e 100644 --- a/rp2040-hal/examples/spi_dma.rs +++ b/rp2040-hal/examples/spi_dma.rs @@ -12,8 +12,8 @@ use cortex_m::singleton; use cortex_m_rt::entry; use embedded_hal::digital::v2::OutputPin; -use fugit::RateExtU32; use hal::dma::{bidirectional, DMAExt}; +use hal::fugit::RateExtU32; use hal::pac; use panic_halt as _; use rp2040_hal as hal; diff --git a/rp2040-hal/examples/uart.rs b/rp2040-hal/examples/uart.rs index 178979eae..4211186d7 100644 --- a/rp2040-hal/examples/uart.rs +++ b/rp2040-hal/examples/uart.rs @@ -24,7 +24,7 @@ use hal::pac; // Some traits we need use core::fmt::Write; -use fugit::RateExtU32; +use hal::fugit::RateExtU32; use rp2040_hal::clocks::Clock; // UART related types diff --git a/rp2040-hal/examples/uart_dma.rs b/rp2040-hal/examples/uart_dma.rs index 35dc770a1..edc30c2a1 100644 --- a/rp2040-hal/examples/uart_dma.rs +++ b/rp2040-hal/examples/uart_dma.rs @@ -24,7 +24,7 @@ use rp2040_hal as hal; use hal::{dma::DMAExt, pac}; // Some traits we need -use fugit::RateExtU32; +use hal::fugit::RateExtU32; use rp2040_hal::clocks::Clock; // UART related types diff --git a/rp2040-hal/examples/vector_table.rs b/rp2040-hal/examples/vector_table.rs index b1c083069..fbf52659c 100644 --- a/rp2040-hal/examples/vector_table.rs +++ b/rp2040-hal/examples/vector_table.rs @@ -22,7 +22,7 @@ use hal::pac; use core::cell::RefCell; use critical_section::Mutex; use embedded_hal::digital::v2::ToggleableOutputPin; -use fugit::MicrosDurationU32; +use hal::fugit::MicrosDurationU32; use pac::interrupt; use rp2040_hal::clocks::Clock; use rp2040_hal::timer::Alarm; diff --git a/rp2040-hal/examples/watchdog.rs b/rp2040-hal/examples/watchdog.rs index 5444fbc49..ba62ecf73 100644 --- a/rp2040-hal/examples/watchdog.rs +++ b/rp2040-hal/examples/watchdog.rs @@ -23,7 +23,7 @@ use hal::pac; // Some traits we need use embedded_hal::digital::v2::OutputPin; use embedded_hal::watchdog::{Watchdog, WatchdogEnable}; -use fugit::ExtU32; +use hal::fugit::ExtU32; use rp2040_hal::clocks::Clock; /// The linker will place this boot block at the start of our program image. We