mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Make naming consistent for USB host initialiation functions
This commit is contained in:
@@ -279,7 +279,7 @@ static int nsh_usbhostinitialize(void)
|
|||||||
/* Then get an instance of the USB host interface */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||||
g_usbconn = usbhost_initialize(0);
|
g_usbconn = lpc17_usbhost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* 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 */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||||
g_usbconn = usbhost_initialize(0);
|
g_usbconn = lpc17_usbhost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* 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 */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||||
g_usbconn = usbhost_initialize(0);
|
g_usbconn = pic32_usbhost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* 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 */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||||
g_usbconn = usbhost_initialize(0);
|
g_usbconn = pic32_usbhost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* 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");
|
udbg("ERROR: Failed to register the KBD class\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then get an instance of the USB host interface.
|
/* 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 */
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ static int nsh_usbhostinitialize(void)
|
|||||||
/* Then get an instance of the USB host interface */
|
/* Then get an instance of the USB host interface */
|
||||||
|
|
||||||
message("nsh_usbhostinitialize: Initialize USB host\n");
|
message("nsh_usbhostinitialize: Initialize USB host\n");
|
||||||
g_usbconn = usbhost_initialize(0);
|
g_usbconn = pic32_usbhost_initialize(0);
|
||||||
if (g_usbconn)
|
if (g_usbconn)
|
||||||
{
|
{
|
||||||
/* Start a thread to handle device connection. */
|
/* Start a thread to handle device connection. */
|
||||||
|
|||||||
Reference in New Issue
Block a user