summaryrefslogtreecommitdiffstats
path: root/tmk.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk.c')
-rw-r--r--tmk.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/tmk.c b/tmk.c
index 2248a7d712..00b571d54d 100644
--- a/tmk.c
+++ b/tmk.c
@@ -28,16 +28,14 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
+#include "keyboard.h"
#include "usb.h"
#include "matrix_skel.h"
-#include "key_process.h"
#include "print.h"
#include "debug.h"
#include "util.h"
-#include "timer.h"
#include "jump_bootloader.h"
#ifdef PS2_MOUSE_ENABLE
-# include "ps2.h"
# include "ps2_mouse.h"
#endif
@@ -65,9 +63,7 @@ int main(void)
usb_init();
while (!usb_configured()) /* wait */ ;
- timer_init();
-
- matrix_init();
+ keyboard_init();
matrix_scan();
if (matrix_key_count() >= 3) {
#ifdef DEBUG_LED
@@ -94,12 +90,8 @@ int main(void)
jump_bootloader(); // not return
}
-#ifdef PS2_MOUSE_ENABLE
- ps2_host_init();
- ps2_mouse_init();
-#endif
while (1) {
- proc_matrix();
+ keyboard_proc();
}
}