Enable interrupt handling for Fast PWM timers too
authorSami Liedes <sliedes@cc.hut.fi>
Wed, 2 Feb 2011 17:23:45 +0000 (19:23 +0200)
committerSami Liedes <sliedes@cc.hut.fi>
Wed, 2 Feb 2011 20:53:04 +0000 (22:53 +0200)
Arduino seems to use that.

simavr/sim/avr_timer.c

index f019952..ae16308 100644 (file)
@@ -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);