diff options
Diffstat (limited to 'os/hal/platforms/STM32F2xx/stm32_dma.h')
-rw-r--r-- | os/hal/platforms/STM32F2xx/stm32_dma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F2xx/stm32_dma.h b/os/hal/platforms/STM32F2xx/stm32_dma.h index b17b3aa61..8f03a64a7 100644 --- a/os/hal/platforms/STM32F2xx/stm32_dma.h +++ b/os/hal/platforms/STM32F2xx/stm32_dma.h @@ -54,7 +54,7 @@ * nibble
* @return Returns the channel associated to the stream.
*/
-#define STM32_DMA_GETCHANNEL(id, c) ((c) >> (((id) & 7) * 4))
+#define STM32_DMA_GETCHANNEL(id, c) (((c) >> (((id) & 7) * 4)) & 7)
/**
* @brief Returns an unique numeric identifier for a DMA stream.
|