From ab16474335a7ef96898ce1c5004f2ba56fe3879e Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 20 Mar 2020 12:46:48 +0900 Subject: [PATCH] lufa: Disable SOF interrupt The interrupt takes 3us every 1ms and can prevent signal handling of ibmpc converter. --- tmk_core/protocol/lufa/lufa.c | 8 -------- 1 file changed, 8 deletions(-) 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)); -- 2.46.2