34 #include "sys/clock.h"
38 #include <avr/interrupt.h>
40 static volatile clock_time_t count, scount;
41 static volatile unsigned long seconds;
64 TIMSK &= ~( _BV(TOIE0) | _BV(OCIE0) );
78 TCCR0 = _BV(CS00) | _BV(CS01) | _BV(WGM01);
114 }
while(tmp != count);
126 for (j = 50; j > 0; j--)
142 while(
clock_time() - start < (clock_time_t)i);
146 clock_set_seconds(
unsigned long sec)
157 }
while(tmp != seconds);