From da6b735aef002b219fac389c5ccdc07b24f031a1 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 30 May 2015 16:33:36 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8003 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F0xx/stm32_dma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/hal/ports/STM32/STM32F0xx/stm32_dma.c b/os/hal/ports/STM32/STM32F0xx/stm32_dma.c index 9dcf06357..a6e562fed 100644 --- a/os/hal/ports/STM32/STM32F0xx/stm32_dma.c +++ b/os/hal/ports/STM32/STM32F0xx/stm32_dma.c @@ -181,7 +181,7 @@ OSAL_IRQ_HANDLER(Vector6C) { } #if STM32_DMA_STREAMS > 5 - /* Check on channel 5.*/ + /* Check on channel 6.*/ flags = (DMA1->ISR >> 20) & STM32_DMA_ISR_MASK; if (flags & STM32_DMA_ISR_MASK) { DMA1->IFCR = flags << 20; @@ -189,12 +189,12 @@ OSAL_IRQ_HANDLER(Vector6C) { dma_isr_redir[5].dma_func(dma_isr_redir[5].dma_param, flags); } - /* Check on channel 6.*/ + /* Check on channel 7.*/ flags = (DMA1->ISR >> 24) & STM32_DMA_ISR_MASK; if (flags & STM32_DMA_ISR_MASK) { DMA1->IFCR = flags << 24; - if (dma_isr_redir[7].dma_func) - dma_isr_redir[7].dma_func(dma_isr_redir[7].dma_param, flags); + if (dma_isr_redir[6].dma_func) + dma_isr_redir[6].dma_func(dma_isr_redir[6].dma_param, flags); } #endif