Skip to content
Snippets Groups Projects
Commit 44e0a837 authored by Michał Łyszczek's avatar Michał Łyszczek
Browse files

Add usb mouse and hub support

parent e7445f95
No related branches found
No related tags found
No related merge requests found
......@@ -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)))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment