aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/KeyboardHost/ConfigDescriptor.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-03-20 05:39:15 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-03-20 05:39:15 +0000
commitecf7538430c01b95104682f0f7493e57b9168125 (patch)
tree5243014d8735f14a0841f793738c8ca51f46f783 /Demos/KeyboardHost/ConfigDescriptor.c
parentee7bd5685e000b3a128069fd75d436c653ab54b2 (diff)
downloadlufa-ecf7538430c01b95104682f0f7493e57b9168125.tar.gz
lufa-ecf7538430c01b95104682f0f7493e57b9168125.tar.bz2
lufa-ecf7538430c01b95104682f0f7493e57b9168125.zip
Combined Keyboad and Mouse normal and interrupt driven host demos into unified Keyboard and Mouse host demos.
Diffstat (limited to 'Demos/KeyboardHost/ConfigDescriptor.c')
-rw-r--r--Demos/KeyboardHost/ConfigDescriptor.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Demos/KeyboardHost/ConfigDescriptor.c b/Demos/KeyboardHost/ConfigDescriptor.c
index 7a704cfc8..9d1a630ad 100644
--- a/Demos/KeyboardHost/ConfigDescriptor.c
+++ b/Demos/KeyboardHost/ConfigDescriptor.c
@@ -77,7 +77,7 @@ uint8_t ProcessConfigurationDescriptor(void)
/* Get the keyboard interface's data endpoint descriptor */
if (USB_Host_GetNextDescriptorComp(&ConfigDescriptorSize, &ConfigDescriptorData,
- NextInterfaceKeyboardDataEndpoint))
+ NextInterfaceKeyboardDataEndpoint))
{
/* Descriptor not found, error out */
return NoEndpointFound;
@@ -91,6 +91,15 @@ uint8_t ProcessConfigurationDescriptor(void)
EndpointData->EndpointAddress, EndpointData->EndpointSize, PIPE_BANK_SINGLE);
Pipe_SetInfiniteINRequests();
+
+ #if defined(INTERRUPT_DATA_PIPE)
+ Pipe_SetInterruptPeriod(EndpointData->PollingIntervalMS);
+
+ /* Enable the pipe IN interrupt for the data pipe */
+ USB_INT_Enable(PIPE_INT_IN);
+ #endif
+
+ Pipe_Unfreeze();
/* Valid data found, return success */
return SuccessfulConfigRead;