X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Favr%2Fao_timer.c;h=d2ea2be7da5ce142ceb46ad0d3ebaa40c1689add;hb=bc3610d8cecbfed40c62d4dcb93fc9a4d2a7c9e3;hp=cd81b163bc37bf657971095de81f8f83a774d053;hpb=90507d4f7ef77b0870a032b1d9809898c2924721;p=fw%2Faltos diff --git a/src/avr/ao_timer.c b/src/avr/ao_timer.c index cd81b163..d2ea2be7 100644 --- a/src/avr/ao_timer.c +++ b/src/avr/ao_timer.c @@ -28,15 +28,6 @@ uint16_t ao_time(void) 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 */