aboutsummaryrefslogtreecommitdiff
path: root/protocol/lufa/lufa.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-08-26 05:02:37 +0900
committertmk <nobody@nowhere>2014-08-26 05:02:37 +0900
commitb316f19871ab39e6a75146d74a3b5cca37165f3c (patch)
tree66d06b895fea2e85da612d06604ab59234dc46b7 /protocol/lufa/lufa.c
parent10eb70acb4c8a03fc5bda32d9c23fc41266aef7a (diff)
parent03fd4a6ff0fcccf8d7683b7fac3d9e6ae4fb635e (diff)
downloadqmk_firmware-b316f19871ab39e6a75146d74a3b5cca37165f3c.tar.gz
qmk_firmware-b316f19871ab39e6a75146d74a3b5cca37165f3c.zip
Merge branch 'serial-mouse' of git://github.com/rhaberkorn/tmk_keyboard into rhaberkorn-serial-mouse
Diffstat (limited to 'protocol/lufa/lufa.c')
-rw-r--r--protocol/lufa/lufa.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c
index 16a602df1..58201e5c9 100644
--- a/protocol/lufa/lufa.c
+++ b/protocol/lufa/lufa.c
@@ -49,6 +49,10 @@
49#endif 49#endif
50#include "suspend.h" 50#include "suspend.h"
51 51
52#ifdef SERIAL_MOUSE_ENABLE
53#include "serial_mouse.h"
54#endif
55
52#include "descriptor.h" 56#include "descriptor.h"
53#include "lufa.h" 57#include "lufa.h"
54 58
@@ -571,6 +575,10 @@ int main(void)
571 sleep_led_init(); 575 sleep_led_init();
572#endif 576#endif
573 577
578#ifdef SERIAL_MOUSE_ENABLE
579 serial_mouse_init();
580#endif
581
574 print("Keyboard start.\n"); 582 print("Keyboard start.\n");
575 while (1) { 583 while (1) {
576 while (USB_DeviceState == DEVICE_STATE_Suspended) { 584 while (USB_DeviceState == DEVICE_STATE_Suspended) {
@@ -582,6 +590,10 @@ int main(void)
582 590
583 keyboard_task(); 591 keyboard_task();
584 592
593#ifdef SERIAL_MOUSE_ENABLE
594 serial_mouse_task();
595#endif
596
585#if !defined(INTERRUPT_CONTROL_ENDPOINT) 597#if !defined(INTERRUPT_CONTROL_ENDPOINT)
586 USB_USBTask(); 598 USB_USBTask();
587#endif 599#endif