From b381c928c7b9e08d0594395e532aeeed6cdc6a2b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 10 May 2011 18:37:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2947 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/hal/platforms/STM32/stm32_dma.c b/os/hal/platforms/STM32/stm32_dma.c index 023f2fdd3..621659a0b 100644 --- a/os/hal/platforms/STM32/stm32_dma.c +++ b/os/hal/platforms/STM32/stm32_dma.c @@ -370,7 +370,7 @@ void dmaAllocate(uint32_t dma, uint32_t channel, "dmaAllocate(), #2", "already allocated"); /* If the DMA unit was idle then the clock is enabled.*/ - if (dmamsk1 == 0) { + if (dmamsk2 == 0) { RCC->AHBENR |= RCC_AHBENR_DMA2EN; DMA2->IFCR = 0x0FFFFFFF; } -- cgit v1.2.3