diff options
author | Jonatan Olofsson <jonatan.olofsson@gmail.com> | 2014-10-29 03:58:07 +0100 |
---|---|---|
committer | bryan newbold <bnewbold@twinleaf.com> | 2014-11-26 01:10:34 -0800 |
commit | 3055e5fde4915f68ef991d482db3ecffb6a03920 (patch) | |
tree | 180c1337b87740c578bb539b980a2cef755f7fbc | |
parent | ca10140f4630ace9446ea333a265f59d59075b47 (diff) | |
download | librambutan-3055e5fde4915f68ef991d482db3ecffb6a03920.tar.gz librambutan-3055e5fde4915f68ef991d482db3ecffb6a03920.zip |
Revert "always clear ISR DMA bit before even calling handler"
-rw-r--r-- | libmaple/dma_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/dma_private.h b/libmaple/dma_private.h index 82f5fc1..b25ded2 100644 --- a/libmaple/dma_private.h +++ b/libmaple/dma_private.h @@ -38,10 +38,10 @@ * in the series support files, which need dma_irq_handler().) */ #ifdef DMA_GET_HANDLER static __always_inline void dma_irq_handler(dma_dev *dev, dma_tube tube) { - dma_clear_isr_bits(dev, tube); /* in case handler doesn't */ void (*handler)(void) = DMA_GET_HANDLER(dev, tube); if (handler) { handler(); + dma_clear_isr_bits(dev, tube); /* in case handler doesn't */ } } #endif |