diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-10 18:37:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-10 18:37:26 +0000 |
commit | b381c928c7b9e08d0594395e532aeeed6cdc6a2b (patch) | |
tree | cf080ff369271a7f6481db056ef93f57f91f077e /os/hal | |
parent | 0cb8d71e9da98423ea75f0c77b05d4a441d57af8 (diff) | |
download | ChibiOS-b381c928c7b9e08d0594395e532aeeed6cdc6a2b.tar.gz ChibiOS-b381c928c7b9e08d0594395e532aeeed6cdc6a2b.tar.bz2 ChibiOS-b381c928c7b9e08d0594395e532aeeed6cdc6a2b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2947 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/stm32_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|