incorporate arch migrations to usb-device-xous

This commit is contained in:
bunnie 2025-05-11 12:31:46 +08:00
parent ae2d137e12
commit a0c1b1e75a
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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.");
}