mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-02-23 23:57:43 +11:00
Cleanup wacky imports in examples
This commit is contained in:
parent
2c3a0956fa
commit
2e5c1fc0e3
2 changed files with 6 additions and 10 deletions
rp2040-hal/examples
|
@ -4,17 +4,15 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use panic_halt as _;
|
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
|
use panic_halt as _;
|
||||||
|
use rp2040_hal::prelude::*;
|
||||||
|
|
||||||
#[link_section = ".boot2"]
|
#[link_section = ".boot2"]
|
||||||
#[used]
|
#[used]
|
||||||
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
|
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
|
||||||
|
|
||||||
use embedded_hal::digital::v2::OutputPin;
|
|
||||||
use rp2040_hal::prelude::*;
|
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
let mut pac = rp2040_pac::Peripherals::take().unwrap();
|
let mut pac = rp2040_pac::Peripherals::take().unwrap();
|
||||||
|
|
|
@ -6,17 +6,15 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use panic_halt as _;
|
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
|
use embedded_hal::digital::v2::{InputPin, OutputPin};
|
||||||
|
use panic_halt as _;
|
||||||
|
use rp2040_hal::prelude::*;
|
||||||
|
|
||||||
#[link_section = ".boot2"]
|
#[link_section = ".boot2"]
|
||||||
#[used]
|
#[used]
|
||||||
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
|
pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER;
|
||||||
|
|
||||||
use embedded_hal::digital::v2::{InputPin, OutputPin};
|
|
||||||
use rp2040_hal::prelude::*;
|
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
let mut pac = rp2040_pac::Peripherals::take().unwrap();
|
let mut pac = rp2040_pac::Peripherals::take().unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue