summaryrefslogtreecommitdiff
path: root/ao_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ao_timer.c')
-rw-r--r--ao_timer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ao_timer.c b/ao_timer.c
index 716befe6..eee5a6d4 100644
--- a/ao_timer.c
+++ b/ao_timer.c
@@ -19,13 +19,9 @@
static volatile __data uint16_t ao_tick_count;
-uint16_t ao_time(void)
+uint16_t ao_time(void) __critical
{
- uint16_t ret;
- __critical {
- ret = ao_tick_count;
- }
- return ret;
+ return ao_tick_count;
}
void