SAMA5 + HID Keyboard. Fixes to initialize the HID keyboard class
This commit is contained in:
parent
26b155a4b6
commit
5bc436283d
@ -309,7 +309,9 @@ int sam_usbhost_initialize(void)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* First, register all of the class drivers needed to support the drivers
|
/* First, register all of the class drivers needed to support the drivers
|
||||||
* that we care about:
|
* that we care about
|
||||||
|
*
|
||||||
|
* Register theUSB host Mass Storage Class:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ret = usbhost_storageinit();
|
ret = usbhost_storageinit();
|
||||||
@ -318,6 +320,22 @@ int sam_usbhost_initialize(void)
|
|||||||
udbg("ERROR: Failed to register the mass storage class: %d\n", ret);
|
udbg("ERROR: Failed to register the mass storage class: %d\n", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Register the USB host HID keyboard class driver */
|
||||||
|
|
||||||
|
ret = usbhost_kbdinit();
|
||||||
|
if (ret != OK)
|
||||||
|
{
|
||||||
|
udbg("ERROR: Failed to register the KBD class\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Then get an instance of the USB host interface.
|
||||||
|
*
|
||||||
|
* REVISIT: This logic needs to be modified. There must be a call-out to
|
||||||
|
* platform specific logic to get the connection hangle. usbhost_initialize()
|
||||||
|
* is not longer common to all platforms and is no longer prototyped in
|
||||||
|
* include/nuttx/usb/usbhost.h.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_OHCI
|
#ifdef CONFIG_SAMA5_OHCI
|
||||||
/* Get an instance of the USB OHCI interface */
|
/* Get an instance of the USB OHCI interface */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user