1
0
Fork 0

Disable JTAG function for hid_liber to use PORTF.

This commit is contained in:
tmk 2012-11-11 11:47:09 +09:00
parent 1a4ae0fc36
commit 98052b8afd

View file

@ -137,6 +137,10 @@ uint8_t matrix_cols(void)
void matrix_init(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 // initialize row and col
setup_io_pins(); setup_io_pins();
setup_leds(); setup_leds();