From de1ed003731e3729fc1fdc82b057760562c03df3 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 5 Aug 2010 02:06:16 +0000 Subject: [PATCH] Mostly cosmetic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2821 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc17xx/lpc17_usbdev.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/lpc17xx/lpc17_usbdev.c b/arch/arm/src/lpc17xx/lpc17_usbdev.c index 3299fe0081..f7094755d1 100755 --- a/arch/arm/src/lpc17xx/lpc17_usbdev.c +++ b/arch/arm/src/lpc17xx/lpc17_usbdev.c @@ -1992,16 +1992,15 @@ static int lpc17_usbinterrupt(int irq, FAR void *context) uint8_t epphy; /* Physical endpoint number being processed */ int i; - usbtrace(TRACE_INTENTRY(LPC17_TRACEINTID_USB), 0); - /* Read the device interrupt status register */ devintstatus = lpc17_getreg(LPC17_USBDEV_INTST); + usbtrace(TRACE_INTENTRY(LPC17_TRACEINTID_USB), (uint16_t)devintstatus); #ifdef CONFIG_LPC17_USBDEV_DMA /* Check for low priority and high priority (non-DMA) interrupts */ - if ((lpc17_getreg(LPC17_USBDEV_INTST) & (USBDEV_INTST_REQLP|USBDEV_INTST_REQHP)) != 0) + if ((devintstatus & (USBDEV_INTST_REQLP|USBDEV_INTST_REQHP)) != 0) { #endif #ifdef CONFIG_LPC17_USBDEV_EPFAST_INTERRUPT @@ -2022,7 +2021,7 @@ static int lpc17_usbinterrupt(int irq, FAR void *context) #if CONFIG_DEBUG /* USB engine error interrupt */ - if ((devintstatus & USBDEV_INT_ERRINT)) + if ((devintstatus & USBDEV_INT_ERRINT) != 0) { uint8_t errcode; @@ -3091,7 +3090,7 @@ void up_usbinitialize(void) regval |= SYSCON_PCONP_PCUSB; putreg32(regval, LPC17_SYSCON_PCONP); - /* Step 2: Enable clocking on UART (USB clocking was initialized in very + /* Step 2: Enable clocking on USB (USB clocking was initialized in very * low-level clock setup logic (see lpc17_clockconfig.c) */