]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
xt_usb: Fix XT soft reset
authortmk <hasu@tmk-kbd.com>
Mon, 26 Oct 2020 17:15:42 +0000 (02:15 +0900)
committertmk <hasu@tmk-kbd.com>
Mon, 26 Oct 2020 17:15:42 +0000 (02:15 +0900)
Data line should be hi while Clock line is low
https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-XT-Keyboard-Protocol#keyboard-soft-reset

tmk_core/protocol/xt_interrupt.c

index ebaa436b382636e06cc3922006c8a3146e5ce104..1bdb519c2eb05cfbc2534c94f8b11d6385e98550 100644 (file)
@@ -65,7 +65,7 @@ void xt_host_init(void)
 #endif
 
     /* soft reset: pull clock line down for 20ms */
-    XT_DATA_LO();
+    XT_DATA_IN();
     XT_CLOCK_LO();
     _delay_ms(20);