aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/Joystick/Joystick.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-06-05 02:23:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-06-05 02:23:31 +0000
commit3d1baa6f953c3c78c78c31466c4f551123e84415 (patch)
tree1c2d538c56bb15f2a903a4a1f9e49cd41c3fe38d /Demos/Device/Joystick/Joystick.c
parent7665bf323e76ed1ebcfd137e2ab0bd356b43a5e8 (diff)
downloadlufa-3d1baa6f953c3c78c78c31466c4f551123e84415.tar.gz
lufa-3d1baa6f953c3c78c78c31466c4f551123e84415.tar.bz2
lufa-3d1baa6f953c3c78c78c31466c4f551123e84415.zip
Added multiple Report ID support to the HID class driver. Removed OUT endpoint support from HID driver (all OUT reports are now processed through control requests) as a seperate endpoint had issues with determining the exact output report length.
Diffstat (limited to 'Demos/Device/Joystick/Joystick.c')
-rw-r--r--Demos/Device/Joystick/Joystick.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Demos/Device/Joystick/Joystick.c b/Demos/Device/Joystick/Joystick.c
index 66cb808d0..1cf59bbfd 100644
--- a/Demos/Device/Joystick/Joystick.c
+++ b/Demos/Device/Joystick/Joystick.c
@@ -132,7 +132,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK)
*
* \return Number of bytes written in the report (or zero if no report is to be sent
*/
-uint16_t CALLBACK_USB_HID_CreateNextHIDReport(USB_ClassInfo_HID_t* HIDInterfaceInfo, void* ReportData)
+uint16_t CALLBACK_USB_HID_CreateNextHIDReport(USB_ClassInfo_HID_t* HIDInterfaceInfo, uint8_t* ReportID, void* ReportData)
{
USB_JoystickReport_Data_t* JoystickReport = (USB_JoystickReport_Data_t*)ReportData;
@@ -164,7 +164,8 @@ uint16_t CALLBACK_USB_HID_CreateNextHIDReport(USB_ClassInfo_HID_t* HIDInterfaceI
* \param ReportData Pointer to a buffer where the created report has been stored
* \param ReportSize Size in bytes of the received HID report
*/
-void CALLBACK_USB_HID_ProcessReceivedHIDReport(USB_ClassInfo_HID_t* HIDInterfaceInfo, void* ReportData, uint16_t ReportSize)
+void CALLBACK_USB_HID_ProcessReceivedHIDReport(USB_ClassInfo_HID_t* HIDInterfaceInfo, uint8_t ReportID,
+ void* ReportData, uint16_t ReportSize)
{
// Unused (but mandatory for the HID class driver) in this demo, since there are no Host->Device reports
}