projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/cc1111: Wait for xtal to be stable
[fw/altos]
/
src
/
avr
/
ao_timer.c
diff --git
a/src/avr/ao_timer.c
b/src/avr/ao_timer.c
index eef14345dda7d5bf96a09881c61c6b27915c4975..d2ea2be7da5ce142ceb46ad0d3ebaa40c1689add 100644
(file)
--- a/
src/avr/ao_timer.c
+++ b/
src/avr/ao_timer.c
@@
-17,7
+17,7
@@
#include "ao.h"
#include "ao.h"
-
static
volatile __data uint16_t ao_tick_count;
+volatile __data uint16_t ao_tick_count;
uint16_t ao_time(void)
{
uint16_t ao_time(void)
{
@@
-28,15
+28,6
@@
uint16_t ao_time(void)
return v;
}
return v;
}
-static __xdata uint8_t ao_forever;
-
-void
-ao_delay(uint16_t ticks)
-{
- ao_alarm(ticks);
- ao_sleep(&ao_forever);
-}
-
#define T1_CLOCK_DIVISOR 8 /* 24e6/8 = 3e6 */
#define T1_SAMPLE_TIME 30000 /* 3e6/30000 = 100 */
#define T1_CLOCK_DIVISOR 8 /* 24e6/8 = 3e6 */
#define T1_SAMPLE_TIME 30000 /* 3e6/30000 = 100 */