projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added const modifiers to device mode class drivers.
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Device
/
HID.c
diff --git
a/LUFA/Drivers/USB/Class/Device/HID.c
b/LUFA/Drivers/USB/Class/Device/HID.c
index
c37dc5d
..
d032086
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Device/HID.c
+++ b/
LUFA/Drivers/USB/Class/Device/HID.c
@@
-33,7
+33,7
@@
\r
#include "HID.h"
\r
\r
\r
#include "HID.h"
\r
\r
-void HID_Device_ProcessControlPacket(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo)
\r
+void HID_Device_ProcessControlPacket(USB_ClassInfo_HID_Device_t*
const
HIDInterfaceInfo)
\r
{
\r
if (!(Endpoint_IsSETUPReceived()))
\r
return;
\r
{
\r
if (!(Endpoint_IsSETUPReceived()))
\r
return;
\r
@@
-130,7
+130,7
@@
void HID_Device_ProcessControlPacket(USB_ClassInfo_HID_Device_t* HIDInterfaceInf
}
\r
}
\r
\r
}
\r
}
\r
\r
-bool HID_Device_ConfigureEndpoints(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo)
\r
+bool HID_Device_ConfigureEndpoints(USB_ClassInfo_HID_Device_t*
const
HIDInterfaceInfo)
\r
{
\r
HIDInterfaceInfo->State.UsingReportProtocol = true;
\r
\r
{
\r
HIDInterfaceInfo->State.UsingReportProtocol = true;
\r
\r
@@
-143,7
+143,7
@@
bool HID_Device_ConfigureEndpoints(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo)
return true;
\r
}
\r
\r
return true;
\r
}
\r
\r
-void HID_Device_USBTask(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo)
\r
+void HID_Device_USBTask(USB_ClassInfo_HID_Device_t*
const
HIDInterfaceInfo)
\r
{
\r
if (!(USB_IsConnected))
\r
return;
\r
{
\r
if (!(USB_IsConnected))
\r
return;
\r