]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
lufa: Disable SOF interrupt
authortmk <hasu@tmk-kbd.com>
Fri, 20 Mar 2020 03:46:48 +0000 (12:46 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 20 Mar 2020 03:46:48 +0000 (12:46 +0900)
The interrupt takes 3us every 1ms and can prevent
signal handling of ibmpc converter.

tmk_core/protocol/lufa/lufa.c

index c194368ffaa1f444f584d346766fa5f6aeef2226..54221591b388b3729077b68ac23cabe6b624ae7e 100644 (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));