Document CDC Host class driver functions and enums.
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / USBInterrupt.c
index 56e54f2..00fe7d1 100644 (file)
@@ -209,7 +209,7 @@ ISR(USB_GEN_vect, ISR_BLOCK)
                USB_INT_Clear(USB_INT_IDTI);\r
 \r
                if (USB_DeviceState != DEVICE_STATE_Unattached)\r
                USB_INT_Clear(USB_INT_IDTI);\r
 \r
                if (USB_DeviceState != DEVICE_STATE_Unattached)\r
-                 EVENT_USB_Disconnect();\r
+                 EVENT_USB_Device_Disconnect();\r
 \r
                if (USB_HostState != HOST_STATE_Unattached)\r
                  EVENT_USB_Host_DeviceUnattached();\r
 \r
                if (USB_HostState != HOST_STATE_Unattached)\r
                  EVENT_USB_Host_DeviceUnattached();\r
@@ -223,7 +223,7 @@ ISR(USB_GEN_vect, ISR_BLOCK)
 }\r
 \r
 #if defined(INTERRUPT_CONTROL_ENDPOINT)\r
 }\r
 \r
 #if defined(INTERRUPT_CONTROL_ENDPOINT)\r
-ISR(USB_COM_vect, ISR_NOBLOCK)\r
+ISR(USB_COM_vect, ISR_BLOCK)\r
 {\r
        uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();\r
 \r
 {\r
        uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();\r
 \r
@@ -231,6 +231,6 @@ ISR(USB_COM_vect, ISR_NOBLOCK)
 \r
        USB_INT_Clear(USB_INT_ENDPOINT_SETUP);\r
        \r
 \r
        USB_INT_Clear(USB_INT_ENDPOINT_SETUP);\r
        \r
-       Endpoint_SelectEndpoint(PrevSelectedEndpoint);  \r
+       Endpoint_SelectEndpoint(PrevSelectedEndpoint);\r
 }\r
 #endif\r
 }\r
 #endif\r