33d44c68d241e3ea673a5cf72887e63a876b2a9a
[simavr] / simavr / cores / sim_tinyx4.c
1 /*
2     sim_tinyx4.c
3
4     Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
5                          Jon Escombe <lists@dresco.co.uk>
6
7      This file is part of simavr.
8
9     simavr is free software: you can redistribute it and/or modify
10     it under the terms of the GNU General Public License as published by
11     the Free Software Foundation, either version 3 of the License, or
12     (at your option) any later version.
13
14     simavr is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17     GNU General Public License for more details.
18
19     You should have received a copy of the GNU General Public License
20     along with simavr.  If not, see <http://www.gnu.org/licenses/>.
21  */
22
23 #include "sim_avr.h"
24
25 #include "sim_tinyx4.h"
26
27 void tx4_init(struct avr_t * avr)
28 {
29     struct mcu_t * mcu = (struct mcu_t*)avr;
30
31     avr_eeprom_init(avr, &mcu->eeprom);
32     avr_watchdog_init(avr, &mcu->watchdog);
33     avr_extint_init(avr, &mcu->extint);
34     avr_ioport_init(avr, &mcu->porta);
35     avr_ioport_init(avr, &mcu->portb);
36     avr_adc_init(avr, &mcu->adc);
37     avr_timer_init(avr, &mcu->timer0);
38     avr_timer_init(avr, &mcu->timer1);
39 }
40
41 void tx4_reset(struct avr_t * avr)
42 {
43 //      struct mcu_t * mcu = (struct mcu_t*)avr;
44 }