X-Git-Url: https://robinkrens.nl/gitweb/?p=lra-as-sensor;a=blobdiff_plain;f=hbc.c;fp=hbc.c;h=6080410298693cb414d951caab7bbe72868a5aa1;hp=5ff04c791b846c571606a90adef96a5cd0020aa7;hb=be4ee52ea901f7bd7786ffea9010d3e473754a67;hpb=695d72fdf6ce4d714df79f4ac037e65cdd5ba640 diff --git a/hbc.c b/hbc.c index 5ff04c7..6080410 100644 --- a/hbc.c +++ b/hbc.c @@ -18,16 +18,6 @@ ISR(TIM0_COMPA_vect) { xvar++; } -ISR(TIM0_COMPB_vect) -{ - xvar++; -} - -ISR(TIM0_OVF_vect) -{ - //xvar++; -} - static void switch_idle(void) { @@ -56,7 +46,7 @@ int main(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) {