From: Michel Pollet Date: Sat, 10 Apr 2010 12:19:19 +0000 (+0100) Subject: example: Added OC2A to timer test X-Git-Tag: v1.0a2~6 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=eca93983ee257cf56d2552444e66723252e35464;p=sx%2Fsimavr.git example: Added OC2A to timer test Uses OC2A toggle with a VCD trace to demo the new compators. Signed-off-by: Michel Pollet --- diff --git a/tests/atmega88_timer16.c b/tests/atmega88_timer16.c index e587ba4..3319625 100644 --- a/tests/atmega88_timer16.c +++ b/tests/atmega88_timer16.c @@ -47,6 +47,7 @@ const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = { { AVR_MCU_VCD_SYMBOL("TCNT1H"), .what = (void*)&TCNT1H, }, { AVR_MCU_VCD_SYMBOL("tick"), .mask = (1 << 0), .what = (void*)&PORTB, }, { AVR_MCU_VCD_SYMBOL("reset_timer"), .mask = (1 << 1), .what = (void*)&PORTB, }, + { AVR_MCU_VCD_SYMBOL("OC2A"), .mask = (1 << 3), .what = (void*)&PORTB, }, }; volatile uint16_t tcnt; @@ -68,14 +69,16 @@ int main() // timer prescaler to 64 TCCR1B |= (0<