Removed specialized Endpoint_ClearControl* and Pipe_ClearControl* macros in favour...
[pub/USBasp.git] / Demos / Device / AudioOutput / AudioOutput.c
index aae0168..ba9a499 100644 (file)
@@ -166,7 +166,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
                        {\r
                                uint16_t wValue = Endpoint_Read_Word_LE();\r
                                \r
-                               Endpoint_ClearControlSETUP();\r
+                               Endpoint_ClearSETUP();\r
                                \r
                                /* Check if the host is enabling the audio interface (setting AlternateSetting to 1) */\r
                                if (wValue)\r
@@ -182,7 +182,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
                                \r
                                /* Acknowledge status stage */\r
                                while (!(Endpoint_IsINReady()));\r
-                               Endpoint_ClearControlIN();\r
+                               Endpoint_ClearIN();\r
                        }\r
 \r
                        break;\r