projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific functions...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
ConfigDescriptor.c
diff --git
a/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.c
b/LUFA/Drivers/USB/HighLevel/ConfigDescriptor.c
index
f6a6e5e
..
ffac8ae
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/ConfigDescriptor.c
+++ b/
LUFA/Drivers/USB/HighLevel/ConfigDescriptor.c
@@
-114,17
+114,17
@@
void USB_GetNextDescriptorOfTypeAfter(uint16_t* const BytesRem,
USB_GetNextDescriptorOfType(BytesRem, CurrConfigLoc, Type);
}
USB_GetNextDescriptorOfType(BytesRem, CurrConfigLoc, Type);
}
-uint8_t USB_GetNextDescriptorComp(uint16_t* BytesRem, void**
CurrConfigLoc, ConfigComparatorPtr_
t ComparatorRoutine)
+uint8_t USB_GetNextDescriptorComp(uint16_t* BytesRem, void**
const CurrConfigLoc, ConfigComparatorPtr_t cons
t ComparatorRoutine)
{
uint8_t ErrorCode;
while (*BytesRem)
{
{
uint8_t ErrorCode;
while (*BytesRem)
{
- uint8_t*
PrevDescLoc = *CurrConfigLoc;
- uint16_t
PrevBytesRem = *BytesRem;
+ uint8_t* PrevDescLoc = *CurrConfigLoc;
+ uint16_t PrevBytesRem = *BytesRem;
USB_GetNextDescriptor(BytesRem, CurrConfigLoc);
USB_GetNextDescriptor(BytesRem, CurrConfigLoc);
-
+
if ((ErrorCode = ComparatorRoutine(*CurrConfigLoc)) != DESCRIPTOR_SEARCH_NotFound)
{
if (ErrorCode == DESCRIPTOR_SEARCH_Fail)
if ((ErrorCode = ComparatorRoutine(*CurrConfigLoc)) != DESCRIPTOR_SEARCH_NotFound)
{
if (ErrorCode == DESCRIPTOR_SEARCH_Fail)