Revision 73
small change
mouse.c | ||
---|---|---|
57 | 57 |
} |
58 | 58 |
|
59 | 59 |
int (mouse_set_data_report)(int on){ |
60 |
int ret = 0; |
|
61 |
if((ret = kbc_issue_cmd(MOUSE_WRITE_B))) return ret; |
|
62 |
if((ret = kbc_issue_arg(DIS_DATA_REP))) return ret; |
|
63 |
uint8_t ack = 0; |
|
64 |
printf("L64\n"); |
|
65 |
if((ret = kbc_read_byte(&ack))) return ret; |
|
66 |
printf("L66\n"); |
|
67 |
printf("ACK: %x\n", ack); |
|
68 |
return SUCCESS; |
|
60 |
if(on) return mouse_issue_cmd(ENABLE_DATA_REP); |
|
61 |
else return mouse_issue_cmd( DIS_DATA_REP); |
|
69 | 62 |
} |
70 | 63 |
|
71 | 64 |
int (mouse_read_data)(uint8_t *data) { |
Also available in: Unified diff