X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=ps2_mouse.c;h=f796b2b4dea636749ba2cb19369abfc510d4570e;hb=3f0289e66678af8c2d1f001ccb9cb34ccfba7c5c;hp=7ff9882462571577c745328e787014bfdf1ceedf;hpb=7272c65d3d24187487e7d38e332401002f5f233b;p=max%2Ftmk_keyboard.git diff --git a/ps2_mouse.c b/ps2_mouse.c index 7ff98824..f796b2b4 100644 --- a/ps2_mouse.c +++ b/ps2_mouse.c @@ -1,3 +1,20 @@ +/* +Copyright 2011 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + #include #include #include @@ -50,6 +67,8 @@ uint8_t ps2_mouse_init(void) { if (!ps2_mouse_enable) return 1; + ps2_host_init(); + // Reset rcv = ps2_host_send(0xFF); print("ps2_mouse_init: send 0xFF: ");