aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-02-26 22:14:02 +0000
committeredolomb <none@example.com>2018-02-26 22:14:02 +0000
commitc8845294dd5c7d3214e8ffa25d61052522945b25 (patch)
tree7f819e22809ddc890d28bf20802a5d58c37e62b3 /os
parent64cc5a73ca17a1dbc76987cee7591db6be34a702 (diff)
downloadChibiOS-c8845294dd5c7d3214e8ffa25d61052522945b25.tar.gz
ChibiOS-c8845294dd5c7d3214e8ffa25d61052522945b25.tar.bz2
ChibiOS-c8845294dd5c7d3214e8ffa25d61052522945b25.zip
Enabled error interrupts on DMA
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11553 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c8
1 files changed, 4 insertions, 4 deletions
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.