fix int handling for host in ek_ra4m3 port
This commit is contained in:
parent
c529d0b440
commit
e0220c6594
|
@ -91,28 +91,52 @@ void usbfs_interrupt_handler(void)
|
||||||
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
||||||
R_BSP_IrqStatusClear(irq);
|
R_BSP_IrqStatusClear(irq);
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
|
||||||
|
tuh_int_handler(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||||
tud_int_handler(0);
|
tud_int_handler(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void usbfs_resume_handler(void)
|
void usbfs_resume_handler(void)
|
||||||
{
|
{
|
||||||
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
||||||
R_BSP_IrqStatusClear(irq);
|
R_BSP_IrqStatusClear(irq);
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
|
||||||
|
tuh_int_handler(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||||
tud_int_handler(0);
|
tud_int_handler(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void usbfs_d0fifo_handler(void)
|
void usbfs_d0fifo_handler(void)
|
||||||
{
|
{
|
||||||
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
||||||
R_BSP_IrqStatusClear(irq);
|
R_BSP_IrqStatusClear(irq);
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
|
||||||
|
tuh_int_handler(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||||
tud_int_handler(0);
|
tud_int_handler(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void usbfs_d1fifo_handler(void)
|
void usbfs_d1fifo_handler(void)
|
||||||
{
|
{
|
||||||
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
IRQn_Type irq = R_FSP_CurrentIrqGet();
|
||||||
R_BSP_IrqStatusClear(irq);
|
R_BSP_IrqStatusClear(irq);
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
|
||||||
|
tuh_int_handler(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
||||||
tud_int_handler(0);
|
tud_int_handler(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
|
|
Loading…
Reference in New Issue