void USB_IRQHandler (void) { #ifdef USB_CAN_BE_HOST HcdIrqHandler(0); #endif #ifdef USB_CAN_BE_DEVICE DcdIrqHandler(0); #endif }
void USB_IRQHandler(void) { if (USB_CurrentMode[0] == USB_MODE_Host) { #if defined(USB_CAN_BE_HOST) HcdIrqHandler(0); #endif } if (USB_CurrentMode[0] == USB_MODE_Device) { #if defined(USB_CAN_BE_DEVICE) DcdIrqHandler(0); #endif } }
void USB1_IRQHandler(void) { if (USB_CurrentMode[1] == USB_MODE_Host) { #ifdef USB_CAN_BE_HOST HcdIrqHandler(1); #endif } if (USB_CurrentMode[1] == USB_MODE_Device) { #ifdef USB_CAN_BE_DEVICE #ifdef USB_DEVICE_ROM_DRIVER UsbdRom_IrqHandler(); #else DcdIrqHandler(1); #endif #endif } }