diff --git a/examples/BANNER b/examples/hpm6e00evk/src/bin/BANNER similarity index 100% rename from examples/BANNER rename to examples/hpm6e00evk/src/bin/BANNER diff --git a/examples/hpm6e00evk/src/bin/blinky.rs b/examples/hpm6e00evk/src/bin/blinky.rs index 5ab18ad..a763069 100644 --- a/examples/hpm6e00evk/src/bin/blinky.rs +++ b/examples/hpm6e00evk/src/bin/blinky.rs @@ -2,7 +2,6 @@ #![no_std] use embedded_hal::delay::DelayNs; -use hal::pac; use hpm_hal::gpio::{Level, Output}; use riscv::delay::McycleDelay; use {defmt_rtt as _, hpm_hal as hal, panic_halt as _, riscv_rt as _}; diff --git a/examples/hpm6e00evk/src/bin/embassy_femc.rs b/examples/hpm6e00evk/src/bin/embassy_femc.rs index d076be2..05a8693 100644 --- a/examples/hpm6e00evk/src/bin/embassy_femc.rs +++ b/examples/hpm6e00evk/src/bin/embassy_femc.rs @@ -12,14 +12,17 @@ use hal::mode::Blocking; use hal::pac; use {defmt_rtt as _, hpm_hal as hal, riscv_rt as _}; -const BANNER: &str = include_str!("../../../BANNER"); +const BANNER: &str = include_str!("./BANNER"); static mut UART: Option> = None; macro_rules! println { ($($arg:tt)*) => { - if let Some(uart) = UART.as_mut() { - let _ = writeln!(uart, $($arg)*); + #[allow(unused_unsafe)] + unsafe { + if let Some(uart) = UART.as_mut() { + let _ = writeln!(uart, $($arg)*); + } } }; }