diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-05-30 16:33:36 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-05-30 16:33:36 +0000 |
commit | da6b735aef002b219fac389c5ccdc07b24f031a1 (patch) | |
tree | 6221112be2673d829c931d1b4345a2e63773d6be | |
parent | 85ee0fbeebeebc24ed2a681d8c1ef73aff9431b9 (diff) | |
download | ChibiOS-da6b735aef002b219fac389c5ccdc07b24f031a1.tar.gz ChibiOS-da6b735aef002b219fac389c5ccdc07b24f031a1.tar.bz2 ChibiOS-da6b735aef002b219fac389c5ccdc07b24f031a1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8003 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/STM32F0xx/stm32_dma.c | 8 |
1 files 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
|