aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-06-22 13:43:12 +0000
committeredolomb <none@example.com>2018-06-22 13:43:12 +0000
commit14f274991fc85b70dd4294c482f6d4ce79e72339 (patch)
treee764c71f2cc4e94fdcd084f85968a6b03511da5b /os/hal
parent1d1c704d1cb798b198b5ceac45937c4e5c5855f3 (diff)
downloadChibiOS-14f274991fc85b70dd4294c482f6d4ce79e72339.tar.gz
ChibiOS-14f274991fc85b70dd4294c482f6d4ce79e72339.tar.bz2
ChibiOS-14f274991fc85b70dd4294c482f6d4ce79e72339.zip
Fixed bug
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12120 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
index 61ebe1fad..28e2e38e5 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
@@ -284,16 +284,12 @@ void dmaChannelRelease(sama_dma_channel_t *dmachp) {
osalDbgAssert(dmachp->state != SAMA_DMA_FREE,
"not allocated");
-#if SAMA_HAL_IS_SECURE
- /* Disables the associated IRQ vector.*/
- aicDisableInt(ID_XDMAC0);
-#else
- aicDisableInt(ID_XDMAC1);
-#endif /* SAMA_HAL_IS_SECURE */
-
/* Disables channel */
dmaChannelDisable(dmachp);
+ /* Disables interrupt */
+ (dmachp)->xdmac->XDMAC_GID = XDMAC_GID_ID0 << ((dmachp)->chid);
+
/* Marks the stream as not allocated.*/
(dmachp)->state = SAMA_DMA_FREE;
}