case REQ_GetReport:\r
if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))\r
{\r
+ uint8_t GenericData[GENERIC_REPORT_SIZE];\r
+\r
Endpoint_ClearSETUP();\r
\r
- uint8_t GenericData[GENERIC_REPORT_SIZE];\r
- \r
CreateGenericHIDReport(GenericData);\r
\r
/* Write the report data to the control endpoint */\r
case REQ_SetReport:\r
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))\r
{\r
+ uint8_t GenericData[GENERIC_REPORT_SIZE];\r
+\r
Endpoint_ClearSETUP();\r
\r
/* Wait until the generic report has been sent by the host */\r
while (!(Endpoint_IsOUTReceived()));\r
\r
- uint8_t GenericData[GENERIC_REPORT_SIZE];\r
-\r
Endpoint_Read_Control_Stream_LE(&GenericData, sizeof(GenericData));\r
\r
ProcessGenericHIDReport(GenericData);\r