diff --git a/services/usb-device-xous/Cargo.toml b/services/usb-device-xous/Cargo.toml index a2977c9d8..0fd6f5082 100644 --- a/services/usb-device-xous/Cargo.toml +++ b/services/usb-device-xous/Cargo.toml @@ -28,6 +28,7 @@ vcell = "0.1.3" xous-semver = "0.1.2" utralib = { version = "0.1.25", optional = true, default-features = false } trng = { path = "../trng", optional = true } +precursor-hal = { path = "../../libs/precursor-hal" } xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branch = "main" } embedded-time = "0.12.1" # required by the keyboard interface diff --git a/services/usb-device-xous/src/hw.rs b/services/usb-device-xous/src/hw.rs index c9bfd844f..39f7e13a0 100644 --- a/services/usb-device-xous/src/hw.rs +++ b/services/usb-device-xous/src/hw.rs @@ -6,6 +6,7 @@ use std::collections::BTreeMap; use std::convert::TryInto; use std::sync::{Arc, Mutex}; +use precursor_hal::board::{BOOKEND_END, BOOKEND_START}; use usb_device::bus::PollResult; use usb_device::{Result, UsbDirection, class_prelude::*}; use utralib::generated::*; @@ -1205,14 +1206,14 @@ impl UsbBus for SpinalUsbDevice { /// continue be polled, and it shall return a value other than `Suspend` from `poll` when it no /// longer detects the suspend condition. fn suspend(&self) { - log::info!("{}USB.SUSPEND,{}", xous::BOOKEND_START, xous::BOOKEND_END); + log::info!("{}USB.SUSPEND,{}", BOOKEND_START, BOOKEND_END); log::warn!("USB suspend called; this implementation does nothing."); } /// Resumes from suspend mode. This may only be called after the peripheral has been previously /// suspended. fn resume(&self) { - log::info!("{}USB.RESUME,{}", xous::BOOKEND_START, xous::BOOKEND_END); + log::info!("{}USB.RESUME,{}", BOOKEND_START, BOOKEND_END); log::info!("USB resume called."); }