diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/LPC11xx/pal_lld.h | 2 | ||||
-rw-r--r-- | os/hal/platforms/LPC13xx/pal_lld.h | 2 |
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.
|