mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
another spot where the irq enable has to be moved
This commit is contained in:
parent
e07ab36984
commit
c66a7c47fb
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,9 @@ pub unsafe fn test_usb() {
|
|||
usb.init();
|
||||
usb.start();
|
||||
usb.update_current_speed();
|
||||
// IRQ enable must happen without dependency on the hardware lock
|
||||
usb.irq_csr.wo(utralib::utra::irqarray1::EV_PENDING, 0xffff_ffff); // blanket clear
|
||||
usb.irq_csr.wfo(utralib::utra::irqarray1::EV_ENABLE_USBC_DUPE, 1);
|
||||
|
||||
crate::println!("hw started...");
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue