Skip to content

Commit ab16474

Browse files
committed
lufa: Disable SOF interrupt
The interrupt takes 3us every 1ms and can prevent signal handling of ibmpc converter.
1 parent 4df25c2 commit ab16474

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tmk_core/protocol/lufa/lufa.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ void EVENT_USB_Device_Connect(void)
272272
if (!USB_IsInitialized) {
273273
USB_Disable();
274274
USB_Init();
275-
USB_Device_EnableSOFEvents();
276275
}
277276
}
278277

@@ -315,11 +314,6 @@ void EVENT_USB_Device_WakeUp()
315314
hook_usb_wakeup();
316315
}
317316

318-
// called every 1ms
319-
void EVENT_USB_Device_StartOfFrame(void)
320-
{
321-
}
322-
323317
/** Event handler for the USB_ConfigurationChanged event.
324318
* This is fired when the host sets the current configuration of the USB device after enumeration.
325319
*
@@ -663,8 +657,6 @@ static void setup_usb(void)
663657
USB_Disable();
664658

665659
USB_Init();
666-
667-
USB_Device_EnableSOFEvents();
668660
}
669661

670662
int main(void) __attribute__ ((weak));

0 commit comments

Comments
 (0)