projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
726e0f2
)
altos/stm: Expose ao_gpio_set which sets a specific GPIO pin
author
Keith Packard
<keithp@keithp.com>
Sat, 14 Jul 2012 08:28:55 +0000
(
01:28
-0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 14 Jul 2012 08:28:55 +0000
(
01:28
-0700)
Will need versions for other architectures
Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_arch_funcs.h
patch
|
blob
|
history
diff --git
a/src/stm/ao_arch_funcs.h
b/src/stm/ao_arch_funcs.h
index 7820bf798af2568e6b7ef4dc5bebf0394fda036d..4416bbabcd4194f7c3cbf9070f1f3abab7f63dbe 100644
(file)
--- a/
src/stm/ao_arch_funcs.h
+++ b/
src/stm/ao_arch_funcs.h
@@
-76,9
+76,11
@@
ao_spi_init(void);
} while (0)
+#define ao_gpio_set(port, pin, v) stm_gpio_set(port, pin, v)
+
#define ao_enable_output(port,pin,v) do { \
ao_enable_port(port); \
-
stm_gpio_set(port, pin, v);
\
+
ao_gpio_set(port, pin, v);
\
stm_moder_set(port, pin, STM_MODER_OUTPUT); \
} while (0)