Skip to content
Snippets Groups Projects
Commit 25f7e457 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Make naming consistent for USB host initialiation functions

parent 4c7cc446
No related branches found
No related tags found
No related merge requests found
......@@ -2502,7 +2502,7 @@ static inline void lpc17_ep0init(struct lpc17_usbhost_s *priv)
*******************************************************************************/
/*******************************************************************************
* Name: usbhost_initialize
* Name: lpc17_usbhost_initialize
*
* Description:
* Initialize USB host device controller hardware.
......@@ -2526,7 +2526,7 @@ static inline void lpc17_ep0init(struct lpc17_usbhost_s *priv)
*
*******************************************************************************/
FAR struct usbhost_connection_s *usbhost_initialize(int controller)
FAR struct usbhost_connection_s *lpc17_usbhost_initialize(int controller)
{
struct lpc17_usbhost_s *priv = &g_usbhost;
uint32_t regval;
......
......@@ -70,7 +70,7 @@ extern "C"
#endif
/*******************************************************************************
* Name: usbhost_initialize
* Name: lpc17_usbhost_initialize
*
* Description:
* Initialize USB host device controller hardware.
......@@ -96,7 +96,7 @@ extern "C"
#ifdef CONFIG_USBHOST
struct usbhost_connection_s;
FAR struct usbhost_connection_s *usbhost_initialize(int controller);
FAR struct usbhost_connection_s *lpc17_usbhost_initialize(int controller);
#endif
#undef EXTERN
......
......@@ -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. */
......
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