diff options
Diffstat (limited to '')
| -rw-r--r-- | test/stubbed/avr/interrupt.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/stubbed/avr/interrupt.h b/test/stubbed/avr/interrupt.h index bcab79c..19dfa36 100644 --- a/test/stubbed/avr/interrupt.h +++ b/test/stubbed/avr/interrupt.h @@ -1,4 +1,4 @@ -#define ISR(INTER) void generated_interrupt_##INTER() +#define ISR(INTER, ...) void generated_interrupt_##INTER() static void cli() {} static void sei() {} @@ -6,15 +6,15 @@ static void sei() {} #define stub_run_timers() \ { \ if (TCNT0 == OCR0A) { \ - generated_interrupt_TIM0_OVF_vect(); \ + generated_interrupt_TIM0_COMPA_vect(); \ TCNT0 = 0; \ } else { \ TCNT0++; \ } \ - if (TCNT1L == OCR1AH) { \ - generated_interrupt_TIM1_OVF_vect(); \ - TCNT1L = 0; \ + if (TCNT1 == OCR1A) { \ + generated_interrupt_TIM1_COMPA_vect(); \ + TCNT1 = 0; \ } else { \ - TCNT1L++; \ + TCNT1++; \ } \ } |
