From: Doug Goldstein Date: Fri, 7 Mar 2014 04:55:20 +0000 (-0600) Subject: megax8: Add missing define before including AVR hdr X-Git-Tag: v1.2~9^2~1 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=805168caa5f717e363cd265ea8fcb3d7beeeb7aa;p=sx%2Fsimavr.git megax8: Add missing define before including AVR hdr mega48, mega88, and mega168 all share a common header and rely on their platform to be defined prior to their headers being included. --- diff --git a/simavr/cores/sim_mega168.c b/simavr/cores/sim_mega168.c index 1ed79d3..c84a36a 100644 --- a/simavr/cores/sim_mega168.c +++ b/simavr/cores/sim_mega168.c @@ -27,6 +27,7 @@ #define _AVR_IO_H_ #define __ASSEMBLER__ +#define __AVR_ATmega168__ #include "avr/iom168.h" // instantiate the new core #include "sim_megax8.h" diff --git a/simavr/cores/sim_mega48.c b/simavr/cores/sim_mega48.c index 82bde2d..2cdf31d 100644 --- a/simavr/cores/sim_mega48.c +++ b/simavr/cores/sim_mega48.c @@ -27,6 +27,7 @@ #define _AVR_IO_H_ #define __ASSEMBLER__ +#define __AVR_ATmega48__ #include "avr/iom48.h" // instantiate the new core #include "sim_megax8.h" diff --git a/simavr/cores/sim_mega88.c b/simavr/cores/sim_mega88.c index ed11b3e..fd306d1 100644 --- a/simavr/cores/sim_mega88.c +++ b/simavr/cores/sim_mega88.c @@ -27,6 +27,7 @@ #define _AVR_IO_H_ #define __ASSEMBLER__ +#define __AVR_ATmega88__ #include "avr/iom88.h" // instantiate the new core #include "sim_megax8.h"