ibmpc: Add adhoc fix for Z-150 AT send
This is not confirmed yet, test report is needed.
This commit is contained in:
parent
822a8673e7
commit
7e268c8c12
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue