Make naming consistent for USB host initialiation functions

This commit is contained in:
Gregory Nutt 2013-11-29 14:30:43 -06:00
parent 4c7cc446c1
commit 25f7e45708
8 changed files with 10 additions and 16 deletions

View File

@ -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;

View File

@ -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

View File

@ -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. */

View File

@ -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. */

View File

@ -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. */

View File

@ -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. */

View File

@ -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 */

View File

@ -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. */