/* Copyright (c) 2005,2007 Anatoly Sokolov All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* $Id: iotnx4.h 2225 2011-03-02 16:27:26Z arcanum $ */ /* avr/iotnx4.h - definitions for ATtiny24, ATtiny44 and ATtiny84 */ #ifndef _AVR_IOTNX4_H_ #define _AVR_IOTNX4_H_ 1 /* This file should only be included from , never directly. */ #ifndef _AVR_IO_H_ # error "Include instead of this file." #endif #ifndef _AVR_IOXXX_H_ # define _AVR_IOXXX_H_ "iotnx4.h" #else # error "Attempt to include more than one file." #endif /* I/O registers */ #define PRR _SFR_IO8 (0x00) #define PRTIM1 3 #define PRTIM0 2 #define PRUSI 1 #define PRADC 0 #define __AVR_HAVE_PRR ((1<] */ /* 0x3F SREG [defined in ] */ ///--- /* Interrupt vectors */ /* Interrupt vector 0 is the reset vector. */ /* External Interrupt Request 0 */ #define INT0_vect_num 1 #define INT0_vect _VECTOR(1) #define EXT_INT0_vect_num 1 #define EXT_INT0_vect _VECTOR(1) #define SIG_INTERRUPT0 _VECTOR(1) /* Pin Change Interrupt Request 0 */ #define PCINT0_vect_num 2 #define PCINT0_vect _VECTOR(2) #define SIG_PIN_CHANGE0 _VECTOR(2) /* Pin Change Interrupt Request 1 */ #define PCINT1_vect_num 3 #define PCINT1_vect _VECTOR(3) #define SIG_PIN_CHANGE1 _VECTOR(3) /* Watchdog Time-out */ #define WDT_vect_num 4 #define WDT_vect _VECTOR(4) #define WATCHDOG_vect_num 4 #define WATCHDOG_vect _VECTOR(4) #define SIG_WATCHDOG_TIMEOUT _VECTOR(4) /* Timer/Counter1 Capture Event */ #define TIMER1_CAPT_vect_num 5 #define TIMER1_CAPT_vect _VECTOR(5) #define TIM1_CAPT_vect_num 5 #define TIM1_CAPT_vect _VECTOR(5) #define SIG_INPUT_CAPTURE1 _VECTOR(5) /* Timer/Counter1 Compare Match A */ #define TIM1_COMPA_vect_num 6 #define TIM1_COMPA_vect _VECTOR(6) #define SIG_OUTPUT_COMPARE1A _VECTOR(6) /* Timer/Counter1 Compare Match B */ #define TIM1_COMPB_vect_num 7 #define TIM1_COMPB_vect _VECTOR(7) #define SIG_OUTPUT_COMPARE1B _VECTOR(7) /* Timer/Counter1 Overflow */ #define TIM1_OVF_vect_num 8 #define TIM1_OVF_vect _VECTOR(8) #define SIG_OVERFLOW1 _VECTOR(8) /* Timer/Counter0 Compare Match A */ #define TIM0_COMPA_vect_num 9 #define TIM0_COMPA_vect _VECTOR(9) #define SIG_OUTPUT_COMPARE0A _VECTOR(9) /* Timer/Counter0 Compare Match B */ #define TIM0_COMPB_vect_num 10 #define TIM0_COMPB_vect _VECTOR(10) #define SIG_OUTPUT_COMPARE0B _VECTOR(10) /* Timer/Counter0 Overflow */ #define TIM0_OVF_vect_num 11 #define TIM0_OVF_vect _VECTOR(11) #define SIG_OVERFLOW0 _VECTOR(11) /* Analog Comparator */ #define ANA_COMP_vect_num 12 #define ANA_COMP_vect _VECTOR(12) #define SIG_COMPARATOR _VECTOR(12) /* ADC Conversion Complete */ #define ADC_vect_num 13 #define ADC_vect _VECTOR(13) #define SIG_ADC _VECTOR(13) /* EEPROM Ready */ #define EE_RDY_vect_num 14 #define EE_RDY_vect _VECTOR(14) #define SIG_EEPROM_READY _VECTOR(14) /* USI START */ #define USI_START_vect_num 15 #define USI_START_vect _VECTOR(15) #define USI_STR_vect_num 15 #define USI_STR_vect _VECTOR(15) #define SIG_USI_START _VECTOR(15) /* USI Overflow */ #define USI_OVF_vect_num 16 #define USI_OVF_vect _VECTOR(16) #define SIG_USI_OVERFLOW _VECTOR(16) #define _VECTORS_SIZE 34 #endif /* _AVR_IOTNX4_H_ */