summaryrefslogtreecommitdiff
path: root/tmk.c
diff options
context:
space:
mode:
authortmk2011-01-02 23:52:13 +0900
committertmk2011-01-02 23:52:13 +0900
commit2a562a4191a5b9e88731efb5eabd921821f25f7e (patch)
tree20f5bb311ff99ced3dd8ee2d9430e2fbe8183f7b /tmk.c
parent1ed336a06499c1baee2421141d59d115f0ee3c4b (diff)
Add PS/2 mouse support to connect TrackPoint Unit.
Change build options: Makefile and config.h. See README.
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 @@
#include "print.h"
#include "debug.h"
#include "util.h"
-#include "controller.h"
#include "timer.h"
#include "jump_bootloader.h"
+#ifdef PS2_MOUSE_ENABLE
+# include "ps2.h"
+# include "ps2_mouse.h"
+#endif
#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n))
@@ -91,8 +94,12 @@ int main(void)
jump_bootloader(); // not return
}
+#ifdef PS2_MOUSE_ENABLE
+ ps2_host_init();
+ ps2_mouse_init();
+#endif
+
while (1) {
proc_matrix();
- _delay_ms(2);
}
}