summaryrefslogtreecommitdiff
path: root/quantum/keyboard.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-04-29 01:23:50 +0100
committerGitHub <noreply@github.com>2022-04-29 01:23:50 +0100
commitd458d4a596cd1fe8f0a21b9b70ab2e5cd190e7c7 (patch)
tree06a546f47caf244f3226ba9088044df45f484d78 /quantum/keyboard.c
parent0de08b09e7f756270374ae222561e9880918a71f (diff)
Move disable_jtag to platforms (#16960)
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r--quantum/keyboard.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index 63236f0b20..1dccd48e2f 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -211,17 +211,6 @@ static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata) {
211 211
212#endif 212#endif
213 213
214void disable_jtag(void) {
215// To use PF4-7 (PC2-5 on ATmega32A), disable JTAG by writing JTD bit twice within four cycles.
216#if (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__))
217 MCUCR |= _BV(JTD);
218 MCUCR |= _BV(JTD);
219#elif defined(__AVR_ATmega32A__)
220 MCUCSR |= _BV(JTD);
221 MCUCSR |= _BV(JTD);
222#endif
223}
224
225/** \brief matrix_setup 214/** \brief matrix_setup
226 * 215 *
227 * FIXME: needs doc 216 * FIXME: needs doc
@@ -263,9 +252,6 @@ __attribute__((weak)) void keyboard_post_init_kb(void) {
263 * FIXME: needs doc 252 * FIXME: needs doc
264 */ 253 */
265void keyboard_setup(void) { 254void keyboard_setup(void) {
266#ifndef NO_JTAG_DISABLE
267 disable_jtag();
268#endif
269 print_set_sendchar(sendchar); 255 print_set_sendchar(sendchar);
270#ifdef EEPROM_DRIVER 256#ifdef EEPROM_DRIVER
271 eeprom_driver_init(); 257 eeprom_driver_init();