aboutsummaryrefslogtreecommitdiff
path: root/tmk.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk.c')
-rw-r--r--tmk.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tmk.c b/tmk.c
index b4f76f5d4..2248a7d71 100644
--- a/tmk.c
+++ b/tmk.c
@@ -34,9 +34,12 @@
34#include "print.h" 34#include "print.h"
35#include "debug.h" 35#include "debug.h"
36#include "util.h" 36#include "util.h"
37#include "controller.h"
38#include "timer.h" 37#include "timer.h"
39#include "jump_bootloader.h" 38#include "jump_bootloader.h"
39#ifdef PS2_MOUSE_ENABLE
40# include "ps2.h"
41# include "ps2_mouse.h"
42#endif
40 43
41 44
42#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) 45#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n))
@@ -91,8 +94,12 @@ int main(void)
91 jump_bootloader(); // not return 94 jump_bootloader(); // not return
92 } 95 }
93 96
97#ifdef PS2_MOUSE_ENABLE
98 ps2_host_init();
99 ps2_mouse_init();
100#endif
101
94 while (1) { 102 while (1) {
95 proc_matrix(); 103 proc_matrix();
96 _delay_ms(2);
97 } 104 }
98} 105}