summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--port/ehci/usb_glue_bouffalo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/port/ehci/usb_glue_bouffalo.c b/port/ehci/usb_glue_bouffalo.c
index 4a50a230..d367fd2e 100644
--- a/port/ehci/usb_glue_bouffalo.c
+++ b/port/ehci/usb_glue_bouffalo.c
@@ -34,6 +34,10 @@
extern void USBH_IRQHandler(uint8_t busid);
+void USBH_IRQ(int irq, void *arg) {
+ USBH_IRQHandler(0);
+}
+
static void bflb_usb_phy_init(void)
{
uint32_t regval;
@@ -89,7 +93,7 @@ void usb_hc_low_level_init(struct usbh_bus *bus)
bflb_usb_phy_init();
- bflb_irq_attach(37, USBH_IRQHandler, 0);
+ bflb_irq_attach(37, USBH_IRQ, NULL);
bflb_irq_enable(37);
/* enable device-A for host */