projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Start using pdata area for less-frequently used data
[fw/altos]
/
ao_timer.c
diff --git
a/ao_timer.c
b/ao_timer.c
index 702159b73f64f0bb918a6e3417c3b971ff5c13a4..8b485cc26f5568efdb97647c8445adbb947f0399 100644
(file)
--- 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;
+ uint16_t ret;
+ __critical {
+ ret = ao_tick_count;
+ }
return ret;
}