From: Jakob Gruber Date: Tue, 31 Jul 2012 10:46:59 +0000 (+0200) Subject: cores: Set raise_sticky in TWI interrupt vectors X-Git-Tag: v1.0~38 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=8a362b7623ed36cb04b06fbe893e31dbc90f55ef;p=sx%2Fsimavr.git cores: Set raise_sticky in TWI interrupt vectors --- diff --git a/simavr/cores/sim_mega128.c b/simavr/cores/sim_mega128.c index ce142a5..8d725d3 100644 --- a/simavr/cores/sim_mega128.c +++ b/simavr/cores/sim_mega128.c @@ -473,6 +473,7 @@ const struct mcu_t { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, }, diff --git a/simavr/cores/sim_mega1280.c b/simavr/cores/sim_mega1280.c index 6f4999d..165a054 100755 --- a/simavr/cores/sim_mega1280.c +++ b/simavr/cores/sim_mega1280.c @@ -602,6 +602,7 @@ const struct mcu_t { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, }, diff --git a/simavr/cores/sim_mega1281.c b/simavr/cores/sim_mega1281.c index 8ec486c..bf81eb2 100644 --- a/simavr/cores/sim_mega1281.c +++ b/simavr/cores/sim_mega1281.c @@ -501,6 +501,7 @@ const struct mcu_t { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, }, diff --git a/simavr/cores/sim_megax.h b/simavr/cores/sim_megax.h index 65f5616..b80469d 100644 --- a/simavr/cores/sim_megax.h +++ b/simavr/cores/sim_megax.h @@ -314,6 +314,7 @@ const struct mcu_t SIM_CORENAME = { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, }, diff --git a/simavr/cores/sim_megax4.h b/simavr/cores/sim_megax4.h index 030aebb..4b6c463 100644 --- a/simavr/cores/sim_megax4.h +++ b/simavr/cores/sim_megax4.h @@ -418,6 +418,7 @@ const struct mcu_t SIM_CORENAME = { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, }, diff --git a/simavr/cores/sim_megax8.h b/simavr/cores/sim_megax8.h index 385bc8f..51f2d24 100644 --- a/simavr/cores/sim_megax8.h +++ b/simavr/cores/sim_megax8.h @@ -364,6 +364,7 @@ const struct mcu_t SIM_CORENAME = { .twi = { .enable = AVR_IO_REGBIT(TWCR, TWIE), .raised = AVR_IO_REGBIT(TWCR, TWINT), + .raise_sticky = 1, .vector = TWI_vect, }, },