fix bl glue

This commit is contained in:
sakumisu
2024-02-24 16:34:43 +08:00
parent d5b4cdd4bd
commit 8c72947794

View File

@@ -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 */