Skip to content
Snippets Groups Projects
Commit f3b5ace5 authored by patacongo's avatar patacongo
Browse files

Fix dma-related register definitions

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3152 42af7a65-404d-4744-a932-0658087f49c3
parent 94e738a6
No related branches found
No related tags found
No related merge requests found
......@@ -2046,6 +2046,7 @@ static int lpc17_usbinterrupt(int irq, FAR void *context)
uint32_t devintstatus; /* Sampled state of the device interrupt status register */
uint32_t epintstatus; /* Sampled state of the endpoint interrupt status register */
#ifdef CONFIG_LPC17_USBDEV_DMA
uint32_t usbintstatus; /* Sampled state is SYSCON USB interrupt status */
uint32_t dmaintstatus; /* Sampled state of dma interrupt status register */
#endif
uint32_t softprio; /* Current priority interrupt bitset */
......@@ -2061,7 +2062,8 @@ static int lpc17_usbinterrupt(int irq, FAR void *context)
#ifdef CONFIG_LPC17_USBDEV_DMA
/* Check for low priority and high priority (non-DMA) interrupts */
if ((devintstatus & (USBDEV_INTST_REQLP|USBDEV_INTST_REQHP)) != 0)
usbintstatus = lpc17_getreg(LPC17_SYSCON_USBINTST);
if ((usbintstatus & (SYSCON_USBINTST_REQLP|SYSCON_USBINTST_REQHP)) != 0)
{
#endif
#ifdef CONFIG_LPC17_USBDEV_EPFAST_INTERRUPT
......@@ -2309,7 +2311,7 @@ static int lpc17_usbinterrupt(int irq, FAR void *context)
/* Check for DMA interrupts */
if ((lpc17_getreg(LPC17_USBDEV_INTST) & USBDEV_INTST_REQDMA) != 0)
if (usbintstatus & SYSCON_USBINTST_REQDMA) != 0)
{
/* First Software High priority and then low priority */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment