Skip to content
Snippets Groups Projects
Commit b38b5ff7 authored by patacongo's avatar patacongo
Browse files

Fix missing parentheses in macros

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2891 42af7a65-404d-4744-a932-0658087f49c3
parent 5f1a979a
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment