summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-02-24 16:34:43 +0800
committersakumisu <[email protected]>2024-02-24 16:34:43 +0800
commit8c729477945e00cf75dd2860b9fc5e009e725eb7 (patch)
tree2272f5c558d0f8efb2aeea58f60691739d1e67ce
parentd5b4cdd4bd6a6651d9b9ebc14dc0f095a83ba520 (diff)
fix bl glue
-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 */