aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/stm32_dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32/stm32_dma.h')
-rw-r--r--os/hal/platforms/STM32/stm32_dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/stm32_dma.h b/os/hal/platforms/STM32/stm32_dma.h
index 567b3ef0b..1a3abd389 100644
--- a/os/hal/platforms/STM32/stm32_dma.h
+++ b/os/hal/platforms/STM32/stm32_dma.h
@@ -181,7 +181,7 @@ typedef struct {
* @param[in] ch channel number
*/
#define dmaClearChannel(dmap, ch){ \
- (dmap)->IFCR = 1 << (ch); \
+ (dmap)->IFCR = 1 << ((ch) * 4); \
}
/*===========================================================================*/