Combined Keyboad and Mouse normal and interrupt driven host demos into unified Keyboard and Mouse host demos.
This commit is contained in:
parent
ee7bd5685e
commit
ecf7538430
29 changed files with 200 additions and 5930 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue