From 805168caa5f717e363cd265ea8fcb3d7beeeb7aa Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 6 Mar 2014 22:55:20 -0600 Subject: [PATCH] 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. --- simavr/cores/sim_mega168.c | 1 + simavr/cores/sim_mega48.c | 1 + simavr/cores/sim_mega88.c | 1 + 3 files changed, 3 insertions(+) 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" -- 2.39.5