From: Sami Liedes Date: Wed, 2 Feb 2011 17:23:45 +0000 (+0200) Subject: Enable interrupt handling for Fast PWM timers too X-Git-Tag: v1.0a7~46 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=248a15167a3d116da59b493dbd381706b5dd5370;p=sx%2Fsimavr.git Enable interrupt handling for Fast PWM timers too Arduino seems to use that. --- 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);