summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-05 02:06:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-05 02:06:16 +0000
commitd468f0c885a35b1a848a8c1edc5ebfa6a9b8c461 (patch)
tree98719c0959bb7bd1c3f8200b30faff245c3ccfbc /nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c
parent22a1bf1fee4bfb0ec9304ba06d0fdcdf231c4f5b (diff)
downloadnuttx-d468f0c885a35b1a848a8c1edc5ebfa6a9b8c461.tar.gz
nuttx-d468f0c885a35b1a848a8c1edc5ebfa6a9b8c461.tar.bz2
nuttx-d468f0c885a35b1a848a8c1edc5ebfa6a9b8c461.zip
Mostly cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2821 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c')
-rwxr-xr-xnuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c
index 3299fe008..f7094755d 100755
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c
+++ b/nuttx/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)
*/