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
This commit is contained in:
isiora 2018-02-21 18:30:26 +00:00
parent e483f45b6c
commit 92d73d9799
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ OSAL_IRQ_HANDLER(dmaHandler) {
* if channel interrupt is enabled and pending, and a callback exists, * if channel interrupt is enabled and pending, and a callback exists,
* execute it * 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 (cis & (XDMAC_CIS_BIS|XDMAC_CIS_LIS|XDMAC_CIS_DIS))
if (channel->dma_func) if (channel->dma_func)
channel->dma_func(channel->dma_param, cis); channel->dma_func(channel->dma_param, cis);