X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk.c;h=2248a7d71296d2be2c2ca09f2f14a63b995bc5fd;hb=2a562a4191a5b9e88731efb5eabd921821f25f7e;hp=b4f76f5d4ac1d69bcc712042fea77fdfb3ad94c3;hpb=51f17f02317700e64b3c1113fe230d78bac7fecd;p=max%2Ftmk_keyboard.git diff --git a/tmk.c b/tmk.c index b4f76f5d..2248a7d7 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); } }