git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8003 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2015-05-30 16:33:36 +00:00
parent 85ee0fbeeb
commit da6b735aef
1 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ OSAL_IRQ_HANDLER(Vector6C) {
} }
#if STM32_DMA_STREAMS > 5 #if STM32_DMA_STREAMS > 5
/* Check on channel 5.*/ /* Check on channel 6.*/
flags = (DMA1->ISR >> 20) & STM32_DMA_ISR_MASK; flags = (DMA1->ISR >> 20) & STM32_DMA_ISR_MASK;
if (flags & STM32_DMA_ISR_MASK) { if (flags & STM32_DMA_ISR_MASK) {
DMA1->IFCR = flags << 20; 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); 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; flags = (DMA1->ISR >> 24) & STM32_DMA_ISR_MASK;
if (flags & STM32_DMA_ISR_MASK) { if (flags & STM32_DMA_ISR_MASK) {
DMA1->IFCR = flags << 24; DMA1->IFCR = flags << 24;
if (dma_isr_redir[7].dma_func) if (dma_isr_redir[6].dma_func)
dma_isr_redir[7].dma_func(dma_isr_redir[7].dma_param, flags); dma_isr_redir[6].dma_func(dma_isr_redir[6].dma_param, flags);
} }
#endif #endif