lufa: Disable SOF interrupt

The interrupt takes 3us every 1ms and can prevent
signal handling of ibmpc converter.
This commit is contained in:
tmk 2020-03-20 12:46:48 +09:00
parent 4df25c2618
commit ab16474335

View file

@ -272,7 +272,6 @@ void EVENT_USB_Device_Connect(void)
if (!USB_IsInitialized) {
USB_Disable();
USB_Init();
USB_Device_EnableSOFEvents();
}
}
@ -315,11 +314,6 @@ void EVENT_USB_Device_WakeUp()
hook_usb_wakeup();
}
// called every 1ms
void EVENT_USB_Device_StartOfFrame(void)
{
}
/** Event handler for the USB_ConfigurationChanged event.
* This is fired when the host sets the current configuration of the USB device after enumeration.
*
@ -663,8 +657,6 @@ static void setup_usb(void)
USB_Disable();
USB_Init();
USB_Device_EnableSOFEvents();
}
int main(void) __attribute__ ((weak));