- #endif\r
- }\r
-}\r
-\r
-#if defined(INTERRUPT_DATA_PIPE)\r
-/** Interrupt handler for the Endpoint/Pipe interrupt vector. This interrupt fires each time an enabled\r
- * pipe interrupt occurs on a pipe which has had that interrupt enabled.\r
- */\r
-ISR(ENDPOINT_PIPE_vect, ISR_BLOCK)\r
-{\r
- /* Save previously selected pipe before selecting a new pipe */\r
- uint8_t PrevSelectedPipe = Pipe_GetCurrentPipe();\r
-\r
- /* Check to see if the mouse data pipe has caused the interrupt */\r
- if (Pipe_HasPipeInterrupted(MOUSE_DATAPIPE))\r
- {\r
- /* Clear the pipe interrupt, and select the mouse pipe */\r
- Pipe_ClearPipeInterrupt(MOUSE_DATAPIPE);\r
- Pipe_SelectPipe(MOUSE_DATAPIPE); \r
-\r
- /* Check to see if the pipe IN interrupt has fired */\r
- if (USB_INT_HasOccurred(PIPE_INT_IN) && USB_INT_IsEnabled(PIPE_INT_IN))\r
- {\r
- /* Clear interrupt flag */\r
- USB_INT_Clear(PIPE_INT_IN); \r
-\r
- /* Read and process the next report from the device */\r
- ReadNextReport();\r
- }\r