From eca93983ee257cf56d2552444e66723252e35464 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Sat, 10 Apr 2010 13:19:19 +0100 Subject: [PATCH] example: Added OC2A to timer test Uses OC2A toggle with a VCD trace to demo the new compators. Signed-off-by: Michel Pollet --- tests/atmega88_timer16.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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<