simplify ao_time function
authorKeith Packard <keithp@keithp.com>
Wed, 22 Apr 2009 22:53:55 +0000 (15:53 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 22 Apr 2009 22:53:55 +0000 (15:53 -0700)
ao_timer.c

index 716befe..eee5a6d 100644 (file)
 
 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