projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a37d7
)
src/cc1111: Add ao_gpio_set macro
author
Keith Packard
<keithp@keithp.com>
Sun, 5 Aug 2012 19:15:36 +0000
(12:15 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 5 Aug 2012 19:15:36 +0000
(12:15 -0700)
Allows general GPIO-using code to run on cc1111
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_arch_funcs.h
patch
|
blob
|
history
diff --git
a/src/cc1111/ao_arch_funcs.h
b/src/cc1111/ao_arch_funcs.h
index 0737e7abeb2c113449e9ee839d4a68328d5dc265..29755b5c5c8c47d3b3e177a21b0cbad01a044189 100644
(file)
--- 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))