Commit 65367a811415dadceaa896257ab2109a002edf03
authorMichel Pollet <buserror@gmail.com>
Tue, 15 Mar 2011 13:38:11 +0000 (13:38 +0000)
committerMichel Pollet <buserror@gmail.com>
Tue, 15 Mar 2011 13:38:11 +0000 (13:38 +0000)
This flag was using the wrong register

Signed-off-by: Michel Pollet <buserror@gmail.com>
3 files changed:
simavr/cores/sim_mega128.c
simavr/cores/sim_megax4.h
simavr/cores/sim_megax8.h

index 460a66bc3525ac2d13fbe5e0cb10284a173f8d9d..4745cedf8dde88f6e7066189b6b267892972578e 100644 (file)
@@ -472,7 +472,7 @@ struct mcu_t {
 
                .twi = {
                        .enable = AVR_IO_REGBIT(TWCR, TWIE),
-                       .raised = AVR_IO_REGBIT(TWSR, TWINT),
+                       .raised = AVR_IO_REGBIT(TWCR, TWINT),
                        .vector = TWI_vect,
                },
        },
index 72599e31bd6dfb8c4fc407b17261071565d5e138..ecfd4915d9d257524ebf4232e31d4216b743d8f3 100644 (file)
@@ -414,7 +414,7 @@ struct mcu_t SIM_CORENAME = {
 
                .twi = {
                        .enable = AVR_IO_REGBIT(TWCR, TWIE),
-                       .raised = AVR_IO_REGBIT(TWSR, TWINT),
+                       .raised = AVR_IO_REGBIT(TWCR, TWINT),
                        .vector = TWI_vect,
                },
        },
index c78874c7191b4314b46011098887edd807b99402..75dc8351a38a5ef4edeea85395c1692e30d214e6 100644 (file)
@@ -363,7 +363,7 @@ struct mcu_t SIM_CORENAME = {
 
                .twi = {
                        .enable = AVR_IO_REGBIT(TWCR, TWIE),
-                       .raised = AVR_IO_REGBIT(TWSR, TWINT),
+                       .raised = AVR_IO_REGBIT(TWCR, TWINT),
                        .vector = TWI_vect,
                },
        },