summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-11-11 11:47:09 +0900
committertmk <nobody@nowhere>2012-11-11 11:47:09 +0900
commit98052b8afd52c93e2d5a1e6acd6afd6e6d2a288c (patch)
treee88dcba7bf798a68ca3bfb238c1acb857968eb43
parent1a4ae0fc366e5f51fb4559a106481335b129208a (diff)
Disable JTAG function for hid_liber to use PORTF.
-rw-r--r--keyboard/hid_liber/matrix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboard/hid_liber/matrix.c b/keyboard/hid_liber/matrix.c
index de1790d7e9..8e3739197d 100644
--- a/keyboard/hid_liber/matrix.c
+++ b/keyboard/hid_liber/matrix.c
@@ -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();