summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch_funcs.h
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2016-05-06 18:13:12 -0600
committerBdale Garbee <bdale@gag.com>2016-05-06 18:13:12 -0600
commit4c20fdfa543059739b756171b991d430789cded1 (patch)
treef39e6c729364211bf0570c459c37b576ecf9faa9 /src/cc1111/ao_arch_funcs.h
parente58dd78bcb749315f84168c83a74cf80851bf815 (diff)
parent2f0c977c747824d0798550ac64eceb1d66c50efd (diff)
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'src/cc1111/ao_arch_funcs.h')
-rw-r--r--src/cc1111/ao_arch_funcs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cc1111/ao_arch_funcs.h b/src/cc1111/ao_arch_funcs.h
index ea340dfd..1eb506cd 100644
--- a/src/cc1111/ao_arch_funcs.h
+++ b/src/cc1111/ao_arch_funcs.h
@@ -146,4 +146,6 @@ ao_spi_init(void);
#define ao_enable_output(port,bit,pin,v) cc1111_enable_output(port,token_evaluator(port,DIR), token_evaluator(port,SEL), pin, bit, v)
#define ao_gpio_set(port, bit, pin, v) ((pin) = (v))
#define ao_gpio_get(port, bit, pin) (pin)
-
+#define ao_gpio_get_bits(port) (port)
+#define ao_gpio_set_bits(port, bits) ((port) |= bits)
+#define ao_gpio_clr_bits(port, bits) ((port) &= ~bits)