From ad102fe61d190779d45e09894193bebbb25dce23 Mon Sep 17 00:00:00 2001 From: Andelf Date: Mon, 1 Jan 2024 15:38:39 +0800 Subject: [PATCH] fix: compile error, wrong import --- examples/hardfault.rs | 1 + examples/serial.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/hardfault.rs b/examples/hardfault.rs index 2dfd73f..5d33608 100644 --- a/examples/hardfault.rs +++ b/examples/hardfault.rs @@ -12,6 +12,7 @@ use hal::rtc::{DateTime, Rtc}; use hal::sysctl::Config; use hal::uart::UartTx; use hal::{pac, peripherals, Peripherals}; +use qingke::riscv; use {ch58x_hal as hal, panic_halt as _}; static mut SERIAL: Option> = None; diff --git a/examples/serial.rs b/examples/serial.rs index 1631680..6cde995 100644 --- a/examples/serial.rs +++ b/examples/serial.rs @@ -4,6 +4,7 @@ use core::arch::{asm, global_asm}; use core::fmt::Write; use core::writeln; +use qingke::riscv; use embedded_hal_1::delay::DelayNs; use hal::dma::NoDma;