From dfd97a7a7d9f8d1de1716f84174212c3760493e4 Mon Sep 17 00:00:00 2001 From: Max Schwarz Date: Thu, 5 Feb 2015 23:26:45 +0100 Subject: [PATCH] sim_avr.h: increase MAX_IOs by one to 280 ATmega2560 has UDR0 at 0x136 = 310 --- simavr/sim/sim_avr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/sim_avr.h b/simavr/sim/sim_avr.h index 7a93b4d..1366cb5 100644 --- a/simavr/sim/sim_avr.h +++ b/simavr/sim/sim_avr.h @@ -55,7 +55,7 @@ enum { R_SREG = 32+0x3f, // maximum number of IO registers, on normal AVRs - MAX_IOs = 279, // Bigger AVRs need more than 256-32 (mega1280) + MAX_IOs = 280, // Bigger AVRs need more than 256-32 (mega1280) }; #define AVR_DATA_TO_IO(v) ((v) - 32) -- 2.39.5