projects
/
simavr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc151e0
)
Enable interrupt handling for Fast PWM timers too
author
Sami Liedes
<sliedes@cc.hut.fi>
Wed, 2 Feb 2011 17:23:45 +0000
(19:23 +0200)
committer
Sami 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
patch
|
blob
|
history
diff --git
a/simavr/sim/avr_timer.c
b/simavr/sim/avr_timer.c
index
f019952
..
ae16308
100644
(file)
--- 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);