projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed incorrect definition of the HID_KEYBOARD_SC_RIGHT_ARROW constant in the HID...
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
MouseHost
/
MouseHost.c
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.c
b/Demos/Host/LowLevel/MouseHost/MouseHost.c
index
a7bda5a
..
4e9a038
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.c
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
0
.
+ Copyright (C) Dean Camera, 201
1
.
dean [at] fourwalledcubicle [dot] com
dean [at] fourwalledcubicle [dot] com
- www.fourwalledcubicle.com
+ www.lufa-lib.org
*/
/*
*/
/*
- Copyright 201
0
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-153,7
+153,7
@@
void ReadNextReport(void)
if (Pipe_IsReadWriteAllowed())
{
/* Read in mouse report data */
if (Pipe_IsReadWriteAllowed())
{
/* Read in mouse report data */
- Pipe_Read_Stream_LE(&MouseReport, sizeof(MouseReport));
+ Pipe_Read_Stream_LE(&MouseReport, sizeof(MouseReport)
, NULL
);
/* Alter status LEDs according to mouse X movement */
if (MouseReport.X > 0)
/* Alter status LEDs according to mouse X movement */
if (MouseReport.X > 0)
@@
-235,7
+235,7
@@
void Mouse_HID_Task(void)
USB_ControlRequest = (USB_Request_Header_t)
{
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
USB_ControlRequest = (USB_Request_Header_t)
{
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
- .bRequest = REQ_SetProtocol,
+ .bRequest =
HID_
REQ_SetProtocol,
.wValue = 0,
.wIndex = 0,
.wLength = 0,
.wValue = 0,
.wIndex = 0,
.wLength = 0,