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:
parent
7fbf2ce367
commit
d51023bc8b
1 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue