Add missing function attributes to the pipe/endpoint functions for all architectures.
Perform endianness correction in the HID report parser for big-endian platforms.
This commit is contained in:
parent
852b5e612d
commit
995195a2b0
14 changed files with 40 additions and 24 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue