merge CFG_TUSB_RHPORT1_MODE into CFG_TUSB_RHPORT0_MODE

each port is 1 byte for easy maintenance
This commit is contained in:
hathach
2020-05-26 15:21:23 +07:00
parent 62a746bdc7
commit fad088719e
9 changed files with 66 additions and 49 deletions
+2 -2
View File
@@ -134,11 +134,11 @@ void USB_OTG1_IRQHandler(void)
void USB_OTG2_IRQHandler(void)
{
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_HOST
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_HOST << 8)
tuh_isr(1);
#endif
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_DEVICE << 8)
tud_int_handler(1);
#endif
}