summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:33:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:33:12 +0000
commit5d449ef3904b7130000b729f6e97f66d8ff99fe0 (patch)
tree39fe91dedf8107d4bd82b88c3ef4c01dc2146b21 /nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
parent97a3795f62ce873d7429701146204e78750268d5 (diff)
downloadpx4-nuttx-5d449ef3904b7130000b729f6e97f66d8ff99fe0.tar.gz
px4-nuttx-5d449ef3904b7130000b729f6e97f66d8ff99fe0.tar.bz2
px4-nuttx-5d449ef3904b7130000b729f6e97f66d8ff99fe0.zip
Changes to get USB host driver compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3184 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c')
-rwxr-xr-xnuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
index 26bbb0758..c65415ca1 100755
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c
@@ -50,8 +50,8 @@
#include <nuttx/arch.h>
#include <nuttx/usb/usb.h>
-#include <nuttx/usb/usbhost.h>
#include <nuttx/usb/ohci.h>
+#include <nuttx/usb/usbhost.h>
#include <nuttx/usb/usbhost_trace.h>
#include <arch/irq.h>
@@ -86,7 +86,7 @@
# define usbhost_dumpgpio() \
do { \
lpc17_dumpgpio(GPIO_USB_DP, "D+ P0.29; D- P0.30"); \
- lpc17_dumpgpio(GPIO_USB_UPLED, "LED P1:18; PPWR P1:19 PWRD P1:22 PVRCR P1:27); \
+ lpc17_dumpgpio(GPIO_USB_UPLED, "LED P1:18; PPWR P1:19 PWRD P1:22 PVRCR P1:27"); \
} while (0);
#else
# define usbhost_dumpgpio()
@@ -188,6 +188,12 @@ static int lpc17_usbinterrupt(int irq, FAR void *context);
/* USB host controller operations **********************************************/
+/* Initializaion ***************************************************************/
+
+static void usbhost_tdinit(volatile struct usbhost_hctd_s *td);
+static void usbhost_edinit(volatile struct usbhost_hced_s *);
+static void usbhost_hccainit(volatile struct usbhost_hcca_s *hcca);
+
/*******************************************************************************
* Private Data
*******************************************************************************/
@@ -421,7 +427,7 @@ void up_usbhostinitialize(void)
usbhost_edinit(EDBulkOut);
usbhost_tdinit(TDHead);
usbhost_tdinit(TDTail);
- usbhost_hccanit(Hcca);
+ usbhost_hccainit(Hcca);
/* Wait 50MS then perform hardware reset */
@@ -457,7 +463,7 @@ void up_usbhostinitialize(void)
/* Clear pending interrupts */
regval = lpc17_getreg(LPC17_USBHOST_INTST);
- lpc17_putreg(revgval, LPC17_USBHOST_INTST);
+ lpc17_putreg(regval, LPC17_USBHOST_INTST);
/* Enable OHCI interrupts */