diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/amj96/matrix.c | 3 | ||||
| -rw-r--r-- | keyboards/clueboard/17/17.c | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev2/rev2.c | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/66_hotswap/prototype/prototype.c | 4 | ||||
| -rw-r--r-- | keyboards/ergodone/matrix.c | 4 | ||||
| -rw-r--r-- | keyboards/handwired/promethium/matrix.c | 7 | ||||
| -rw-r--r-- | keyboards/hhkb/rn42/rn42.c | 4 | ||||
| -rwxr-xr-x | keyboards/hid_liber/matrix.c | 4 | ||||
| -rw-r--r-- | keyboards/hotdox/matrix.c | 4 | ||||
| -rw-r--r-- | keyboards/launchpad/rev1/rev1.c | 7 | ||||
| -rw-r--r-- | keyboards/lets_split/sockets/sockets.h | 1 | ||||
| -rw-r--r-- | keyboards/miniaxe/config.h | 2 | ||||
| -rw-r--r-- | keyboards/sx60/matrix.c | 7 | ||||
| -rw-r--r-- | keyboards/vitamins_included/matrix.c | 6 | ||||
| -rw-r--r-- | keyboards/vitamins_included/rev1/rev1.h | 1 |
15 files changed, 1 insertions, 61 deletions
diff --git a/keyboards/amj96/matrix.c b/keyboards/amj96/matrix.c index e41bbec72..5d00ea98f 100644 --- a/keyboards/amj96/matrix.c +++ b/keyboards/amj96/matrix.c | |||
| @@ -63,9 +63,6 @@ void matrix_init(void) | |||
| 63 | #ifdef UART_RGB_ENABLE | 63 | #ifdef UART_RGB_ENABLE |
| 64 | uart_rgb_init(); | 64 | uart_rgb_init(); |
| 65 | #endif | 65 | #endif |
| 66 | // disable JTAG | ||
| 67 | MCUCR = _BV(JTD); | ||
| 68 | MCUCR = _BV(JTD); | ||
| 69 | 66 | ||
| 70 | // 85 REST | 67 | // 85 REST |
| 71 | DDRD |= _BV(PD7); | 68 | DDRD |= _BV(PD7); |
diff --git a/keyboards/clueboard/17/17.c b/keyboards/clueboard/17/17.c index 627aa236d..9e8ca644e 100644 --- a/keyboards/clueboard/17/17.c +++ b/keyboards/clueboard/17/17.c | |||
| @@ -6,10 +6,6 @@ void matrix_init_kb(void) { | |||
| 6 | // put your keyboard start-up code here | 6 | // put your keyboard start-up code here |
| 7 | // runs once when the firmware starts up | 7 | // runs once when the firmware starts up |
| 8 | matrix_init_user(); | 8 | matrix_init_user(); |
| 9 | |||
| 10 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 11 | MCUCR |= (1<<JTD); | ||
| 12 | MCUCR |= (1<<JTD); | ||
| 13 | }; | 9 | }; |
| 14 | 10 | ||
| 15 | void led_set_kb(uint8_t usb_led) { | 11 | void led_set_kb(uint8_t usb_led) { |
diff --git a/keyboards/clueboard/66/rev2/rev2.c b/keyboards/clueboard/66/rev2/rev2.c index 1a35b87b8..d676b6d5f 100644 --- a/keyboards/clueboard/66/rev2/rev2.c +++ b/keyboards/clueboard/66/rev2/rev2.c | |||
| @@ -8,10 +8,6 @@ void matrix_init_kb(void) { | |||
| 8 | // runs once when the firmware starts up | 8 | // runs once when the firmware starts up |
| 9 | matrix_init_user(); | 9 | matrix_init_user(); |
| 10 | led_init_ports(); | 10 | led_init_ports(); |
| 11 | |||
| 12 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 13 | MCUCR |= (1<<JTD); | ||
| 14 | MCUCR |= (1<<JTD); | ||
| 15 | } | 11 | } |
| 16 | 12 | ||
| 17 | 13 | ||
diff --git a/keyboards/clueboard/66_hotswap/prototype/prototype.c b/keyboards/clueboard/66_hotswap/prototype/prototype.c index 991d4b8fa..7c307be61 100644 --- a/keyboards/clueboard/66_hotswap/prototype/prototype.c +++ b/keyboards/clueboard/66_hotswap/prototype/prototype.c | |||
| @@ -8,10 +8,6 @@ void matrix_init_kb(void) { | |||
| 8 | // runs once when the firmware starts up | 8 | // runs once when the firmware starts up |
| 9 | matrix_init_user(); | 9 | matrix_init_user(); |
| 10 | led_init_ports(); | 10 | led_init_ports(); |
| 11 | |||
| 12 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 13 | MCUCR |= (1<<JTD); | ||
| 14 | MCUCR |= (1<<JTD); | ||
| 15 | } | 11 | } |
| 16 | 12 | ||
| 17 | 13 | ||
diff --git a/keyboards/ergodone/matrix.c b/keyboards/ergodone/matrix.c index 2eb8f24ba..4a8230aa8 100644 --- a/keyboards/ergodone/matrix.c +++ b/keyboards/ergodone/matrix.c | |||
| @@ -77,10 +77,6 @@ uint8_t matrix_cols(void) | |||
| 77 | 77 | ||
| 78 | void matrix_init(void) | 78 | void matrix_init(void) |
| 79 | { | 79 | { |
| 80 | // disable JTAG | ||
| 81 | MCUCR = (1<<JTD); | ||
| 82 | MCUCR = (1<<JTD); | ||
| 83 | |||
| 84 | unselect_rows(); | 80 | unselect_rows(); |
| 85 | init_cols(); | 81 | init_cols(); |
| 86 | 82 | ||
diff --git a/keyboards/handwired/promethium/matrix.c b/keyboards/handwired/promethium/matrix.c index 3b8e5af82..b4a4c6396 100644 --- a/keyboards/handwired/promethium/matrix.c +++ b/keyboards/handwired/promethium/matrix.c | |||
| @@ -104,13 +104,6 @@ uint8_t matrix_cols(void) { | |||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | void matrix_init(void) { | 106 | void matrix_init(void) { |
| 107 | |||
| 108 | // To use PORTF disable JTAG with writing JTD bit twice within four cycles. | ||
| 109 | #if (defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega32U4__)) | ||
| 110 | MCUCR |= _BV(JTD); | ||
| 111 | MCUCR |= _BV(JTD); | ||
| 112 | #endif | ||
| 113 | |||
| 114 | // initialize row and col | 107 | // initialize row and col |
| 115 | unselect_rows(); | 108 | unselect_rows(); |
| 116 | init_cols(); | 109 | init_cols(); |
diff --git a/keyboards/hhkb/rn42/rn42.c b/keyboards/hhkb/rn42/rn42.c index 154da4e10..06665425c 100644 --- a/keyboards/hhkb/rn42/rn42.c +++ b/keyboards/hhkb/rn42/rn42.c | |||
| @@ -26,10 +26,6 @@ host_driver_t rn42_driver = { | |||
| 26 | 26 | ||
| 27 | void rn42_init(void) | 27 | void rn42_init(void) |
| 28 | { | 28 | { |
| 29 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 30 | MCUCR |= (1<<JTD); | ||
| 31 | MCUCR |= (1<<JTD); | ||
| 32 | |||
| 33 | // PF7: BT connection control(high: connect, low: disconnect) | 29 | // PF7: BT connection control(high: connect, low: disconnect) |
| 34 | rn42_autoconnect(); | 30 | rn42_autoconnect(); |
| 35 | 31 | ||
diff --git a/keyboards/hid_liber/matrix.c b/keyboards/hid_liber/matrix.c index de154890d..05554a24c 100755 --- a/keyboards/hid_liber/matrix.c +++ b/keyboards/hid_liber/matrix.c | |||
| @@ -172,10 +172,6 @@ uint8_t matrix_cols(void) | |||
| 172 | 172 | ||
| 173 | void matrix_init(void) | 173 | void matrix_init(void) |
| 174 | { | 174 | { |
| 175 | // To use PORTF disable JTAG with writing JTD bit twice within four cycles. | ||
| 176 | MCUCR |= (1<<JTD); | ||
| 177 | MCUCR |= (1<<JTD); | ||
| 178 | |||
| 179 | // initialize row and col | 175 | // initialize row and col |
| 180 | setup_io_pins(); | 176 | setup_io_pins(); |
| 181 | setup_leds(); | 177 | setup_leds(); |
diff --git a/keyboards/hotdox/matrix.c b/keyboards/hotdox/matrix.c index 9d3a98db2..11a1142d4 100644 --- a/keyboards/hotdox/matrix.c +++ b/keyboards/hotdox/matrix.c | |||
| @@ -77,10 +77,6 @@ uint8_t matrix_cols(void) | |||
| 77 | 77 | ||
| 78 | void matrix_init(void) | 78 | void matrix_init(void) |
| 79 | { | 79 | { |
| 80 | // disable JTAG | ||
| 81 | MCUCR = (1<<JTD); | ||
| 82 | MCUCR = (1<<JTD); | ||
| 83 | |||
| 84 | unselect_rows(); | 80 | unselect_rows(); |
| 85 | init_cols(); | 81 | init_cols(); |
| 86 | 82 | ||
diff --git a/keyboards/launchpad/rev1/rev1.c b/keyboards/launchpad/rev1/rev1.c index a7aec80e1..cff4edf9f 100644 --- a/keyboards/launchpad/rev1/rev1.c +++ b/keyboards/launchpad/rev1/rev1.c | |||
| @@ -1,14 +1,9 @@ | |||
| 1 | #include "launchpad.h" | 1 | #include "launchpad.h" |
| 2 | 2 | ||
| 3 | void matrix_init_kb(void) { | 3 | void matrix_init_kb(void) { |
| 4 | |||
| 5 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 6 | MCUCR |= (1<<JTD); | ||
| 7 | MCUCR |= (1<<JTD); | ||
| 8 | |||
| 9 | // Undo init of RX LED, we use that port currently | 4 | // Undo init of RX LED, we use that port currently |
| 10 | //DDRB &= ~(1<<0); | 5 | //DDRB &= ~(1<<0); |
| 11 | 6 | ||
| 12 | matrix_init_user(); | 7 | matrix_init_user(); |
| 13 | 8 | ||
| 14 | }; \ No newline at end of file | 9 | }; |
diff --git a/keyboards/lets_split/sockets/sockets.h b/keyboards/lets_split/sockets/sockets.h index 0ee93c020..a1a3f00a0 100644 --- a/keyboards/lets_split/sockets/sockets.h +++ b/keyboards/lets_split/sockets/sockets.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | #define DISABLE_JTAG // The keyboard uses PF4 and PF7, which are used by JTAG. | ||
| 3 | 2 | ||
| 4 | #include "lets_split.h" | 3 | #include "lets_split.h" |
| 5 | 4 | ||
diff --git a/keyboards/miniaxe/config.h b/keyboards/miniaxe/config.h index db8509717..b0b9d4c47 100644 --- a/keyboards/miniaxe/config.h +++ b/keyboards/miniaxe/config.h | |||
| @@ -237,5 +237,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 237 | //#define EE_HANDS | 237 | //#define EE_HANDS |
| 238 | #define I2C_MASTER_LEFT | 238 | #define I2C_MASTER_LEFT |
| 239 | //#define I2C_MASTER_RIGHT | 239 | //#define I2C_MASTER_RIGHT |
| 240 | |||
| 241 | #define DISABLE_JTAG | ||
diff --git a/keyboards/sx60/matrix.c b/keyboards/sx60/matrix.c index e8e9d6574..58647d13b 100644 --- a/keyboards/sx60/matrix.c +++ b/keyboards/sx60/matrix.c | |||
| @@ -113,13 +113,6 @@ uint8_t matrix_cols(void) { | |||
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | void matrix_init(void) { | 115 | void matrix_init(void) { |
| 116 | |||
| 117 | /* To use PORTF disable JTAG with writing JTD bit twice within four cycles. */ | ||
| 118 | #if (defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega32U4__)) | ||
| 119 | MCUCR |= _BV(JTD); | ||
| 120 | MCUCR |= _BV(JTD); | ||
| 121 | #endif | ||
| 122 | |||
| 123 | mcp23018_status = true; | 116 | mcp23018_status = true; |
| 124 | 117 | ||
| 125 | /* initialize row and col */ | 118 | /* initialize row and col */ |
diff --git a/keyboards/vitamins_included/matrix.c b/keyboards/vitamins_included/matrix.c index 1f5071c69..d44e70f08 100644 --- a/keyboards/vitamins_included/matrix.c +++ b/keyboards/vitamins_included/matrix.c | |||
| @@ -136,12 +136,6 @@ bool has_usb(void) { | |||
| 136 | 136 | ||
| 137 | void matrix_init(void) | 137 | void matrix_init(void) |
| 138 | { | 138 | { |
| 139 | #ifdef DISABLE_JTAG | ||
| 140 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
| 141 | MCUCR |= (1<<JTD); | ||
| 142 | MCUCR |= (1<<JTD); | ||
| 143 | #endif | ||
| 144 | |||
| 145 | // initialize row and col | 139 | // initialize row and col |
| 146 | #if (DIODE_DIRECTION == COL2ROW) | 140 | #if (DIODE_DIRECTION == COL2ROW) |
| 147 | unselect_rows(); | 141 | unselect_rows(); |
diff --git a/keyboards/vitamins_included/rev1/rev1.h b/keyboards/vitamins_included/rev1/rev1.h index aa5029034..ee97e09cf 100644 --- a/keyboards/vitamins_included/rev1/rev1.h +++ b/keyboards/vitamins_included/rev1/rev1.h | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #ifndef REV1_H | 1 | #ifndef REV1_H |
| 2 | #define REV1_H | 2 | #define REV1_H |
| 3 | #define DISABLE_JTAG // The keyboard uses PF4, PF5 and PF7, which are used by JTAG. | ||
| 4 | #define EE_HANDS // This isn't optional for the vitamins included | 3 | #define EE_HANDS // This isn't optional for the vitamins included |
| 5 | 4 | ||
| 6 | #include QMK_KEYBOARD_H | 5 | #include QMK_KEYBOARD_H |
