From c848b26fdf43f0bccb25dc7617c487616dd03814 Mon Sep 17 00:00:00 2001 From: kittennbfive <58293822+kittennbfive@users.noreply.github.com> Date: Fri, 5 Feb 2021 19:23:28 +0000 Subject: [PATCH] fix INT2 pin according to datasheet, tested with some code that works on real device (1284P) --- simavr/cores/sim_megax4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/cores/sim_megax4.h b/simavr/cores/sim_megax4.h index 10384b7..22ac998 100644 --- a/simavr/cores/sim_megax4.h +++ b/simavr/cores/sim_megax4.h @@ -91,7 +91,7 @@ const struct mcu_t SIM_CORENAME = { .extint = { AVR_EXTINT_DECLARE(0, 'D', PD2), AVR_EXTINT_DECLARE(1, 'D', PD3), - AVR_EXTINT_DECLARE(2, 'B', PB3), + AVR_EXTINT_DECLARE(2, 'B', PB2), }, .porta = { .name = 'A', .r_port = PORTA, .r_ddr = DDRA, .r_pin = PINA, -- 2.39.5