Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
86367574
Commit
86367574
authored
Sep 30, 2010
by
Dean Camera
Browse files
Fix incorrectly named configuration descriptor callback routines in the host mode class drivers.
Fix typo in MIDI low level device demo.
parent
7166c7ba
Changes
6
Show whitespace changes
Inline
Side-by-side
Demos/Device/LowLevel/MIDI/Descriptors.c
View file @
86367574
...
...
@@ -55,7 +55,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
.
VendorID
=
0x03EB
,
.
ProductID
=
0x2048
,
.
ReleaseNumber
=
VERSION_BCD
(
00
.
01
),
,
.
ReleaseNumber
=
VERSION_BCD
(
00
.
01
),
.
ManufacturerStrIndex
=
0x01
,
.
ProductStrIndex
=
0x02
,
...
...
LUFA/Drivers/USB/Class/Host/HID.c
View file @
86367574
...
...
@@ -65,8 +65,11 @@ uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
HIDInterfaceInfo
->
State
.
InterfaceNumber
=
CurrentHIDInterface
->
InterfaceNumber
;
HIDInterfaceInfo
->
State
.
SupportsBootProtocol
=
(
CurrentHIDInterface
->
SubClass
!=
HID_BOOTP_NonBootProtocol
);
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
ConfigDescriptorData
,
DCOMP_HID_NextHID
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
ConfigDescriptorData
,
DCOMP_HID_Host_NextHID
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
{
return
HID_ENUMERROR_NoCompatibleInterfaceFound
;
}
HIDInterfaceInfo
->
State
.
HIDReportSize
=
DESCRIPTOR_PCAST
(
ConfigDescriptorData
,
USB_HID_Descriptor_HID_t
)
->
HIDReportLength
;
...
...
@@ -94,8 +97,11 @@ uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
HIDInterfaceInfo
->
State
.
InterfaceNumber
=
CurrentHIDInterface
->
InterfaceNumber
;
HIDInterfaceInfo
->
State
.
SupportsBootProtocol
=
(
CurrentHIDInterface
->
SubClass
!=
HID_BOOTP_NonBootProtocol
);
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
ConfigDescriptorData
,
DCOMP_HID_NextHID
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
ConfigDescriptorData
,
DCOMP_HID_Host_NextHID
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
{
return
HID_ENUMERROR_NoCompatibleInterfaceFound
;
}
HIDInterfaceInfo
->
State
.
HIDReportSize
=
DESCRIPTOR_PCAST
(
ConfigDescriptorData
,
USB_HID_Descriptor_HID_t
)
->
HIDReportLength
;
...
...
@@ -157,7 +163,7 @@ static uint8_t DCOMP_HID_Host_NextHIDInterface(void* const CurrentDescriptor)
return
DESCRIPTOR_SEARCH_NotFound
;
}
static
uint8_t
DCOMP_HID_NextHID
(
void
*
const
CurrentDescriptor
)
static
uint8_t
DCOMP_HID_
Host_
NextHID
(
void
*
const
CurrentDescriptor
)
{
if
(
DESCRIPTOR_TYPE
(
CurrentDescriptor
)
==
HID_DTYPE_HID
)
return
DESCRIPTOR_SEARCH_Found
;
...
...
LUFA/Drivers/USB/Class/Host/HID.h
View file @
86367574
...
...
@@ -298,7 +298,7 @@
/* Function Prototypes: */
#if defined(__INCLUDE_FROM_HID_CLASS_HOST_C)
static
uint8_t
DCOMP_HID_Host_NextHIDInterface
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_HID_NextHID
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_HID_
Host_
NextHID
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_HID_Host_NextHIDInterfaceEndpoint
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
#endif
#endif
...
...
LUFA/Drivers/USB/Class/Host/Printer.c
View file @
86367574
...
...
@@ -49,7 +49,7 @@ uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceI
return
PRNT_ENUMERROR_InvalidConfigDescriptor
;
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
DeviceConfigDescriptor
,
DCOMP_PRNT_NextPRNTInterface
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
DCOMP_PRNT_
Host_
NextPRNTInterface
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
{
return
PRNT_ENUMERROR_NoCompatibleInterfaceFound
;
}
...
...
@@ -62,13 +62,13 @@ uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceI
while
(
!
(
DataINEndpoint
)
||
!
(
DataOUTEndpoint
))
{
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
DeviceConfigDescriptor
,
DCOMP_PRNT_NextPRNTInterfaceEndpoint
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
DCOMP_PRNT_
Host_
NextPRNTInterfaceEndpoint
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
{
DataINEndpoint
=
NULL
;
DataOUTEndpoint
=
NULL
;
if
(
USB_GetNextDescriptorComp
(
&
ConfigDescriptorSize
,
&
DeviceConfigDescriptor
,
DCOMP_PRNT_NextPRNTInterface
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
DCOMP_PRNT_
Host_
NextPRNTInterface
)
!=
DESCRIPTOR_SEARCH_COMP_Found
)
{
return
PRNT_ENUMERROR_NoCompatibleInterfaceFound
;
}
...
...
@@ -114,7 +114,7 @@ uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceI
return
PRNT_ENUMERROR_NoError
;
}
static
uint8_t
DCOMP_PRNT_NextPRNTInterface
(
void
*
CurrentDescriptor
)
static
uint8_t
DCOMP_PRNT_
Host_
NextPRNTInterface
(
void
*
CurrentDescriptor
)
{
if
(
DESCRIPTOR_TYPE
(
CurrentDescriptor
)
==
DTYPE_Interface
)
{
...
...
@@ -129,7 +129,7 @@ static uint8_t DCOMP_PRNT_NextPRNTInterface(void* CurrentDescriptor)
return
DESCRIPTOR_SEARCH_NotFound
;
}
static
uint8_t
DCOMP_PRNT_NextPRNTInterfaceEndpoint
(
void
*
CurrentDescriptor
)
static
uint8_t
DCOMP_PRNT_
Host_
NextPRNTInterfaceEndpoint
(
void
*
CurrentDescriptor
)
{
if
(
DESCRIPTOR_TYPE
(
CurrentDescriptor
)
==
DTYPE_Endpoint
)
{
...
...
LUFA/Drivers/USB/Class/Host/Printer.h
View file @
86367574
...
...
@@ -271,8 +271,8 @@
/* Function Prototypes: */
#if defined(__INCLUDE_FROM_PRINTER_CLASS_HOST_C)
static
uint8_t
DCOMP_PRNT_NextPRNTInterface
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_PRNT_NextPRNTInterfaceEndpoint
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_PRNT_
Host_
NextPRNTInterface
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
static
uint8_t
DCOMP_PRNT_
Host_
NextPRNTInterfaceEndpoint
(
void
*
const
CurrentDescriptor
)
ATTR_NON_NULL_PTR_ARG
(
1
);
#endif
#endif
...
...
LUFA/ManPages/FutureChanges.txt
View file @
86367574
...
...
@@ -19,7 +19,6 @@
* -# Change makefiles to allow for absolute LUFA location to be used
* -# Re-add interrupt Pipe/Endpoint support
* -# Fix intermittent device mode enumeration errors
* -# Shrink binary size for 8U2 parts
* - Documentation/Support
* -# Add detailed overviews of how each demo works
* -# Add board overviews
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment