28
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
POSSIBILITY OF SUCH DAMAGE. */
31
/* $Id: iom406.h,v 1.1.2.2 2007/01/22 23:27:45 joerg_wunsch Exp $ */
31
/* $Id: iom406.h,v 1.3.2.2 2008/01/06 20:10:45 arcanum Exp $ */
33
33
/* avr/iom406.h - definitions for ATmega406 */
638
638
/* Battery Protection Interrupt */
639
639
#define BPINT_vect _VECTOR(1)
642
642
/* External Interrupt Request 0 */
643
643
#define INT0_vect _VECTOR(2)
646
646
/* External Interrupt Request 1 */
647
647
#define INT1_vect _VECTOR(3)
650
650
/* External Interrupt Request 2 */
651
651
#define INT2_vect _VECTOR(4)
654
654
/* External Interrupt Request 3 */
655
655
#define INT3_vect _VECTOR(5)
658
658
/* Pin Change Interrupt 0 */
659
659
#define PCINT0_vect _VECTOR(6)
662
662
/* Pin Change Interrupt 1 */
663
663
#define PCINT1_vect _VECTOR(7)
666
666
/* Watchdog Timeout Interrupt */
667
667
#define WDT_vect _VECTOR(8)
670
670
/* Wakeup timer overflow */
671
671
#define WAKE_UP_vect _VECTOR(9)
674
674
/* Timer/Counter 1 Compare Match */
675
675
#define TIM1_COMP_vect _VECTOR(10)
678
678
/* Timer/Counter 1 Overflow */
679
679
#define TIM1_OVF_vect _VECTOR(11)
682
682
/* Timer/Counter0 Compare A Match */
683
683
#define TIM0_COMPA_vect _VECTOR(12)
686
686
/* Timer/Counter0 Compare B Match */
687
687
#define TIM0_COMPB_vect _VECTOR(13)
690
690
/* Timer/Counter0 Overflow */
691
691
#define TIM0_OVF_vect _VECTOR(14)
694
694
/* Two-Wire Bus Connect/Disconnect */
695
695
#define TWI_BUS_CD_vect _VECTOR(15)
698
698
/* Two-Wire Serial Interface */
699
699
#define TWI_vect _VECTOR(16)
702
702
/* Voltage ADC Conversion Complete */
703
703
#define VADC_vect _VECTOR(17)
706
706
/* Coulomb Counter ADC Conversion Complete */
707
707
#define CCADC_CONV_vect _VECTOR(18)
709
709
/* Coloumb Counter ADC Regular Current */
710
710
#define CCADC_REG_CUR_vect _VECTOR(19)
713
713
/* Coloumb Counter ADC Accumulator */
714
714
#define CCADC_ACC_vect _VECTOR(20)
717
717
/* EEPROM Ready */
718
718
#define EE_READY_vect _VECTOR(21)
721
721
/* Store Program Memory Ready */
722
722
#define SPM_READY_vect _VECTOR(22)
730
730
#define E2END 0x1FF
731
731
#define FLASHEND 0x9FFF
736
#define FUSE_MEMORY_SIZE 2
739
#define FUSE_CKSEL ~_BV(0)
740
#define FUSE_SUT0 ~_BV(1)
741
#define FUSE_SUT1 ~_BV(2)
742
#define FUSE_BOOTRST ~_BV(3)
743
#define FUSE_BOOTSZ0 ~_BV(4)
744
#define FUSE_BOOTSZ1 ~_BV(5)
745
#define FUSE_EESAVE ~_BV(6)
746
#define FUSE_WDTON ~_BV(7)
747
#define LFUSE_DEFAULT (FUSE_SUT0 & FUSE_BOOTSZ0 & FUSE_BOOTSZ1)
750
#define FUSE_JTAGEN ~_BV(0)
751
#define FUSE_OCDEN ~_BV(1)
752
#define HFUSE_DEFAULT (FUSE_JTAGEN)
756
#define __LOCK_BITS_EXIST
757
#define __BOOT_LOCK_BITS_0_EXIST
758
#define __BOOT_LOCK_BITS_1_EXIST
733
761
#endif /* _AVR_IOM406_H_ */