From 14f274991fc85b70dd4294c482f6d4ce79e72339 Mon Sep 17 00:00:00 2001 From: edolomb Date: Fri, 22 Jun 2018 13:43:12 +0000 Subject: Fixed bug git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12120 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'os') 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; } -- cgit v1.2.3