summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-11-12 18:30:56 -0800
committerKeith Packard <keithp@keithp.com>2011-11-12 18:30:56 -0800
commit4de8bf6da4d725bb0514d032b0708c5cf420e8fa (patch)
treef3ebcb2dc916fa0703c6193268a718ae9a975bbe /src/cc1111/ao_arch.h
parentad41b5820c2e252627959e4627473f07784be23e (diff)
altos: debounce buttons
Provide API to clear out any button events that happen during startup, and then discard button events 'too close' together. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_arch.h')
-rw-r--r--src/cc1111/ao_arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h
index 001165fa..eb8ce9be 100644
--- a/src/cc1111/ao_arch.h
+++ b/src/cc1111/ao_arch.h
@@ -231,6 +231,9 @@ ao_button_init(void);
char
ao_button_get(void) __critical;
+void
+ao_button_clear(void) __critical;
+
/* ao_string.c */
void