aboutsummaryrefslogtreecommitdiff
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)
downloadqmk_firmware-416a5b849e9d579b702b92680a4a188962e4c130.tar.gz
qmk_firmware-416a5b849e9d579b702b92680a4a188962e4c130.zip
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 ea629655f..4702f12c4 100644
--- a/protocol/ps2_mouse.c
+++ b/protocol/ps2_mouse.c
@@ -47,20 +47,15 @@ uint8_t ps2_mouse_init(void) {
47 phex(rcv); phex(ps2_error); print("\n"); 47 phex(rcv); phex(ps2_error); print("\n");
48 48
49 // read completion code of BAT 49 // read completion code of BAT
50 rcv = ps2_host_recv(); 50 rcv = ps2_host_recv_response();
51 print("ps2_mouse_init: read BAT: "); 51 print("ps2_mouse_init: read BAT: ");
52 phex(rcv); phex(ps2_error); print("\n"); 52 phex(rcv); phex(ps2_error); print("\n");
53 53
54 // read Device ID 54 // read Device ID
55 rcv = ps2_host_recv(); 55 rcv = ps2_host_recv_response();
56 print("ps2_mouse_init: read DevID: "); 56 print("ps2_mouse_init: read DevID: ");
57 phex(rcv); phex(ps2_error); print("\n"); 57 phex(rcv); phex(ps2_error); print("\n");
58 58
59 // send Enable Data Reporting
60 rcv = ps2_host_send(0xF4);
61 print("ps2_mouse_init: send 0xF4: ");
62 phex(rcv); phex(ps2_error); print("\n");
63
64 // send Set Remote mode 59 // send Set Remote mode
65 rcv = ps2_host_send(0xF0); 60 rcv = ps2_host_send(0xF0);
66 print("ps2_mouse_init: send 0xF0: "); 61 print("ps2_mouse_init: send 0xF0: ");