Added new NO_SOF_EVENTS compile time option, enabled in the bootloaders to reduce...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / USBInterrupt.c
index 21b0a9b..54983c0 100644 (file)
@@ -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))