1
0
Fork 0

added serial mouse driver for Microsoft and Mousesystems mice

* Both drivers use the interface defined in serial_mouse.h
 * They should work with any UART implementation (hardware/software UART)
 * The Microsoft driver is currently untested.
   The Mousesystems driver is confirmed to work.
This commit is contained in:
Robin Haberkorn 2014-07-27 16:23:23 +02:00
parent 79840c678e
commit 6bf8000e63
3 changed files with 291 additions and 0 deletions

26
protocol/serial_mouse.h Normal file
View file

@ -0,0 +1,26 @@
/*
Copyright 2011 Jun Wako <wakojun@gmail.com>
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 <http://www.gnu.org/licenses/>.
*/
#ifndef SERIAL_MOUSE_H
#define SERIAL_MOUSE_H
#include <stdint.h>
uint8_t serial_mouse_init(void);
void serial_mouse_task(void);
#endif