public
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d617f6a
)
Do not set filter flag as handlers for IOPORT_IRQ_REG_PIN should be
author
ga
<ga@oldell.fish>
Tue, 9 Feb 2021 21:26:36 +0000
(21:26 +0000)
committer
ga
<ga@oldell.fish>
Tue, 9 Feb 2021 21:34:20 +0000
(21:34 +0000)
called on every read of the port pins, so they can set new values.
simavr/sim/avr_ioport.c
patch
|
blob
|
history
diff --git
a/simavr/sim/avr_ioport.c
b/simavr/sim/avr_ioport.c
index
9e936e3
..
ab632f1
100644
(file)
--- a/
simavr/sim/avr_ioport.c
+++ b/
simavr/sim/avr_ioport.c
@@
-282,7
+282,7
@@
void avr_ioport_init(avr_t * avr, avr_ioport_t * p)
// allocate this module's IRQ
avr_io_setirqs(&p->io, AVR_IOCTL_IOPORT_GETIRQ(p->name), IOPORT_IRQ_COUNT, NULL);
- for (int i = 0; i < IOPORT_IRQ_
COUNT
; i++)
+ for (int i = 0; i < IOPORT_IRQ_
REG_PIN
; i++)
p->io.irq[i].flags |= IRQ_FLAG_FILTERED;
avr_register_io_write(avr, p->r_port, avr_ioport_write, p);