diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-12 03:03:56 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-12 03:03:56 +0000 |
commit | 995195a2b06142fb0882cf116a12bdab8e19603f (patch) | |
tree | b560fb306c067c44266a494f2d40f16132e0a9f4 /LUFA/Drivers/USB/Class/Common | |
parent | 852b5e612d549d1f086ceca4df0b589ac24cb37f (diff) | |
download | lufa-995195a2b06142fb0882cf116a12bdab8e19603f.tar.gz lufa-995195a2b06142fb0882cf116a12bdab8e19603f.tar.bz2 lufa-995195a2b06142fb0882cf116a12bdab8e19603f.zip |
Add missing function attributes to the pipe/endpoint functions for all architectures.
Perform endianness correction in the HID report parser for big-endian platforms.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Common')
-rw-r--r-- | LUFA/Drivers/USB/Class/Common/HIDParser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/HIDParser.c b/LUFA/Drivers/USB/Class/Common/HIDParser.c index f6c48fdad..20fceab64 100644 --- a/LUFA/Drivers/USB/Class/Common/HIDParser.c +++ b/LUFA/Drivers/USB/Class/Common/HIDParser.c @@ -61,12 +61,12 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, switch (HIDReportItem & HID_RI_DATA_SIZE_MASK) { case HID_RI_DATA_BITS_32: - ReportItemData = *((uint32_t*)ReportData); + ReportItemData = le32_to_cpu(*((uint32_t*)ReportData)); ReportSize -= 4; ReportData += 4; break; case HID_RI_DATA_BITS_16: - ReportItemData = *((uint16_t*)ReportData); + ReportItemData = le16_to_cpu(*((uint16_t*)ReportData)); ReportSize -= 2; ReportData += 2; break; |