aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-28 09:42:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-28 09:42:37 +0000
commitf0b261b0aa1559cefedb638f5a49ba46b81333cc (patch)
tree42261e7d864a24a79e833081ba2f4a84b3b9c7d0
parent3d07c057c0834e5c35cc0d19418c62c0085864cb (diff)
downloadChibiOS-f0b261b0aa1559cefedb638f5a49ba46b81333cc.tar.gz
ChibiOS-f0b261b0aa1559cefedb638f5a49ba46b81333cc.tar.bz2
ChibiOS-f0b261b0aa1559cefedb638f5a49ba46b81333cc.zip
Fixed minor issue in EXT initialization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3886 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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