aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-11 18:26:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-11 18:26:55 +0000
commit3d1a187a6a092c515cb5a0a13f182c3cd845381d (patch)
treee1db794b226cd9209307f625e31cf43a97233dbf /os/hal/platforms
parent2002722c01b9c1ca55a7800cca8946dc6c8d7f98 (diff)
downloadChibiOS-3d1a187a6a092c515cb5a0a13f182c3cd845381d.tar.gz
ChibiOS-3d1a187a6a092c515cb5a0a13f182c3cd845381d.tar.bz2
ChibiOS-3d1a187a6a092c515cb5a0a13f182c3cd845381d.zip
Fixed bug 3586230.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4815 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/LPC11xx/pal_lld.h2
-rw-r--r--os/hal/platforms/LPC13xx/pal_lld.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/LPC11xx/pal_lld.h b/os/hal/platforms/LPC11xx/pal_lld.h
index d1a711868..f1f223b3b 100644
--- a/os/hal/platforms/LPC11xx/pal_lld.h
+++ b/os/hal/platforms/LPC11xx/pal_lld.h
@@ -268,7 +268,7 @@ typedef LPC_GPIO_TypeDef *ioportid_t;
* @notapi
*/
#define pal_lld_writepad(port, pad, bit) \
- ((port)->MASKED_ACCESS[(mask) << (pad)] = (bit) << (pad))
+ ((port)->MASKED_ACCESS[1 << (pad)] = (bit) << (pad))
/**
* @brief Sets a pad logical state to @p PAL_HIGH.
diff --git a/os/hal/platforms/LPC13xx/pal_lld.h b/os/hal/platforms/LPC13xx/pal_lld.h
index 3b64a0c38..7ddd604d8 100644
--- a/os/hal/platforms/LPC13xx/pal_lld.h
+++ b/os/hal/platforms/LPC13xx/pal_lld.h
@@ -268,7 +268,7 @@ typedef LPC_GPIO_TypeDef *ioportid_t;
* @notapi
*/
#define pal_lld_writepad(port, pad, bit) \
- ((port)->MASKED_ACCESS[(mask) << (pad)] = (bit) << (pad))
+ ((port)->MASKED_ACCESS[1 << (pad)] = (bit) << (pad))
/**
* @brief Sets a pad logical state to @p PAL_HIGH.