diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-31 20:59:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-31 20:59:23 +0000 |
commit | 9bdb91ec537f8a7889a816cf989e6d91054effe5 (patch) | |
tree | f05fe58bed011e432506fefdea124c1f9372b27b /nuttx/arch/arm/src | |
parent | 714575b61092daa986ffdc535bec98d181114509 (diff) | |
download | px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.gz px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.bz2 px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.zip |
Initial debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3226 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c index e25b2474a..0a566c9fe 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -819,6 +819,17 @@ static int lpc17_usbinterrupt(int irq, FAR void *context) priv->tdstatus = (TDHEAD->ctrl & GTD_STATUS_CC_MASK) >> GTD_STATUS_CC_SHIFT; +#ifdef CONFIG_DEBUG_USB + if (priv->tdstatus != 0) + { + /* The transfer failed for some reason... dump some diagnostic info. */ + + ulldbg("ERROR: TD CTRL:%08x/CC:%d RHPORTST1:%08x\n", + TDHEAD->ctrl, priv->tdstatus, + lpc17_getreg(LPC17_USBHOST_RHPORTST1)); + } +#endif + /* And wake up the thread waiting for the WDH event */ DEBUGASSERT(priv->wdhsem.semcount <= 0); |