diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-19 08:33:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-19 08:33:15 -0600 |
commit | d9551e482b4d8ec75b5e165360fa464bc23615db (patch) | |
tree | 047d7ea3808de39819a37f39c281aafd7a1ad845 /nuttx/arch/arm/src/lpc17xx | |
parent | 40e3279be9cac8af34e1325ac6cf8ac2d6b1a22a (diff) | |
download | nuttx-d9551e482b4d8ec75b5e165360fa464bc23615db.tar.gz nuttx-d9551e482b4d8ec75b5e165360fa464bc23615db.tar.bz2 nuttx-d9551e482b4d8ec75b5e165360fa464bc23615db.zip |
LPC17 USB Host: Minor clean-up after performing some regressin testing
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c index 4efdcbdfa..1e1681ee5 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -1,7 +1,7 @@ /******************************************************************************* * arch/arm/src/lpc17xx/lpc17_usbhost.c * - * Copyright (C) 2010-2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2010-2012, 2014 Gregory Nutt. All rights reserved. * Authors: Rafael Noronha <rafael@pdsolucoes.com.br> * Gregory Nutt <gnutt@nuttx.org> * @@ -44,6 +44,7 @@ #include <stdint.h> #include <stdbool.h> #include <stdlib.h> +#include <unistd.h> #include <semaphore.h> #include <string.h> #include <errno.h> @@ -1619,7 +1620,7 @@ static int lpc17_enumerate(FAR struct usbhost_connection_s *conn, int rphndx) /* USB 2.0 spec says at least 50ms delay before port reset */ - up_mdelay(100); + (void)usleep(100*1000); /* Put RH port 1 in reset (the LPC176x supports only a single downstream port) */ @@ -1632,7 +1633,7 @@ static int lpc17_enumerate(FAR struct usbhost_connection_s *conn, int rphndx) /* Release RH port 1 from reset and wait a bit */ lpc17_putreg(OHCI_RHPORTST_PRSC, LPC17_USBHOST_RHPORTST1); - up_mdelay(200); + (void)usleep(200*1000); /* Let the common usbhost_enumerate do all of the real work. Note that the * FunctionAddress (USB address) is hardcoded to one. |