From 022f83ca6fd589005d8eb3e25e633950fef69fa7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 17 Apr 2009 23:38:14 -0700 Subject: Add gps, debug dongle support and pressure alt tables GPS also pulled in serial support. The altitude tables take raw 11-bit pressure sample numbers and convert them to standard pressure altitude values. Signed-off-by: Keith Packard --- ao_timer.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ao_timer.c') diff --git a/ao_timer.c b/ao_timer.c index 702159b7..2bd47af1 100644 --- a/ao_timer.c +++ b/ao_timer.c @@ -21,12 +21,10 @@ static volatile __data uint16_t ao_tick_count; uint16_t ao_time(void) { - volatile bit ea_save; __data uint16_t ret; - - ea_save = EA; - ret = ao_tick_count; - EA = ea_save; + __critical { + ret = ao_tick_count; + } return ret; } -- cgit v1.2.3