another spot where the irq enable has to be moved

This commit is contained in:
bunnie 2024-12-22 00:31:32 +08:00
parent e07ab36984
commit c66a7c47fb

View file

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