Clear the interrupting condition when we take the DMA interrupt.

This commit is contained in:
px4dev 2013-01-10 01:57:16 -08:00
parent 97136375e3
commit e2f7a46812
1 changed files with 4 additions and 0 deletions

View File

@ -308,6 +308,10 @@ static int stm32_dmainterrupt(int irq, void *context)
isr = dmabase_getreg(dmach, STM32_DMA_ISR_OFFSET) & DMA_ISR_CHAN_MASK(dmach->chan);
/* Clear the interrupts we are handling */
dmabase_putreg(dmach, STM32_DMA_IFCR_OFFSET, isr);
/* Invoke the callback */
if (dmach->callback)