Combined Keyboad and Mouse normal and interrupt driven host demos into unified Keyboa...
[pub/lufa.git] / Demos / KeyboardHost / ConfigDescriptor.c
index 7a704cf..9d1a630 100644 (file)
@@ -77,7 +77,7 @@ uint8_t ProcessConfigurationDescriptor(void)
 \r
        /* Get the keyboard interface's data endpoint descriptor */\r
        if (USB_Host_GetNextDescriptorComp(&ConfigDescriptorSize, &ConfigDescriptorData,\r
-                                                       NextInterfaceKeyboardDataEndpoint))\r
+                                          NextInterfaceKeyboardDataEndpoint))\r
        {\r
                /* Descriptor not found, error out */\r
                return NoEndpointFound;\r
@@ -91,6 +91,15 @@ uint8_t ProcessConfigurationDescriptor(void)
                           EndpointData->EndpointAddress, EndpointData->EndpointSize, PIPE_BANK_SINGLE);\r
 \r
        Pipe_SetInfiniteINRequests();\r
+\r
+       #if defined(INTERRUPT_DATA_PIPE)\r
+       Pipe_SetInterruptPeriod(EndpointData->PollingIntervalMS);\r
+\r
+       /* Enable the pipe IN interrupt for the data pipe */\r
+       USB_INT_Enable(PIPE_INT_IN);    \r
+       #endif\r
+\r
+       Pipe_Unfreeze();\r
                        \r
        /* Valid data found, return success */\r
        return SuccessfulConfigRead;\r