4
Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
6
This file is part of simavr.
8
simavr is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
13
simavr is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with simavr. If not, see <http://www.gnu.org/licenses/>.
22
// atmega32 has different name for Watchdog Turn-off Enable register
26
#define SIM_VECTOR_SIZE 4
27
#define SIM_MMCU "atmega32"
28
#define SIM_CORENAME mcu_mega32
30
#define ICP_PORT PORTD
33
#define OC0_PORT PORTB
36
#define OC1A_PORT PORTD
39
#define OC1B_PORT PORTD
42
#define OC2_PORT PORTD
45
#define EXT_CLOCK0_PORT PORTB
46
#define EXT_CLOCK0_PIN 0
48
#define EXT_CLOCK1_PORT PORTB
49
#define EXT_CLOCK1_PIN 1
53
#include "avr/iom32.h"
54
// instantiate the new core
55
#include "sim_megax.h"
59
return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
63
.names = { "atmega32", },