summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-06 22:53:52 -0700
committerKeith Packard <keithp@keithp.com>2012-08-06 22:53:52 -0700
commit46f87373bc8c28442273ee4f8da3a352223150f5 (patch)
tree07f37b802ca3ffd68cbf43d5056aca0c8085caa7 /src/core/ao.h
parent11046bc89b3ce6386f1005fc8476b08f54d6f5fb (diff)
altos: Add button driver and event queue
With this, a single task can wait for any button or quadrature input device. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 1032dd33..5e1fbb9d 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -125,7 +125,12 @@ ao_panic(uint8_t reason);
* ao_timer.c
*/
-extern volatile __data uint16_t ao_tick_count;
+#ifndef AO_TICK_TYPE
+#define AO_TICK_TYPE uint16_t
+#define AO_TICK_SIGNED int16_t
+#endif
+
+extern volatile __data AO_TICK_TYPE ao_tick_count;
/* Our timer runs at 100Hz */
#define AO_HERTZ 100