We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ba950c + 0931b52 commit 111515aCopy full SHA for 111515a
src/portable/raspberrypi/rp2040/hcd_rp2040.c
@@ -380,6 +380,9 @@ bool hcd_init(uint8_t rhport)
380
// Force VBUS detect to always present, for now we assume vbus is always provided (without using VBUS En)
381
usb_hw->pwr = USB_USB_PWR_VBUS_DETECT_BITS | USB_USB_PWR_VBUS_DETECT_OVERRIDE_EN_BITS;
382
383
+ // Remove shared irq if it was previously added so as not to fill up shared irq slots
384
+ irq_remove_handler(USBCTRL_IRQ, hcd_rp2040_irq);
385
+
386
irq_add_shared_handler(USBCTRL_IRQ, hcd_rp2040_irq, PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY);
387
388
// clear epx and interrupt eps
0 commit comments