diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-24 10:00:08 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-24 10:00:08 +0000 |
commit | db83559c121a210bb134690de1fa0d6fd1d5c592 (patch) | |
tree | 8bb8531e5a7786bcf514b89d8969b0f0c3dd5096 | |
parent | 2e098efd3d99a04221515b25b91856a1e730e70e (diff) | |
download | ChibiOS-db83559c121a210bb134690de1fa0d6fd1d5c592.tar.gz ChibiOS-db83559c121a210bb134690de1fa0d6fd1d5c592.tar.bz2 ChibiOS-db83559c121a210bb134690de1fa0d6fd1d5c592.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8390 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h index 157e9432d..b1ef8a903 100644 --- a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h +++ b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h @@ -437,9 +437,9 @@ typedef struct { flags = ((dma)->ISR >> STM32_DMA_ISR_SHIFT(s)) & STM32_DMA_ISR_MASK; \
if (flags & STM32_DMA_ISR_MASK) { \
(dma)->IFCR = flags << STM32_DMA_ISR_SHIFT(s); \
- if (_stm32_dma_isr_redir[s].dma_func) { \
- _stm32_dma_isr_redir[s].dma_func(_stm32_dma_isr_redir[s].dma_param, \
- flags); \
+ if (_stm32_dma_isr_redir[(s) - 1U].dma_func) { \
+ _stm32_dma_isr_redir[(s) - 1U].dma_func(_stm32_dma_isr_redir[(s) - \
+ 1U].dma_param, flags); \
} \
} \
}
|