summaryrefslogtreecommitdiffstats
path: root/keyboard
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-11-11 03:47:09 +0100
committertmk <nobody@nowhere>2012-11-11 03:47:09 +0100
commit98052b8afd52c93e2d5a1e6acd6afd6e6d2a288c (patch)
treee88dcba7bf798a68ca3bfb238c1acb857968eb43 /keyboard
parent1a4ae0fc366e5f51fb4559a106481335b129208a (diff)
downloadqmk_firmware-98052b8afd52c93e2d5a1e6acd6afd6e6d2a288c.tar.gz
qmk_firmware-98052b8afd52c93e2d5a1e6acd6afd6e6d2a288c.tar.xz
Disable JTAG function for hid_liber to use PORTF.
Diffstat (limited to 'keyboard')
-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 de1790d7e..8e3739197 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();