summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-10-23 14:08:59 -0700
committerKeith Packard <keithp@keithp.com>2011-10-23 14:08:59 -0700
commit7e7a10c06a0486e9f869e361e46f2c98db9897b0 (patch)
treefda3c3f704dcf30b75154853f7fdc19902346a8b /src/cc1111/ao_arch.h
parent8e2736226fcd7c1ab1ba93a5ebac9b285ebf4733 (diff)
altos: Add button driver and sample user
Hook up the teleterra buttons and have them beep Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_arch.h')
-rw-r--r--src/cc1111/ao_arch.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h
index 02e36189..23589e66 100644
--- a/src/cc1111/ao_arch.h
+++ b/src/cc1111/ao_arch.h
@@ -204,6 +204,21 @@ struct ao_adc {
#define AO_ADC_RING 32
+/* ao_button.c */
+void
+ao_p2_isr(void);
+
+void
+ao_button_init(void);
+
+#if HAS_BUTTON_P0
+void
+ao_p0_isr(void) ao_arch_interrupt(13);
+#endif
+
+char
+ao_button_get(void) __critical;
+
/* ao_string.c */
void