diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-07-27 16:23:23 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-07-27 16:23:23 +0200 |
commit | 6bf8000e6322da88f91f7eb53f510c2ba72743e5 (patch) | |
tree | c60d1659baa463fd12335ea229174a5f9ccd0398 /protocol/serial_mouse.h | |
parent | 79840c678e13f9a737f80048bc3b9c9c55e3fc77 (diff) |
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.
Diffstat (limited to 'protocol/serial_mouse.h')
-rw-r--r-- | protocol/serial_mouse.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/protocol/serial_mouse.h b/protocol/serial_mouse.h new file mode 100644 index 0000000000..c3c19d7696 --- /dev/null +++ b/protocol/serial_mouse.h @@ -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 |