From 8c729477945e00cf75dd2860b9fc5e009e725eb7 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 24 Feb 2024 16:34:43 +0800 Subject: [PATCH] fix bl glue --- port/ehci/usb_glue_bouffalo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */