From c8845294dd5c7d3214e8ffa25d61052522945b25 Mon Sep 17 00:00:00 2001 From: edolomb Date: Mon, 26 Feb 2018 22:14:02 +0000 Subject: Enabled error interrupts on DMA git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11553 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/ports/SAMA/LLD') diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c index fda40a7ba..af90acbb1 100644 --- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c +++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c @@ -257,7 +257,10 @@ sama_dma_channel_t* dmaChannelAllocate(uint32_t priority, #endif /* SAMA_HAL_IS_SECURE */ /* Enabling channel's interrupt */ - channel->xdmac->XDMAC_CHID[channel->chid].XDMAC_CIE = XDMAC_CIE_BIE; + channel->xdmac->XDMAC_CHID[channel->chid].XDMAC_CIE = XDMAC_CIE_BIE | + XDMAC_CIE_WBIE | + XDMAC_CIE_RBIE | + XDMAC_CIE_ROIE; channel->xdmac->XDMAC_GIE = XDMAC_GIE_IE0 << (channel->chid); } return channel; @@ -265,9 +268,6 @@ sama_dma_channel_t* dmaChannelAllocate(uint32_t priority, /** * @brief Releases a DMA channel. - * @details The stream is channel and, if required, the DMA clock disabled. - * Trying to release a unallocated channel is an illegal operation - * and is trapped if assertions are enabled. * @pre The channel must have been allocated using @p dmaChannelAllocate(). * @post The channel is again available. * @note This function can be invoked in both ISR or thread context. -- cgit v1.2.3