mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
update std implementation to assign handler
This commit is contained in:
parent
d8cd9ba5c5
commit
8b8e7680cc
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
// safety: this is safe because we allocated ifram_range to have the same physical and virtual addresses
|
||||||
#[cfg(feature = "cramium-soc")]
|
#[cfg(feature = "cramium-soc")]
|
||||||
let usbwrapper = CorigineWrapper::new(unsafe {
|
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")]
|
#[cfg(feature = "cramium-soc")]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue