From 8633f5b781376d975910e01d01c1046d5be7da3e Mon Sep 17 00:00:00 2001 From: Stephan Veigl Date: Thu, 29 Nov 2012 11:25:20 +0100 Subject: [PATCH] watchdog: Fix register naming MCUSR is called MCUCSR in atmega128 Signed-off-by: Stephan Veigl --- simavr/sim/avr_watchdog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simavr/sim/avr_watchdog.h b/simavr/sim/avr_watchdog.h index 0620b7f..eb816a4 100644 --- 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(MCUCSR, WDRF),\ .wdce = AVR_IO_REGBIT(_WDSR, WDCE),\ .wde = AVR_IO_REGBIT(_WDSR, WDE),\ .wdp = { AVR_IO_REGBIT(_WDSR, WDP0),AVR_IO_REGBIT(_WDSR, WDP1),\ -- 2.39.5