projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a780127
)
altos/lpc: Missing parens around ao_gpio_set macro
author
Keith Packard
<keithp@keithp.com>
Mon, 20 May 2013 03:18:44 +0000
(20:18 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 20 May 2013 03:39:19 +0000
(20:39 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_arch_funcs.h
patch
|
blob
|
history
diff --git
a/src/lpc/ao_arch_funcs.h
b/src/lpc/ao_arch_funcs.h
index 3cd873ec89c3017a4364fbd063935e4d094be012..204d1227dd5f525d02579efd85dac30db4a55096 100644
(file)
--- a/
src/lpc/ao_arch_funcs.h
+++ b/
src/lpc/ao_arch_funcs.h
@@
-25,7
+25,7
@@
#define lpc_all_bit(port,bit) (((port) << 5) | (bit))
-#define ao_gpio_set(port, bit, pin, v) (lpc_gpio.byte[lpc_all_bit(port,bit)] =
v
)
+#define ao_gpio_set(port, bit, pin, v) (lpc_gpio.byte[lpc_all_bit(port,bit)] =
(v)
)
#define ao_gpio_get(port, bit, pin) (lpc_gpio_byte[lpc_all_bit(port,bit)])