projects
/
simavr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75a828
)
watchdog: Fix register naming
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
diff --git
a/simavr/sim/avr_watchdog.h
b/simavr/sim/avr_watchdog.h
index
0620b7f
..
eb816a4
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),\