On Thu, Nov 28, 2019 at 2:50 AM Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > > Add famous ATmega MCUs: > > - middle range: ATmega168 and ATmega328 > - high range: ATmega1280 and ATmega2560 > > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> > --- > hw/avr/atmega.h | 58 +++++++ > hw/avr/atmega.c | 379 +++++++++++++++++++++++++++++++++++++++++++ > hw/avr/Makefile.objs | 1 + > 3 files changed, 438 insertions(+) > create mode 100644 hw/avr/atmega.h > create mode 100644 hw/avr/atmega.c > > diff --git a/hw/avr/atmega.h b/hw/avr/atmega.h > new file mode 100644 > index 0000000000..d22d90a962 > --- /dev/null > +++ b/hw/avr/atmega.h > @@ -0,0 +1,58 @@ > +/* > + * QEMU ATmega MCU > + * > + * Copyright (c) 2019 Philippe Mathieu-Daudé > + * > + * This work is licensed under the terms of the GNU GPLv2 or later. > + * See the COPYING file in the top-level directory. > + * SPDX-License-Identifier: GPL-2.0-or-later > + */ > + > +#ifndef HW_AVR_ATMEGA_H > +#define HW_AVR_ATMEGA_H > + > +#include "hw/char/avr_usart.h" > +#include "hw/char/avr_usart.h"
Oops duplicated header. > +#include "hw/timer/avr_timer16.h" > +#include "hw/misc/avr_mask.h" > +#include "target/avr/cpu.h" [...]