From 248a15167a3d116da59b493dbd381706b5dd5370 Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Wed, 2 Feb 2011 19:23:45 +0200 Subject: [PATCH] Enable interrupt handling for Fast PWM timers too Arduino seems to use that. --- simavr/sim/avr_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/avr_timer.c b/simavr/sim/avr_timer.c index f019952..ae16308 100644 --- a/simavr/sim/avr_timer.c +++ b/simavr/sim/avr_timer.c @@ -259,7 +259,7 @@ static void avr_timer_reconfigure(avr_timer_t * p) avr_timer_configure(p, f, top); } break; case avr_timer_wgm_fast_pwm: - // avr_timer_configure(p, f, (1 << p->mode.size) - 1); + avr_timer_configure(p, f, (1 << p->mode.size) - 1); break; default: printf("%s-%c unsupported timer mode wgm=%d (%d)\n", __FUNCTION__, p->name, mode, p->mode.kind); -- 2.39.5