projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed CDCHost not clearing configured endpoints and resetting configured endpoints...
[pub/USBasp.git]
/
Demos
/
Host
/
KeyboardHost
/
ConfigDescriptor.c
diff --git
a/Demos/Host/KeyboardHost/ConfigDescriptor.c
b/Demos/Host/KeyboardHost/ConfigDescriptor.c
index
7cbf948
..
303f06d
100644
(file)
--- a/
Demos/Host/KeyboardHost/ConfigDescriptor.c
+++ b/
Demos/Host/KeyboardHost/ConfigDescriptor.c
@@
-91,13
+91,6
@@
uint8_t ProcessConfigurationDescriptor(void)
EndpointData->EndpointAddress, EndpointData->EndpointSize, PIPE_BANK_SINGLE);
\r
\r
Pipe_SetInfiniteINRequests();
\r
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
/* Valid data found, return success */
\r
return SuccessfulConfigRead;
\r
\r
/* Valid data found, return success */
\r
return SuccessfulConfigRead;
\r
@@
-117,13
+110,13
@@
DESCRIPTOR_COMPARATOR(NextKeyboardInterface)
{
\r
/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
\r
if ((DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Class == KEYBOARD_CLASS) &&
\r
{
\r
/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
\r
if ((DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Class == KEYBOARD_CLASS) &&
\r
- (DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).
Subclass == KEYBOARD_SUBCLASS
))
\r
+ (DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).
Protocol == KEYBOARD_PROTOCOL
))
\r
{
\r
return DESCRIPTOR_SEARCH_Found;
\r
}
\r
}
\r
\r
{
\r
return DESCRIPTOR_SEARCH_Found;
\r
}
\r
}
\r
\r
- return D
escriptor_Search
_NotFound;
\r
+ return D
ESCRIPTOR_SEARCH
_NotFound;
\r
}
\r
\r
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
\r
}
\r
\r
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
\r