Revision 72
packet now working fine
kbc.c | ||
---|---|---|
68 | 68 |
uint8_t stat; |
69 | 69 |
for(int i = 0; i < KBC_NUM_TRIES; ++i){ |
70 | 70 |
if((ret = util_sys_inb(STATUS_REG, &stat))) return ret;//printf("kbc.c,L71\n"); |
71 |
printf("%x %d %d\n", stat, (stat&OUT_BUF_FUL), (stat&AUX_MOUSE)); |
|
71 | 72 |
if((stat&OUT_BUF_FUL) && (stat&AUX_MOUSE)==0){//printf("kbc.c,L72\n"); |
72 | 73 |
if(stat & (PARITY_ERROR | TIME_OUT_REC)) return OTHER_ERROR;//printf("kbc.c,L73\n"); |
73 | 74 |
if((ret = util_sys_inb(OUTPUT_BUF, byte))) return ret; |
... | ... | |
75 | 76 |
} |
76 | 77 |
tickdelay(micros_to_ticks(DELAY)); |
77 | 78 |
} |
79 |
printf("Timing out\n"); |
|
78 | 80 |
return TIMEOUT_ERROR; |
79 | 81 |
} |
Also available in: Unified diff