summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-29 22:20:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-29 22:20:52 +0000
commit17062a01dd51f6cc68114e04edbaae56bd2fe21e (patch)
tree84ac86200208c548c1ccf36c6ec383f68bb6c252 /nuttx/arch/arm/src/stm32
parent8c25ac6383b32cb9fe09fde69bb15975d3a98b36 (diff)
downloadpx4-nuttx-17062a01dd51f6cc68114e04edbaae56bd2fe21e.tar.gz
px4-nuttx-17062a01dd51f6cc68114e04edbaae56bd2fe21e.tar.bz2
px4-nuttx-17062a01dd51f6cc68114e04edbaae56bd2fe21e.zip
Need to enable USB reset interrupt
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4784 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32')
-rwxr-xr-xnuttx/arch/arm/src/stm32/stm32_otgfsdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c b/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c
index 0d46f9010..39c40d80a 100755
--- a/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c
+++ b/nuttx/arch/arm/src/stm32/stm32_otgfsdev.c
@@ -3443,6 +3443,7 @@ static int stm32_usbinterrupt(int irq, FAR void *context)
stm32_usbreset(priv);
usbtrace(TRACE_INTEXIT(STM32_TRACEINTID_USB), 0);
+ stm32_putreg(OTGFS_GINT_USBRST, STM32_OTGFS_GINTSTS);
return OK;
}
@@ -5104,7 +5105,7 @@ static void stm32_hwinitialize(FAR struct stm32_usbdev_s *priv)
/* Enable the interrupts in the INTMSK */
regval = (OTGFS_GINT_RXFLVL | OTGFS_GINT_USBSUSP | OTGFS_GINT_ENUMDNE |
- OTGFS_GINT_IEP | OTGFS_GINT_OEP | regval);
+ OTGFS_GINT_IEP | OTGFS_GINT_OEP | OTGFS_GINT_USBRST);
#ifdef CONFIG_USBDEV_ISOCHRONOUS
regval |= (OTGFS_GINT_IISOIXFR | OTGFS_GINT_IISOOXFR);