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 | |
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')
-rw-r--r-- | LUFA/Drivers/USB/Class/Common/HIDParser.c | 4 | ||||
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/Audio.c | 4 |
2 files changed, 3 insertions, 5 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; diff --git a/LUFA/Drivers/USB/Class/Device/Audio.c b/LUFA/Drivers/USB/Class/Device/Audio.c index 986e73f9c..f18db7456 100644 --- a/LUFA/Drivers/USB/Class/Device/Audio.c +++ b/LUFA/Drivers/USB/Class/Device/Audio.c @@ -88,9 +88,7 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn } if (!(Endpoint_ConfigureEndpoint(EndpointNum, Type, Direction, Size, ENDPOINT_BANK_DOUBLE))) - { - return false; - } + return false; } return true; |