{
xvar++;
}
-ISR(TIM0_COMPB_vect)
-{
- xvar++;
-}
-
-ISR(TIM0_OVF_vect)
-{
- //xvar++;
-}
-
static void switch_idle(void)
{
TCCR0B |= (1 << CS02) | (1 << CS00); /* clk/1024 prescaler */
OCR0A = 0x7F; /* 50% duty cycle */
TCNT0 = 0;
- TIMSK = (1 << OCIE0A) | (1 << OCIE0B) | (1 << TOIE0); /* enable interrupts for overflow and compare */
+ TIMSK = (1 << OCIE0A); /* enable interrupts for overflow and compare */
sei();
while(1) {