From: tmk Date: Tue, 12 May 2020 09:50:21 +0000 (+0900) Subject: ibmpc: Add debug code for isr_state X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=3e801a63e4a388570b43b29103f8582320c3091e;p=max%2Ftmk_keyboard.git ibmpc: Add debug code for isr_state --- diff --git a/tmk_core/protocol/ibmpc.c b/tmk_core/protocol/ibmpc.c index 282a4f82..23aad3d3 100644 --- a/tmk_core/protocol/ibmpc.c +++ b/tmk_core/protocol/ibmpc.c @@ -208,6 +208,7 @@ int16_t ibmpc_host_recv(void) } } + //dprintf("i%04X ", ibmpc_isr_debug); ibmpc_isr_debug = 0; dprintf("r%02X ", ret); return ret; } @@ -315,6 +316,7 @@ ISR(IBMPC_INT_VECT) goto NEXT; } else { // XT_Clone-done + ibmpc_isr_debug = isr_state; isr_state = isr_state>>8; ibmpc_protocol = IBMPC_PROTOCOL_XT_CLONE; goto DONE; @@ -340,6 +342,7 @@ ISR(IBMPC_INT_VECT) goto NEXT; } else { // no stop bit: XT_IBM-done + ibmpc_isr_debug = isr_state; isr_state = isr_state>>8; ibmpc_protocol = IBMPC_PROTOCOL_XT_IBM; goto DONE; @@ -354,6 +357,7 @@ ISR(IBMPC_INT_VECT) // DO NOT check stop bit. Zenith Z-150(AT) asserts stop bit as low for no reason. // https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-AT-Keyboard-Protocol#zenith-z-150-beige // TODO: parity check? + ibmpc_isr_debug = isr_state; isr_state = isr_state>>6; ibmpc_protocol = IBMPC_PROTOCOL_AT; goto DONE;