From c953aa5ac86e4f913c41333a773a0903e0860d35 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 17 Jan 2018 14:55:12 +0000 Subject: Defaulted all STM32 drivers to enable peripheral clocks during stop/sleep modes. Now RCC macros are able to set or clear the LP bit of a peripheral. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11300 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c') diff --git a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c index bd11353fc..fa8b07a3e 100644 --- a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c +++ b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c @@ -493,11 +493,11 @@ bool dmaStreamAllocate(const stm32_dma_stream_t *dmastp, /* Enabling DMA clocks required by the current streams set.*/ if ((dma.streams_mask & STM32_DMA1_STREAMS_MASK) == 0U) { - rccEnableDMA1(false); + rccEnableDMA1(true); } #if STM32_DMA2_NUM_CHANNELS > 0 if ((dma.streams_mask & STM32_DMA2_STREAMS_MASK) == 0U) { - rccEnableDMA2(false); + rccEnableDMA2(true); } #endif -- cgit v1.2.3