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:
d617f6a
)
Commit
5d1d1f99ba10c8fd8f2c5f1d8eff32ae24eb4e81
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
|
download
diff --git
a/simavr/sim/avr_ioport.c
b/simavr/sim/avr_ioport.c
index 9e936e38a743db73a9eeb09c7c8f60eb9b61f579..ab632f1f514300f378ce89254953582568f40416 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);