projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix mismatched aliased event and event stub function prototypes.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Common
/
HIDParser.c
diff --git
a/LUFA/Drivers/USB/Class/Common/HIDParser.c
b/LUFA/Drivers/USB/Class/Common/HIDParser.c
index
b58c17e
..
87eaf7c
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Common/HIDParser.c
+++ b/
LUFA/Drivers/USB/Class/Common/HIDParser.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
3
.
+ Copyright (C) Dean Camera, 201
8
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
3
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
8
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
@@
-37,12
+37,12
@@
uint8_t USB_ProcessHIDReport(const uint8_t* ReportData,
HID_ReportInfo_t* const ParserData)
{
HID_StateTable_t StateTable[HID_STATETABLE_STACK_DEPTH];
HID_ReportInfo_t* const ParserData)
{
HID_StateTable_t StateTable[HID_STATETABLE_STACK_DEPTH];
- HID_StateTable_t* CurrStateTable
= &StateTable[0];
- HID_CollectionPath_t* CurrCollectionPath
= NULL;
- HID_ReportSizeInfo_t* CurrReportIDInfo
= &ParserData->ReportIDSizes[0];
+ HID_StateTable_t* CurrStateTable = &StateTable[0];
+ HID_CollectionPath_t* CurrCollectionPath = NULL;
+ HID_ReportSizeInfo_t* CurrReportIDInfo = &ParserData->ReportIDSizes[0];
uint16_t UsageList[HID_USAGE_STACK_DEPTH];
uint16_t UsageList[HID_USAGE_STACK_DEPTH];
- uint8_t UsageListSize
= 0;
- HID_MinMax_t UsageMinMax
= {0, 0};
+ uint8_t UsageListSize = 0;
+ HID_MinMax_t UsageMinMax = {0, 0};
memset(ParserData, 0x00, sizeof(HID_ReportInfo_t));
memset(CurrStateTable, 0x00, sizeof(HID_StateTable_t));
memset(ParserData, 0x00, sizeof(HID_ReportInfo_t));
memset(CurrStateTable, 0x00, sizeof(HID_StateTable_t));
@@
-92,7
+92,7
@@
uint8_t USB_ProcessHIDReport(const uint8_t* ReportData,
memcpy((CurrStateTable + 1),
CurrStateTable,
memcpy((CurrStateTable + 1),
CurrStateTable,
- sizeof(HID_
ReportItem
_t));
+ sizeof(HID_
StateTable
_t));
CurrStateTable++;
break;
CurrStateTable++;
break;
@@
-364,8
+364,8
@@
void USB_SetHIDReportItemInfo(uint8_t* ReportData,
while (DataBitsRem--)
{
while (DataBitsRem--)
{
- if (ReportItem->Value &
(1 << (CurrentBit % 8))
)
- ReportData[CurrentBit / 8] |=
BitMask
;
+ if (ReportItem->Value &
BitMask
)
+ ReportData[CurrentBit / 8] |=
(1 << (CurrentBit % 8))
;
CurrentBit++;
BitMask <<= 1;
CurrentBit++;
BitMask <<= 1;