void timer1_init() {
DDRD |= (1 << PB1);
TCCR1A |= (1<<6)|(1<<0);
TCCR1B |= (1 << WGM12);//|(1 << CS12) | (1 << CS10);
TCNT1 = 0;
OCR1A = 15624;
TCCR1B |= (1 << CS12) | (1 << CS10);
TIMSK1 |= (1 << OCIE1A);
sei();
}
int main(){
timer1_init();
while(1){
//
}
}