Skip to content

Commit

Permalink
Use fugit re-export in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Oct 27, 2023
1 parent 414367b commit 81ea618
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion rp2040-hal/examples/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions rp2040-hal/examples/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/rom_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rp2040-hal/examples/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/spi_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/uart_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/vector_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/watchdog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81ea618

Please sign in to comment.