ibmpc: Add adhoc fix for Z-150 AT send

This is not confirmed yet, test report is needed.
This commit is contained in:
tmk 2020-11-16 12:46:01 +09:00
parent 822a8673e7
commit 7e268c8c12

View file

@ -136,6 +136,7 @@ int16_t ibmpc_host_send(uint8_t data)
wait_us(15);
data_hi();
WAIT(clock_hi, 50, 6);
if (ibmpc_protocol == IBMPC_PROTOCOL_AT_Z150) { goto RECV; }
WAIT(clock_lo, 50, 7);
/* Ack */
@ -145,6 +146,7 @@ int16_t ibmpc_host_send(uint8_t data)
WAIT(clock_hi, 50, 9);
WAIT(data_hi, 50, 10);
RECV:
// clear buffer to get response correctly
recv_data = 0xFFFF;
ibmpc_host_isr_clear();