diff options
author | Bdale Garbee <bdale@gag.com> | 2016-05-06 17:59:39 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2016-05-06 17:59:39 -0600 |
commit | ac7be4a40df88ee3a0992e041635e4ac4cf5ac48 (patch) | |
tree | ee3c747b2ee98b772e02dce604b58878e9336def /src/cc1111/ao_arch_funcs.h | |
parent | b53c78e75879d647935a30acb88fdd69467617a7 (diff) | |
parent | ce4c8a8ad57515e851207b0a82f3af791bb30d3e (diff) |
Merge branch 'master' into branch-1.6
Diffstat (limited to 'src/cc1111/ao_arch_funcs.h')
-rw-r--r-- | src/cc1111/ao_arch_funcs.h | 4 |
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) |