diff options
author | Keith Packard <keithp@keithp.com> | 2012-08-05 12:15:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-05 12:15:36 -0700 |
commit | 2610b316eb939c1532061646b05207fcd54d984f (patch) | |
tree | f90cd1599b7fbc9fbcaf0294fab81b5961c7c664 | |
parent | 82a37d70e3cacf792c1aa18f8c0d2a19d6f321ed (diff) |
src/cc1111: Add ao_gpio_set macro
Allows general GPIO-using code to run on cc1111
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/cc1111/ao_arch_funcs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch_funcs.h b/src/cc1111/ao_arch_funcs.h index 0737e7ab..29755b5c 100644 --- a/src/cc1111/ao_arch_funcs.h +++ b/src/cc1111/ao_arch_funcs.h @@ -88,3 +88,4 @@ ao_spi_init(void); #define token_paster(x,y) x ## y #define token_evaluator(x,y) token_paster(x,y) #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)) |