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:
f75a828
)
Commit
8633f5b781376d975910e01d01c1046d5be7da3e
author
Stephan Veigl
<veigl@gmx.net>
Thu, 29 Nov 2012 10:25:20 +0000
(11:25 +0100)
committer
Stephan Veigl
<veigl@gmx.net>
Thu, 29 Nov 2012 10:25:20 +0000
(11:25 +0100)
MCUSR is called MCUCSR in atmega128
Signed-off-by: Stephan Veigl <veigl@gmx.net>
simavr/sim/avr_watchdog.h
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/avr_watchdog.h
b/simavr/sim/avr_watchdog.h
index 0620b7f02109fceffad379fb22448bb902de7c91..eb816a4b040fa703b4eb455c27ce529a0b84a8a5 100644
(file)
--- a/
simavr/sim/avr_watchdog.h
+++ b/
simavr/sim/avr_watchdog.h
@@
-69,9
+69,10
@@
void avr_watchdog_init(avr_t * avr, avr_watchdog_t * p);
}
/* no WDP3, WDIE, WDIF in atmega128 */
+/* MCUSR is called MCUCSR in atmega128 */
#define AVR_WATCHDOG_DECLARE_128(_WDSR, _vec) \
.watchdog = {\
- .wdrf = AVR_IO_REGBIT(MCUSR, WDRF),\
+ .wdrf = AVR_IO_REGBIT(MCU
C
SR, WDRF),\
.wdce = AVR_IO_REGBIT(_WDSR, WDCE),\
.wde = AVR_IO_REGBIT(_WDSR, WDE),\
.wdp = { AVR_IO_REGBIT(_WDSR, WDP0),AVR_IO_REGBIT(_WDSR, WDP1),\