Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
44e0a837
Commit
44e0a837
authored
8 years ago
by
Michał Łyszczek
Browse files
Options
Downloads
Patches
Plain Diff
Add usb mouse and hub support
parent
e7445f95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configs/stm32butterfly2/src/stm32_usbhost.c
+14
-1
14 additions, 1 deletion
configs/stm32butterfly2/src/stm32_usbhost.c
with
14 additions
and
1 deletion
configs/stm32butterfly2/src/stm32_usbhost.c
+
14
−
1
View file @
44e0a837
...
...
@@ -127,10 +127,23 @@ int stm32_usbhost_initialize(void)
#ifdef CONFIG_USBHOST_HIDKBD
if
((
rv
=
usbhost_kbdinit
())
<
0
)
{
uerr
(
"ERROR: Failed to register the KBD class
\n
"
);
uerr
(
"ERROR: Failed to register the KBD class
: %d
\n
"
,
rv
);
}
#endif
#ifdef CONFIG_USBHOST_HIDMOUSE
if
((
rv
=
usbhost_mouse_init
())
<
0
)
{
uerr
(
"ERROR: Failed to register the mouse class: %d
\n
"
,
rv
);
}
#endif
#ifdef CONFIG_USBHOST_HUB
if
((
rv
=
usbhost_hub_initialize
())
<
0
)
{
uerr
(
"ERROR: Failed to register hub class: %d
\n
"
,
rv
);
}
#endif
if
((
g_usbconn
=
stm32_otgfshost_initialize
(
0
)))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment