summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-05 12:15:36 -0700
committerKeith Packard <keithp@keithp.com>2012-08-05 12:15:36 -0700
commit2610b316eb939c1532061646b05207fcd54d984f (patch)
treef90cd1599b7fbc9fbcaf0294fab81b5961c7c664 /src
parent82a37d70e3cacf792c1aa18f8c0d2a19d6f321ed (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>
Diffstat (limited to 'src')
-rw-r--r--src/cc1111/ao_arch_funcs.h1
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))