From: tmk Date: Fri, 20 Mar 2020 03:46:48 +0000 (+0900) Subject: lufa: Disable SOF interrupt X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=ab16474335a7ef96898ce1c5004f2ba56fe3879e;p=max%2Ftmk_keyboard.git lufa: Disable SOF interrupt The interrupt takes 3us every 1ms and can prevent signal handling of ibmpc converter. --- diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index c194368f..54221591 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -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));