Browse Source

factored out serial_mouse_init() into serial_mouse.h

pull/12/head
Robin Haberkorn 10 years ago
parent
commit
0bfba7acc4
3 changed files with 8 additions and 13 deletions
  1. +8
    -1
      protocol/serial_mouse.h
  2. +0
    -6
      protocol/serial_mouse_microsoft.c
  3. +0
    -6
      protocol/serial_mouse_mousesystems.c

+ 8
- 1
protocol/serial_mouse.h View File

@ -20,7 +20,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h>
uint8_t serial_mouse_init(void);
#include "serial.h"
static inline uint8_t serial_mouse_init(void)
{
serial_init();
return 0;
}
void serial_mouse_task(void);
#endif

+ 0
- 6
protocol/serial_mouse_microsoft.c View File

@ -29,12 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static void print_usb_data(const report_mouse_t *report);
uint8_t serial_mouse_init(void)
{
serial_init();
return 0;
}
void serial_mouse_task(void)
{
/* 3 byte ring buffer */


+ 0
- 6
protocol/serial_mouse_mousesystems.c View File

@ -31,12 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static void print_usb_data(const report_mouse_t *report);
uint8_t serial_mouse_init(void)
{
serial_init();
return 0;
}
void serial_mouse_task(void)
{
/* 5 byte ring buffer */


Loading…
Cancel
Save