summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_timer.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-28 18:03:52 -0700
committerKeith Packard <keithp@keithp.com>2012-08-28 23:00:22 -0700
commit31b42b99edbb976534ac432c07e218f13d1f5f9b (patch)
tree738feb9a042a1dad0c04e36b610a0e1099050c40 /src/cc1111/ao_timer.c
parentac5d053e6d766d243b7a425ae19779810c350125 (diff)
altos: Fix ao_delay function and move from per-chip code to ao_task.c
ao_delay hasn't been chip-specific for a long time, and it had a bug in not calling ao_clear_alarm. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_timer.c')
-rw-r--r--src/cc1111/ao_timer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cc1111/ao_timer.c b/src/cc1111/ao_timer.c
index 602f98c8..a64b5aba 100644
--- a/src/cc1111/ao_timer.c
+++ b/src/cc1111/ao_timer.c
@@ -24,16 +24,6 @@ uint16_t ao_time(void) __critical
return ao_tick_count;
}
-static __xdata uint8_t ao_forever;
-
-void
-ao_delay(uint16_t ticks)
-{
- ao_alarm(ticks);
- ao_sleep(&ao_forever);
- ao_clear_alarm();
-}
-
#define T1_CLOCK_DIVISOR 8 /* 24e6/8 = 3e6 */
#define T1_SAMPLE_TIME 30000 /* 3e6/30000 = 100 */