projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
160884e
)
Commit
d784bdd3232472f44a1c49c78f68912b109f849c
author
Michel Pollet
<buserror@gmail.com>
Sun, 20 Jun 2010 10:25:53 +0000
(11:25 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Sun, 20 Jun 2010 10:25:53 +0000
(11:25 +0100)
Some broken code configure the clock source before
setting the waveform bits.
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/avr_timer.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/avr_timer.c
b/simavr/sim/avr_timer.c
index ce66983dd6e68f73cac39e1fc50f0807ea7329fc..5d658a5be94201806f648606ad4e509e57a43214 100644
(file)
--- a/
simavr/sim/avr_timer.c
+++ b/
simavr/sim/avr_timer.c
@@
-407,6
+407,7
@@
void avr_timer_init(avr_t * avr, avr_timer_t * p)
avr_register_vector(avr, &p->overflow);
avr_register_vector(avr, &p->icr);
+ avr_register_io_write(avr, p->wgm[0].reg, avr_timer_write, p);
avr_register_io_write(avr, p->cs[0].reg, avr_timer_write, p);
// this assumes all the "pending" interrupt bits are in the same