Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
fa5c8700
Commit
fa5c8700
authored
Mar 23, 2011
by
Dean Camera
Browse files
Fix corner case in the HID report descriptor Mouse/Joystick tempates at the 8/16 bit boundary.
parent
f5950435
Changes
2
Hide whitespace changes
Inline
Side-by-side
LUFA/CodeTemplates/makefile_template
View file @
fa5c8700
...
...
@@ -88,7 +88,7 @@ F_CPU = ### INSERT PRESCALED SYSTEM CLOCK SPEED HERE, IN HZ ###
# Input clock frequency.
# This will define a symbol, F_
CLOCK
, in all source code files equal to the
# This will define a symbol, F_
USB
, in all source code files equal to the
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
...
...
@@ -98,7 +98,7 @@ F_CPU = ### INSERT PRESCALED SYSTEM CLOCK SPEED HERE, IN HZ ###
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_
CLOCK
=
### INSERT
RAW INPUT CLOCK SPEED
HERE, IN HZ ###
F_
USB
=
### INSERT
CLOCK TO USB MODULE
HERE, IN HZ ###
# Output format. (can be srec, ihex, binary)
...
...
LUFA/Drivers/USB/Class/Common/HID.h
View file @
fa5c8700
...
...
@@ -360,7 +360,7 @@
HID_RI_PHYSICAL_MINIMUM(16, MinPhysicalVal), \
HID_RI_PHYSICAL_MAXIMUM(16, MaxPhysicalVal), \
HID_RI_REPORT_COUNT(8, 0x02), \
HID_RI_REPORT_SIZE(8, ((((
(uint16_t)
MinAxisVal >
0xFF) && (
(uint16_t)
MaxAxisVal < 0xFF)) ? 8 : 16))), \
HID_RI_REPORT_SIZE(8, ((((MinAxisVal >
= -
0xFF) && (MaxAxisVal <
=
0xFF)) ? 8 : 16))), \
HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE), \
HID_RI_END_COLLECTION(0), \
HID_RI_USAGE_PAGE(8, 0x09), \
...
...
@@ -476,7 +476,7 @@
HID_RI_PHYSICAL_MINIMUM(16, MinPhysicalVal), \
HID_RI_PHYSICAL_MAXIMUM(16, MaxPhysicalVal), \
HID_RI_REPORT_COUNT(8, 0x02), \
HID_RI_REPORT_SIZE(8, ((((
(uint16_t)
MinAxisVal >
0xFF) && (
(uint16_t)
MaxAxisVal < 0xFF)) ? 8 : 16))), \
HID_RI_REPORT_SIZE(8, ((((MinAxisVal >
= -
0xFF) && (MaxAxisVal <
=
0xFF)) ? 8 : 16))), \
HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | (AbsoluteCoords ? HID_IOF_ABSOLUTE : HID_IOF_RELATIVE)), \
HID_RI_END_COLLECTION(0), \
HID_RI_END_COLLECTION(0)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment