diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-22 15:53:55 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-22 15:53:55 -0700 |
commit | 61cee50c86e275f9fde875bd317c3e74255394ec (patch) | |
tree | ff48903e13244e38213d1b3ca719fc518840bafe /ao_timer.c | |
parent | 3703ecdc9e190f2e0b7ead0e71b78be881c1f3b7 (diff) |
simplify ao_time function
Diffstat (limited to 'ao_timer.c')
-rw-r--r-- | ao_timer.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |