Skip to content

Commit

Permalink
fix(ci): compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jul 1, 2024
1 parent 0881ce5 commit a701cce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion examples/hpm6e00evk/src/bin/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _};
Expand Down
9 changes: 6 additions & 3 deletions examples/hpm6e00evk/src/bin/embassy_femc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<hal::uart::Uart<'static, Blocking>> = 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)*);
}
}
};
}
Expand Down

0 comments on commit a701cce

Please sign in to comment.