From d98f16d61b53dc86dc40393d6654075885f8a1b0 Mon Sep 17 00:00:00 2001 From: gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> Date: Sat, 28 Apr 2012 05:53:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4138 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/ext_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os') diff --git a/os/hal/platforms/STM32/ext_lld.c b/os/hal/platforms/STM32/ext_lld.c index ed80f524c..225fc854d 100644 --- a/os/hal/platforms/STM32/ext_lld.c +++ b/os/hal/platforms/STM32/ext_lld.c @@ -581,7 +581,7 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) { uint32_t mask = ~(0xF << (channel & 3)); uint32_t port = ((extp->config->channels[channel].mode & EXT_MODE_GPIO_MASK) >> - EXT_MODE_GPIO_OFF) << (channel & 3); + EXT_MODE_GPIO_OFF) << ((channel & 3) * 4); #if defined(STM32L1XX_MD) || defined(STM32F2XX) || defined(STM32F4XX) SYSCFG->EXTICR[n] = (SYSCFG->EXTICR[n] & mask) | port; -- cgit v1.2.3