]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Disable JTAG function for hid_liber to use PORTF.
authortmk <nobody@nowhere>
Sun, 11 Nov 2012 02:47:09 +0000 (11:47 +0900)
committertmk <nobody@nowhere>
Sun, 11 Nov 2012 02:47:09 +0000 (11:47 +0900)
keyboard/hid_liber/matrix.c

index de1790d7e9e40689f6e23a7befbe5b88f92946b2..8e3739197dc6b7e5e09b26c9d95b63f94808ee9d 100644 (file)
@@ -137,6 +137,10 @@ uint8_t matrix_cols(void)
 
 void matrix_init(void)
 {
+    // To use PORTF disable JTAG with writing JTD bit twice within four cycles.
+    MCUCR |= (1<<JTD);
+    MCUCR |= (1<<JTD);
+
     // initialize row and col
     setup_io_pins();
     setup_leds();