X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/a509729b2d92b03a3d33ab0e1e1950ff65a96a09..f78b3eb4eff89dbd11adee37ca015712be2f332f:/LUFA/Drivers/USB/LowLevel/USBInterrupt.c diff --git a/LUFA/Drivers/USB/LowLevel/USBInterrupt.c b/LUFA/Drivers/USB/LowLevel/USBInterrupt.c index 21b0a9bb1..54983c09e 100644 --- a/LUFA/Drivers/USB/LowLevel/USBInterrupt.c +++ b/LUFA/Drivers/USB/LowLevel/USBInterrupt.c @@ -162,12 +162,14 @@ ISR(USB_GEN_vect, ISR_BLOCK) EVENT_USB_Device_Reset(); } + #if !defined(NO_SOF_EVENTS) if (USB_INT_HasOccurred(USB_INT_SOFI) && USB_INT_IsEnabled(USB_INT_SOFI)) { USB_INT_Clear(USB_INT_SOFI); EVENT_USB_Device_StartOfFrame(); } + #endif #endif #if defined(USB_CAN_BE_HOST) @@ -217,6 +219,7 @@ ISR(USB_GEN_vect, ISR_BLOCK) USB_ResetInterface(); } + #if !defined(NO_SOF_EVENTS) if (USB_INT_HasOccurred(USB_INT_HSOFI) && USB_INT_IsEnabled(USB_INT_HSOFI)) { USB_INT_Clear(USB_INT_HSOFI); @@ -224,6 +227,7 @@ ISR(USB_GEN_vect, ISR_BLOCK) EVENT_USB_Host_StartOfFrame(); } #endif + #endif #if defined(USB_CAN_BE_BOTH) if (USB_INT_HasOccurred(USB_INT_IDTI) && USB_INT_IsEnabled(USB_INT_IDTI))