if (wLength > ReportSize)\r
wLength = ReportSize;\r
\r
- Endpoint_ClearControlSETUP();\r
+ Endpoint_ClearSETUP();\r
\r
/* Write the report data to the control endpoint */\r
Endpoint_Write_Control_Stream_LE(ReportData, wLength);\r
memset(ReportData, 0, ReportSize);\r
\r
/* Finalize the stream transfer to send the last packet or clear the host abort */\r
- Endpoint_ClearControlOUT();\r
+ Endpoint_ClearOUT();\r
}\r
\r
break;\r
case REQ_SetReport:\r
if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))\r
{\r
- Endpoint_ClearControlSETUP();\r
+ Endpoint_ClearSETUP();\r
\r
/* Wait until the LED report has been sent by the host */\r
while (!(Endpoint_IsOUTReceived()));\r
LEDs_SetAllLEDs(LEDMask);\r
\r
/* Clear the endpoint data */\r
- Endpoint_ClearControlOUT();\r
+ Endpoint_ClearOUT();\r
\r
/* Acknowledge status stage */\r
while (!(Endpoint_IsINReady()));\r
- Endpoint_ClearControlIN();\r
+ Endpoint_ClearIN();\r
}\r
\r
break;\r