diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-28 02:41:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-28 02:41:45 +0000 |
commit | 0cbef1dc75ec735397f06445ec0c0cf08be664ec (patch) | |
tree | b1758c7fd90fd8cfb283ecb2ddca3002e4a34a39 /nuttx/arch/arm/src | |
parent | 8e11ef82d39619b4bafcf1cd3e56c34daaa03f3d (diff) | |
download | px4-nuttx-0cbef1dc75ec735397f06445ec0c0cf08be664ec.tar.gz px4-nuttx-0cbef1dc75ec735397f06445ec0c0cf08be664ec.tar.bz2 px4-nuttx-0cbef1dc75ec735397f06445ec0c0cf08be664ec.zip |
Fix missing parentheses in macros
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2891 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_internal.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_internal.h b/nuttx/arch/arm/src/lpc17xx/lpc17_internal.h index 819c13894..ed58775f1 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_internal.h +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_internal.h @@ -92,13 +92,13 @@ #define GPIO_ISGPIO(ps) ((uint16_t(ps) & GPIO_FUNC_MASK) <= GPIO_OUTPUT) #define GPIO_ISALT(ps) ((uint16_t(ps) & GPIO_FUNC_MASK) > GPIO_OUTPUT) -#define GPIO_ISINPUT(ps) ((ps) & GPIO_FUNC_MASK) == GPIO_INPUT) -#define GPIO_ISOUTPUT(ps) ((ps) & GPIO_FUNC_MASK) == GPIO_OUTPUT) -#define GPIO_ISINORINT(ps) ((ps) & GPIO_INOUT_MASK) == 0) -#define GPIO_ISOUTORALT(ps) ((ps) & GPIO_INOUT_MASK) != 0) +#define GPIO_ISINPUT(ps) (((ps) & GPIO_FUNC_MASK) == GPIO_INPUT) +#define GPIO_ISOUTPUT(ps) (((ps) & GPIO_FUNC_MASK) == GPIO_OUTPUT) +#define GPIO_ISINORINT(ps) (((ps) & GPIO_INOUT_MASK) == 0) +#define GPIO_ISOUTORALT(ps) (((ps) & GPIO_INOUT_MASK) != 0) #define GPIO_ISINTERRUPT(ps) (GPIO_ISOUTPUT(ps) && !GPIO_ISINPUT(ps)) -#define GPIO_ISFE(ps) ((ps) & GPIO_FE_MASK) != 0) -#define GPIO_ISRE(ps) ((ps) & GPIO_RE_MASK) != 0) +#define GPIO_ISFE(ps) (((ps) & GPIO_FE_MASK) != 0) +#define GPIO_ISRE(ps) (((ps) & GPIO_RE_MASK) != 0) /* Pin Mode: MM */ |