Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
ba7cd3f2
Commit
ba7cd3f2
authored
Apr 20, 2009
by
Dean Camera
Browse files
Fix errors in the KeyboardHost demo which prevented correct compilation.
parent
37b2130f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Demos/Host/KeyboardHost/ConfigDescriptor.c
View file @
ba7cd3f2
...
@@ -117,13 +117,13 @@ DESCRIPTOR_COMPARATOR(NextKeyboardInterface)
...
@@ -117,13 +117,13 @@ DESCRIPTOR_COMPARATOR(NextKeyboardInterface)
{
{
/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
if
((
DESCRIPTOR_CAST
(
CurrentDescriptor
,
USB_Descriptor_Interface_t
).
Class
==
KEYBOARD_CLASS
)
&&
if
((
DESCRIPTOR_CAST
(
CurrentDescriptor
,
USB_Descriptor_Interface_t
).
Class
==
KEYBOARD_CLASS
)
&&
(
DESCRIPTOR_CAST
(
CurrentDescriptor
,
USB_Descriptor_Interface_t
).
Subclass
==
KEYBOARD_
SUBCLASS
))
(
DESCRIPTOR_CAST
(
CurrentDescriptor
,
USB_Descriptor_Interface_t
).
Protocol
==
KEYBOARD_
PROTOCOL
))
{
{
return
DESCRIPTOR_SEARCH_Found
;
return
DESCRIPTOR_SEARCH_Found
;
}
}
}
}
return
D
escriptor_Search
_NotFound
;
return
D
ESCRIPTOR_SEARCH
_NotFound
;
}
}
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's
...
...
Demos/Host/makefile
View file @
ba7cd3f2
...
@@ -21,7 +21,7 @@ all:
...
@@ -21,7 +21,7 @@ all:
make
-C
GenericHIDHost
all
make
-C
GenericHIDHost
all
make
-C
KeyboardHost
clean
make
-C
KeyboardHost
clean
make
-C
KeyboardHost
WithParser
all
make
-C
KeyboardHost
all
make
-C
MassStorageHost
clean
make
-C
MassStorageHost
clean
make
-C
MassStorageHost
all
make
-C
MassStorageHost
all
...
...
Write
Preview
Supports
Markdown
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