From f0b261b0aa1559cefedb638f5a49ba46b81333cc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 28 Jan 2012 09:42:37 +0000 Subject: Fixed minor issue in EXT initialization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3886 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/ext_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32/ext_lld.h') 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 -- cgit v1.2.3