From: Max Schwarz Date: Thu, 5 Feb 2015 22:26:45 +0000 (+0100) Subject: sim_avr.h: increase MAX_IOs by one to 280 X-Git-Tag: v1.3~55^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=dfd97a7a7d9f8d1de1716f84174212c3760493e4;p=sx%2Fsimavr.git sim_avr.h: increase MAX_IOs by one to 280 ATmega2560 has UDR0 at 0x136 = 310 --- 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)