diff --git a/rp2040-hal/examples/blinky.rs b/rp2040-hal/examples/blinky.rs index a51c50c..3e53311 100644 --- a/rp2040-hal/examples/blinky.rs +++ b/rp2040-hal/examples/blinky.rs @@ -4,17 +4,15 @@ #![no_std] #![no_main] -use panic_halt as _; - use cortex_m_rt::entry; +use embedded_hal::digital::v2::OutputPin; +use panic_halt as _; +use rp2040_hal::prelude::*; #[link_section = ".boot2"] #[used] pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; -use embedded_hal::digital::v2::OutputPin; -use rp2040_hal::prelude::*; - #[entry] fn main() -> ! { let mut pac = rp2040_pac::Peripherals::take().unwrap(); diff --git a/rp2040-hal/examples/gpio_in_out.rs b/rp2040-hal/examples/gpio_in_out.rs index 77a9271..b162483 100644 --- a/rp2040-hal/examples/gpio_in_out.rs +++ b/rp2040-hal/examples/gpio_in_out.rs @@ -6,17 +6,15 @@ #![no_std] #![no_main] -use panic_halt as _; - use cortex_m_rt::entry; +use embedded_hal::digital::v2::{InputPin, OutputPin}; +use panic_halt as _; +use rp2040_hal::prelude::*; #[link_section = ".boot2"] #[used] pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; -use embedded_hal::digital::v2::{InputPin, OutputPin}; -use rp2040_hal::prelude::*; - #[entry] fn main() -> ! { let mut pac = rp2040_pac::Peripherals::take().unwrap();