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:
13ee4cc
)
Commit
2c3afb1f55a6f6b5553070fb09e95ec8add12c3d
author
Michel Pollet
<buserror@gmail.com>
Thu, 24 Feb 2011 18:05:06 +0000
(18:05 +0000)
committer
Michel Pollet
<buserror@gmail.com>
Thu, 24 Feb 2011 18:05:06 +0000
(18:05 +0000)
As to why somehow we don'r write a value in the interupt
clearing logic
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/avr_uart.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/avr_uart.c
b/simavr/sim/avr_uart.c
index b01ebe1fb098ee9b26a6f5691b456f6d890899e5..3193575b88f7dc908a68b39967541d4f61587b4b 100644
(file)
--- a/
simavr/sim/avr_uart.c
+++ b/
simavr/sim/avr_uart.c
@@
-161,6
+161,9
@@
static void avr_uart_write(struct avr_t * avr, avr_io_addr_t addr, uint8_t v, vo
uint8_t udre = avr_regbit_get(avr, p->udrc.raised);
uint8_t txc = avr_regbit_get(avr, p->txc.raised);
+ // no need to write this value in here, only the
+ // interupt flags needs clearing!
+ // avr_core_watch_write(avr, addr, v);
avr_clear_interupt_if(avr, &p->udrc, udre);
avr_clear_interupt_if(avr, &p->txc, txc);