aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD
diff options
context:
space:
mode:
authorisiora <isiora@35acf78f-673a-0410-8e92-d51de3d6d3f4>2018-02-21 18:30:26 +0000
committerisiora <isiora@35acf78f-673a-0410-8e92-d51de3d6d3f4>2018-02-21 18:30:26 +0000
commit92d73d9799af401843c9616228370cfcf12ff0b1 (patch)
treea6c664c060ee6d9f81671aa59433e7407752b0d8 /os/hal/ports/SAMA/LLD
parente483f45b6c5c57ce3059c6e6f182abf3e69319d4 (diff)
downloadChibiOS-92d73d9799af401843c9616228370cfcf12ff0b1.tar.gz
ChibiOS-92d73d9799af401843c9616228370cfcf12ff0b1.tar.bz2
ChibiOS-92d73d9799af401843c9616228370cfcf12ff0b1.zip
Fixed masking of enabled int in the handler.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11527 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/LLD')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
index 92b5367e3..97ca3cfb0 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
@@ -117,7 +117,7 @@ OSAL_IRQ_HANDLER(dmaHandler) {
* if channel interrupt is enabled and pending, and a callback exists,
* execute it
*/
- uint32_t cis = dmaGetChannelInt(channel) &~ dmaGetChannelIntMask(channel);
+ uint32_t cis = dmaGetChannelInt(channel) & dmaGetChannelIntMask(channel);
if (cis & (XDMAC_CIS_BIS|XDMAC_CIS_LIS|XDMAC_CIS_DIS))
if (channel->dma_func)
channel->dma_func(channel->dma_param, cis);