diff --git a/services/usb-device-xous/src/main_hw.rs b/services/usb-device-xous/src/main_hw.rs index 0a0f2b40d..4dbe46cef 100644 --- a/services/usb-device-xous/src/main_hw.rs +++ b/services/usb-device-xous/src/main_hw.rs @@ -246,7 +246,10 @@ pub(crate) fn main_hw() -> ! { // safety: this is safe because we allocated ifram_range to have the same physical and virtual addresses #[cfg(feature = "cramium-soc")] let usbwrapper = CorigineWrapper::new(unsafe { - CorigineUsb::new(cid, h_op, ifram_range.as_ptr() as usize, usb.clone(), irq_csr.clone()) + let mut cu = CorigineUsb::new(cid, h_op, ifram_range.as_ptr() as usize, usb.clone(), irq_csr.clone()); + // assign the default handler, since this is the std case + cu.assign_handler(cramium_hal::usb::driver::handle_event); + cu }); #[cfg(feature = "cramium-soc")]