summaryrefslogtreecommitdiff
path: root/src/lpc/ao_arch_funcs.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-19 20:18:44 -0700
committerKeith Packard <keithp@keithp.com>2013-05-19 20:39:19 -0700
commit3fe11b277dd7268eb445d120c8f9537f95148891 (patch)
tree9a1e4a69be0340acfc4164729c4e14e8ef755dc1 /src/lpc/ao_arch_funcs.h
parenta78012782c779de3433b91e6b854b2fdbd7230fd (diff)
altos/lpc: Missing parens around ao_gpio_set macro
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_arch_funcs.h')
-rw-r--r--src/lpc/ao_arch_funcs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc/ao_arch_funcs.h b/src/lpc/ao_arch_funcs.h
index 3cd873ec..204d1227 100644
--- 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)])