[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 06/10] hw/avr: Add ATmega microcontrollers
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH 06/10] hw/avr: Add ATmega microcontrollers |
Date: |
Thu, 28 Nov 2019 02:55:54 +0100 |
On Thu, Nov 28, 2019 at 2:50 AM Philippe Mathieu-Daudé <address@hidden> wrote:
>
> Add famous ATmega MCUs:
>
> - middle range: ATmega168 and ATmega328
> - high range: ATmega1280 and ATmega2560
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> 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"
[...]
- [RFC PATCH 00/10] hw/avr: Introduce the Arduino board, Philippe Mathieu-Daudé, 2019/11/27
- [NOTFORMERGE PATCH 01/10] hw/avr: Kludge to fix build failure, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 02/10] target/avr: Remove unused include, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 03/10] target/avr: Add missing definitions, Philippe Mathieu-Daudé, 2019/11/27
- [NOTFORMERGE PATCH 04/10] target/avr: Fix IRQ count, Philippe Mathieu-Daudé, 2019/11/27
- [RFC PATCH 05/10] hw/char/avr: Reduce USART I/O size, Philippe Mathieu-Daudé, 2019/11/27
- [RFC PATCH 07/10] hw/avr: Add few Arduino boards, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 08/10] tests/acceptance: Keep multilines comment consistent with other tests, Philippe Mathieu-Daudé, 2019/11/27
- [RFC PATCH 06/10] hw/avr: Add ATmega microcontrollers, Philippe Mathieu-Daudé, 2019/11/27
- Re: [RFC PATCH 06/10] hw/avr: Add ATmega microcontrollers, Philippe Mathieu-Daudé, 2019/11/28
[RFC PATCH 09/10] tests/acceptance: Use the ATmega2560 board, Philippe Mathieu-Daudé, 2019/11/27
[NOTFORMERGE PATCH 10/10] hw/avr: Remove the 'sample' board, Philippe Mathieu-Daudé, 2019/11/27
Re: [RFC PATCH 00/10] hw/avr: Introduce the Arduino board, Michael Rolnik, 2019/11/28