projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make some functions reentrant to save DSEG space
[fw/altos]
/
ao_timer.c
diff --git
a/ao_timer.c
b/ao_timer.c
index 716befe658f567acd06f14dfd4f1b0503c007bef..eee5a6d4512c7ffa5a44080df9446153286586cd 100644
(file)
--- a/
ao_timer.c
+++ b/
ao_timer.c
@@
-19,13
+19,9
@@
static volatile __data uint16_t ao_tick_count;
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
}
void