aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/DMAv2
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-04-02 09:37:41 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-04-02 09:37:41 +0000
commit25a9ad2c3a0033a78f119cb6ec08d649a80c2acc (patch)
tree310d9f6076a8bcf6a049550383fc4298f466879c /os/hal/ports/STM32/LLD/DMAv2
parentfdf3721c1d496ca341b2ea6e41f31d1ecff287b4 (diff)
downloadChibiOS-25a9ad2c3a0033a78f119cb6ec08d649a80c2acc.tar.gz
ChibiOS-25a9ad2c3a0033a78f119cb6ec08d649a80c2acc.tar.bz2
ChibiOS-25a9ad2c3a0033a78f119cb6ec08d649a80c2acc.zip
DMAv2 fixes for STM32F76x/77x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10135 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/DMAv2')
-rw-r--r--os/hal/ports/STM32/LLD/DMAv2/stm32_dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.h b/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.h
index ec7c889aa..d0ec96864 100644
--- a/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.h
+++ b/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.h
@@ -55,7 +55,7 @@
* nibble
* @return Returns the channel associated to the stream.
*/
-#define STM32_DMA_GETCHANNEL(id, c) (((c) >> (((id) & 7U) * 4U)) & 7U)
+#define STM32_DMA_GETCHANNEL(id, c) (((c) >> (((id) & 7U) * 4U)) & 15U)
/**
* @brief Checks if a DMA priority is within the valid range.