fix bl glue
This commit is contained in:
@@ -34,6 +34,10 @@
|
|||||||
|
|
||||||
extern void USBH_IRQHandler(uint8_t busid);
|
extern void USBH_IRQHandler(uint8_t busid);
|
||||||
|
|
||||||
|
void USBH_IRQ(int irq, void *arg) {
|
||||||
|
USBH_IRQHandler(0);
|
||||||
|
}
|
||||||
|
|
||||||
static void bflb_usb_phy_init(void)
|
static void bflb_usb_phy_init(void)
|
||||||
{
|
{
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
@@ -89,7 +93,7 @@ void usb_hc_low_level_init(struct usbh_bus *bus)
|
|||||||
|
|
||||||
bflb_usb_phy_init();
|
bflb_usb_phy_init();
|
||||||
|
|
||||||
bflb_irq_attach(37, USBH_IRQHandler, 0);
|
bflb_irq_attach(37, USBH_IRQ, NULL);
|
||||||
bflb_irq_enable(37);
|
bflb_irq_enable(37);
|
||||||
|
|
||||||
/* enable device-A for host */
|
/* enable device-A for host */
|
||||||
|
|||||||
Reference in New Issue
Block a user