summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-16 15:24:21 -0700
committerKeith Packard <keithp@keithp.com>2012-07-16 15:24:21 -0700
commit90507d4f7ef77b0870a032b1d9809898c2924721 (patch)
treeeb81d3868b3cfab198fb338bf1918e6dfc0843df /src/core/ao.h
parent184e2ff4790974733df57facdeeb96bfe692ab54 (diff)
altos: Make ao_tick_count visible
Necessary to fetch it when interrupts are already disabled as we can't call ao_time then. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index d4be3be4..65b9eb18 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -125,6 +125,8 @@ ao_panic(uint8_t reason);
* ao_timer.c
*/
+extern volatile __data uint16_t ao_tick_count;
+
/* Our timer runs at 100Hz */
#define AO_HERTZ 100
#define AO_MS_TO_TICKS(ms) ((ms) / (1000 / AO_HERTZ))