diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c b/nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c index 4d5371e7a..a02ceb230 100644 --- a/nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c +++ b/nuttx/arch/arm/src/stm32/stm32f10xxx_dma.c @@ -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) |