diff options
author | Jonatan Olofsson <jonatan.olofsson@gmail.com> | 2014-10-29 03:58:07 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-05-27 20:51:19 -0700 |
commit | a943ad854f1f4fe13eba3d07b9ced899735cadf4 (patch) | |
tree | 38dad5389f405e705a5a153cdefc4e05d56269ab | |
parent | 3bd3c1e7e625318af8beff7ef58e1d8511cf497f (diff) | |
download | librambutan-a943ad854f1f4fe13eba3d07b9ced899735cadf4.tar.gz librambutan-a943ad854f1f4fe13eba3d07b9ced899735cadf4.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 |