fix INT2 pin
authorkittennbfive <58293822+kittennbfive@users.noreply.github.com>
Fri, 5 Feb 2021 19:23:28 +0000 (19:23 +0000)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 19:23:28 +0000 (19:23 +0000)
according to datasheet, tested with some code that works on real device (1284P)

simavr/cores/sim_megax4.h

index 10384b7..22ac998 100644 (file)
@@ -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,