ibmpc: Fix XT startup fail #751

SIEMENS_PCD_SUPPORT #747 code should be applied only for AT.
The code inhibits AT keyboard from sending by pulling clock line
down, this made XT keyboard support messed.
This commit is contained in:
tmk 2023-02-17 09:12:57 +09:00
parent 7fbf2ce367
commit d51023bc8b

View file

@ -142,9 +142,11 @@ RETRY:
#ifdef SIEMENS_PCD_SUPPORT #ifdef SIEMENS_PCD_SUPPORT
// inhibit - https://github.com/tmk/tmk_keyboard/issues/747 // inhibit - https://github.com/tmk/tmk_keyboard/issues/747
if (protocol & IBMPC_PROTOCOL_AT) {
wait_us(15); wait_us(15);
clock_lo(); clock_lo();
wait_us(150); wait_us(150);
}
#endif #endif
// clear buffer to get response correctly // clear buffer to get response correctly
@ -369,9 +371,11 @@ void IBMPC::isr(void)
DONE: DONE:
#ifdef SIEMENS_PCD_SUPPORT #ifdef SIEMENS_PCD_SUPPORT
// inhibit - https://github.com/tmk/tmk_keyboard/issues/747 // inhibit - https://github.com/tmk/tmk_keyboard/issues/747
if (protocol & IBMPC_PROTOCOL_AT) {
clock_lo(); clock_lo();
wait_us(150); wait_us(150);
clock_hi(); clock_hi();
}
#endif #endif
// store data // store data