Make naming consistent for USB host initialiation functions
This commit is contained in:
parent
e9252b8806
commit
0a11d8767f
6 changed files with 6 additions and 12 deletions
|
@ -279,7 +279,7 @@ static int nsh_usbhostinitialize(void)
|
|||
/* Then get an instance of the USB host interface */
|
||||
|
||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||
g_usbconn = usbhost_initialize(0);
|
||||
g_usbconn = lpc17_usbhost_initialize(0);
|
||||
if (g_usbconn)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
|
|
@ -336,7 +336,7 @@ static int nsh_usbhostinitialize(void)
|
|||
/* Then get an instance of the USB host interface */
|
||||
|
||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||
g_usbconn = usbhost_initialize(0);
|
||||
g_usbconn = lpc17_usbhost_initialize(0);
|
||||
if (g_usbconn)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
|
|
@ -300,7 +300,7 @@ static int nsh_usbhostinitialize(void)
|
|||
/* Then get an instance of the USB host interface */
|
||||
|
||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||
g_usbconn = usbhost_initialize(0);
|
||||
g_usbconn = pic32_usbhost_initialize(0);
|
||||
if (g_usbconn)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
|
|
@ -308,7 +308,7 @@ static int nsh_usbhostinitialize(void)
|
|||
/* Then get an instance of the USB host interface */
|
||||
|
||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||
g_usbconn = usbhost_initialize(0);
|
||||
g_usbconn = pic32_usbhost_initialize(0);
|
||||
if (g_usbconn)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
|
|
@ -328,13 +328,7 @@ int sam_usbhost_initialize(void)
|
|||
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.
|
||||
*/
|
||||
/* Then get an instance of the USB host interface. */
|
||||
|
||||
#ifdef CONFIG_SAMA5_OHCI
|
||||
/* Get an instance of the USB OHCI interface */
|
||||
|
|
|
@ -300,7 +300,7 @@ static int nsh_usbhostinitialize(void)
|
|||
/* Then get an instance of the USB host interface */
|
||||
|
||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||
g_usbconn = usbhost_initialize(0);
|
||||
g_usbconn = pic32_usbhost_initialize(0);
|
||||
if (g_usbconn)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
|
Loading…
Reference in a new issue