00001 /* 00002 **************************************************************************** 00003 * 00004 * simulavr - A simulator for the Atmel AVR family of microcontrollers. 00005 * Copyright (C) 2001, 2002, 2003 Klaus Rudolph 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 **************************************************************************** 00022 * 00023 * $Id$ 00024 */ 00025 00026 #ifndef AT8515 00027 #define AT8515 00028 #include "avrdevice.h" 00029 00030 #include "hwspi.h" 00031 #include "hwuart.h" 00032 #include "hwacomp.h" 00033 #include "hwtimer/timerprescaler.h" 00034 #include "hwtimer/hwtimer.h" 00035 #include "externalirq.h" 00036 #include "hwport.h" 00037 00039 class AvrDevice_at90s8515: public AvrDevice { 00040 00041 private: 00042 HWPort portx; // only used for oc1b and icp (Timer1) 00043 00044 public: 00045 HWPort *porta; 00046 HWPort *portb; 00047 HWPort *portc; 00048 HWPort *portd; 00049 Pin& ocr1b; 00050 HWSpi *spi; 00051 HWUart *uart; 00052 HWAcomp *acomp; 00053 HWPrescaler *prescaler; 00054 TimerIRQRegister *timer01irq; 00055 HWTimer8_0C *timer0; 00056 ICaptureSource *inputCapture1; 00057 HWTimer16_2C2 *timer1; 00058 ExternalIRQHandler *extirq; 00059 IOSpecialReg *gimsk_reg; 00060 IOSpecialReg *gifr_reg; 00061 IOSpecialReg *mcucr_reg; 00062 00063 AvrDevice_at90s8515(); 00064 ~AvrDevice_at90s8515(); 00065 }; 00066 #endif 00067