summaryrefslogtreecommitdiff
path: root/src/cc1111
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-26 18:43:20 -0700
committerKeith Packard <keithp@keithp.com>2013-08-26 18:47:27 -0700
commit7e941695aa27e5eaf453ca1128b8d835472410a4 (patch)
treeba7c86e1d160824330cb584e4809ac828309e052 /src/cc1111
parent9b9acb88aa97e8565cdf9342fc59a5aee08e3d34 (diff)
altos: Check for MS5607 MISO low before sleeping
If the MISO line goes low before we manage to configure the interrupts, we'll miss it entirely unless we check the pin explicitly. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-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 ae184108..ea340dfd 100644
--- a/src/cc1111/ao_arch_funcs.h
+++ b/src/cc1111/ao_arch_funcs.h
@@ -145,4 +145,5 @@ 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)