revert rhport config in nxp mcus

This commit is contained in:
hathach
2020-06-30 16:18:43 +07:00
parent ab75998316
commit f3a88477dc
7 changed files with 20 additions and 20 deletions

View File

@@ -134,11 +134,11 @@ void USB_OTG1_IRQHandler(void)
void USB_OTG2_IRQHandler(void)
{
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_HOST << 8)
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST
tuh_isr(1);
#endif
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_DEVICE << 8)
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
tud_int_handler(1);
#endif
}