aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/common/dma_common_f13.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stm32/common/dma_common_f13.c')
-rw-r--r--lib/stm32/common/dma_common_f13.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/stm32/common/dma_common_f13.c b/lib/stm32/common/dma_common_f13.c
index 0a708aa..35b9da6 100644
--- a/lib/stm32/common/dma_common_f13.c
+++ b/lib/stm32/common/dma_common_f13.c
@@ -55,9 +55,7 @@ The channel is disabled and configuration registers are cleared.
void dma_channel_reset(u32 dma, u8 channel)
{
- /* Disable channel. */
- DMA_CCR(dma, channel) &= ~DMA_CCR_EN;
- /* Reset config bits. */
+ /* Disable channel and reset config bits. */
DMA_CCR(dma, channel) = 0;
/* Reset data transfer number. */
DMA_CNDTR(dma, channel) = 0;