]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - protocol/pjrc/main.c
Fix and keymap of hid_liber from alaricljs at geekhack.org.
[max/tmk_keyboard.git] / protocol / pjrc / main.c
index 15f14920b4b4514b62bda24d19790b142b83bf25..9f664bc432c7b66e0880b66371fbaacef870cb28 100644 (file)
 #define CPU_PRESCALE(n)    (CLKPR = 0x80, CLKPR = (n))
 
 
-bool debug_enable = false;
-bool debug_matrix = false;
-bool debug_keyboard = false;
-bool debug_mouse = false;
-
-
 int main(void)
 {
     DEBUG_LED_CONFIG;
@@ -63,35 +57,8 @@ int main(void)
     while (!usb_configured()) /* wait */ ;
 
     keyboard_init();
-    matrix_scan();
-    if (matrix_key_count() >= 3) {
-#ifdef DEBUG_LED
-        for (int i = 0; i < 6; i++) {
-            DEBUG_LED_CONFIG;
-            DEBUG_LED_ON;
-            _delay_ms(500);
-            DEBUG_LED_OFF;
-            _delay_ms(500);
-        }
-#else
-        _delay_ms(5000);
-#endif
-        print_enable = true;
-        debug_enable = true;
-        debug_matrix = true;
-        debug_keyboard = true;
-        debug_mouse = true;
-        print("debug enabled.\n");
-    }
-    if (matrix_key_count() >= 4) {
-        print("jump to bootloader...\n");
-        _delay_ms(1000);
-        bootloader_jump(); // not return
-    }
-
-
     host_set_driver(pjrc_driver());
     while (1) {
-       keyboard_proc(); 
+       keyboard_task(); 
     }
 }