mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix hosted mode emulation stubs
This commit is contained in:
parent
f571e3069a
commit
2bea23687e
2 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ impl SpinalUsbMgmt {
|
||||||
pub fn disable_debug(&mut self, _disable: bool) {}
|
pub fn disable_debug(&mut self, _disable: bool) {}
|
||||||
pub fn get_disable_debug(&self) -> bool {false}
|
pub fn get_disable_debug(&self) -> bool {false}
|
||||||
pub fn xous_suspend(&mut self) {}
|
pub fn xous_suspend(&mut self) {}
|
||||||
pub fn xous_resume(&mut self) {}
|
pub fn xous_resume1(&mut self) {}
|
||||||
|
pub fn xous_resume2(&mut self) {}
|
||||||
pub fn descriptor_from_status(&self, _ep_status: &UdcEpStatus) -> SpinalUdcDescriptor {
|
pub fn descriptor_from_status(&self, _ep_status: &UdcEpStatus) -> SpinalUdcDescriptor {
|
||||||
SpinalUdcDescriptor {}
|
SpinalUdcDescriptor {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ fn main() -> ! {
|
||||||
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
||||||
// resume1 + reset brings us to an initialized state
|
// resume1 + reset brings us to an initialized state
|
||||||
usbmgmt.xous_resume1();
|
usbmgmt.xous_resume1();
|
||||||
|
#[cfg(any(target_os = "none", target_os = "xous"))]
|
||||||
match usb_dev.force_reset() {
|
match usb_dev.force_reset() {
|
||||||
Err(e) => log::warn!("USB reset on resume failed: {:?}", e),
|
Err(e) => log::warn!("USB reset on resume failed: {:?}", e),
|
||||||
_ => ()
|
_ => ()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue