diff options
author | Erich Eckner <git@eckner.net> | 2018-10-29 09:30:18 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-29 09:30:18 +0100 |
commit | 63d1c14e7f05855b62257def0e601a6c5ef1efaa (patch) | |
tree | 50c96716010c2bef18f7a1a0129736fa97b7063b /multiplexer.h | |
parent | d5d1f76a0b8fb1603f509e1296e9a29bf5dfa879 (diff) | |
download | anzeige-63d1c14e7f05855b62257def0e601a6c5ef1efaa.tar.xz |
multiplexer.h: () around macro arguments
Diffstat (limited to 'multiplexer.h')
-rw-r--r-- | multiplexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/multiplexer.h b/multiplexer.h index d7f7aee..0b6cdce 100644 --- a/multiplexer.h +++ b/multiplexer.h @@ -56,7 +56,7 @@ volatile unsigned *gpio; #define GPIO_SET *(gpio+7) // sets bits which are 1 ignores bits which are 0 #define GPIO_CLR *(gpio+10) // clears bits which are 1 ignores bits which are 0 -#define GPIO_ALTER(a) *(gpio+(a==0?10:7)) // alters (a==0: clear, else: set) bits which are 1 ignores bits which are 0 +#define GPIO_ALTER(a) *(gpio+((a)==0?10:7)) // alters (a==0: clear, else: set) bits which are 1 ignores bits which are 0 #define GET_GPIO(g) (*(gpio+13)&(1<<g)) // 0 if LOW, (1<<g) if HIGH |