summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-02 20:05:28 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-02 20:05:28 +0000
commit1790044dc64c1edd78db07c19c910fa9fd794f9c (patch)
tree6e834dfe12f90f21e7907c6b1e519a28399e3438 /nuttx/arch/arm/src/lpc17xx
parentc9cd8b75048e6a0b8b41ece1da572b032aba67c7 (diff)
downloadpx4-nuttx-1790044dc64c1edd78db07c19c910fa9fd794f9c.tar.gz
px4-nuttx-1790044dc64c1edd78db07c19c910fa9fd794f9c.tar.bz2
px4-nuttx-1790044dc64c1edd78db07c19c910fa9fd794f9c.zip
FunctionAddress no longer hard-coded
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3231 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx')
-rwxr-xr-xnuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
index d9b994440..6a1fbeeb2 100755
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
@@ -929,10 +929,12 @@ static int lpc17_enumerate(FAR struct usbhost_driver_s *drvr)
lpc17_putreg(OHCI_RHPORTST_PRSC, LPC17_USBHOST_RHPORTST1);
up_mdelay(200);
- /* Let the common usbhost_enumerate do all of the real work */
+ /* Let the common usbhost_enumerate do all of the real work. Note that the
+ * FunctionAddress (USB address) is hardcoded to one.
+ */
uvdbg("Enumerate the device\n");
- return usbhost_enumerate(drvr, &priv->class);
+ return usbhost_enumerate(drvr, 1, &priv->class);
}
/************************************************************************************
@@ -1239,7 +1241,7 @@ static int lpc17_transfer(FAR struct usbhost_driver_s *drvr,
/* Get the direction of the endpoint */
- if (ep->in)
+ if (ep->in != 0)
{
ed->ctrl |= ED_CONTROL_D_IN;
dirpid = GTD_STATUS_DP_IN;