aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/ext_lld.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/ext_lld.h b/os/hal/platforms/STM32/ext_lld.h
index d5b40023d..6ef14427b 100644
--- a/os/hal/platforms/STM32/ext_lld.h
+++ b/os/hal/platforms/STM32/ext_lld.h
@@ -43,7 +43,7 @@
/**
* @brief Mask of the available channels.
*/
-#define EXT_CHANNELS_MASK (EXT_MAX_CHANNELS - 1)
+#define EXT_CHANNELS_MASK ((1 << EXT_MAX_CHANNELS) - 1)
/**
* @name EXTI configuration helpers