summaryrefslogtreecommitdiff
path: root/protocol/ps2_mouse.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-21 08:10:09 +0900
committertmk <nobody@nowhere>2013-11-21 10:29:29 +0900
commit416a5b849e9d579b702b92680a4a188962e4c130 (patch)
treeaebe5df47e7b7c5907ec7cfd7b927cfbf0672278 /protocol/ps2_mouse.c
parentc6abcb6d893f6ef843ed98be3d45bd804cfe295a (diff)
Fix interrupt version of ps2.c
Diffstat (limited to 'protocol/ps2_mouse.c')
-rw-r--r--protocol/ps2_mouse.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/protocol/ps2_mouse.c b/protocol/ps2_mouse.c
index ea629655f7..4702f12c40 100644
--- a/protocol/ps2_mouse.c
+++ b/protocol/ps2_mouse.c
@@ -47,20 +47,15 @@ uint8_t ps2_mouse_init(void) {
phex(rcv); phex(ps2_error); print("\n");
// read completion code of BAT
- rcv = ps2_host_recv();
+ rcv = ps2_host_recv_response();
print("ps2_mouse_init: read BAT: ");
phex(rcv); phex(ps2_error); print("\n");
// read Device ID
- rcv = ps2_host_recv();
+ rcv = ps2_host_recv_response();
print("ps2_mouse_init: read DevID: ");
phex(rcv); phex(ps2_error); print("\n");
- // send Enable Data Reporting
- rcv = ps2_host_send(0xF4);
- print("ps2_mouse_init: send 0xF4: ");
- phex(rcv); phex(ps2_error); print("\n");
-
// send Set Remote mode
rcv = ps2_host_send(0xF0);
print("ps2_mouse_init: send 0xF0: ");