mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-11 22:24:13 +01:00
1b3ae5fa63
Made some helper class for files filtering. platforms.txt now contains only one platform at a time. Some cleanup in Compiler and AvrDudeUploader classes.
742 lines
19 KiB
C
742 lines
19 KiB
C
//**************************************************************************************************
|
|
//*
|
|
//* interrupt vector names
|
|
//*
|
|
//* It is important to note that the vector numbers listed here
|
|
//* are the ATMEL documentation numbers. The Arduino numbers are 1 less
|
|
//* This is because the Atmel docs start numbering the interrupts at 1
|
|
//* when it is actually vector #0 in the table.
|
|
//**************************************************************************************************
|
|
//* Jun 1, 2010 <MLS> Added support for ATmega1281
|
|
//* Jun 30, 2010 <MLS> Putting in more ifdefs to conserve space
|
|
//* Jul 3, 2010 <MLS> More #ifdefs to conserve space and testing on most of my boards
|
|
//* Jul 4, 2010 <MLS> Started using vector defs for #ifdefs as defined in <avr/io.h>
|
|
//* Jul 13, 2010 <MLS> Added support for __AVR_ATmega128__
|
|
//* Aug 26, 2010 <MLS> Added support for __AVR_ATmega2561__
|
|
//**************************************************************************************************
|
|
|
|
//#include "avrinterruptnames.h"
|
|
|
|
//**************************************************************************************************
|
|
//* this defines the interrupt vectors and allows us to compile ONLY those strings that are actually
|
|
//* in the target CPU. This way we do not have to keep making changes based on cpu, it will be
|
|
//* automatic even if we add a new CPU
|
|
#ifndef _AVR_IO_H_
|
|
#include <avr/io.h>
|
|
#endif
|
|
//**************************************************************************************************
|
|
|
|
#ifdef __MWERKS__
|
|
#define prog_char char
|
|
#define PGM_P char *
|
|
#endif
|
|
|
|
prog_char gAvrInt_RESET[] PROGMEM = "RESET";
|
|
#ifdef INT0_vect
|
|
prog_char gAvrInt_INT0[] PROGMEM = "INT0";
|
|
#endif
|
|
#ifdef INT1_vect
|
|
prog_char gAvrInt_INT1[] PROGMEM = "INT1";
|
|
#endif
|
|
#ifdef INT2_vect
|
|
prog_char gAvrInt_INT2[] PROGMEM = "INT2";
|
|
#endif
|
|
#ifdef INT3_vect
|
|
prog_char gAvrInt_INT3[] PROGMEM = "INT3";
|
|
#endif
|
|
#ifdef INT4_vect
|
|
prog_char gAvrInt_INT4[] PROGMEM = "INT4";
|
|
#endif
|
|
#ifdef INT5_vect
|
|
prog_char gAvrInt_INT5[] PROGMEM = "INT5";
|
|
#endif
|
|
#ifdef INT6_vect
|
|
prog_char gAvrInt_INT6[] PROGMEM = "INT6";
|
|
#endif
|
|
#ifdef INT7_vect
|
|
prog_char gAvrInt_INT7[] PROGMEM = "INT7";
|
|
#endif
|
|
#ifdef PCINT0_vect
|
|
prog_char gAvrInt_PCINT0[] PROGMEM = "PCINT0";
|
|
#endif
|
|
#ifdef PCINT1_vect
|
|
prog_char gAvrInt_PCINT1[] PROGMEM = "PCINT1";
|
|
#endif
|
|
#ifdef PCINT2_vect
|
|
prog_char gAvrInt_PCINT2[] PROGMEM = "PCINT2";
|
|
#endif
|
|
#ifdef PCINT3_vect
|
|
prog_char gAvrInt_PCINT3[] PROGMEM = "PCINT3";
|
|
#endif
|
|
#ifdef WDT_vect
|
|
prog_char gAvrInt_WDT[] PROGMEM = "WDT";
|
|
#endif
|
|
#ifdef TIMER0_COMP_vect
|
|
prog_char gAvrInt_TIMER0_COMP[] PROGMEM = "TIMER0 COMP";
|
|
#endif
|
|
#ifdef TIMER0_COMPA_vect
|
|
prog_char gAvrInt_TIMER0_COMPA[] PROGMEM = "TIMER0 COMPA";
|
|
#endif
|
|
#ifdef TIMER0_COMPB_vect
|
|
prog_char gAvrInt_TIMER0_COMPB[] PROGMEM = "TIMER0 COMPB";
|
|
#endif
|
|
#ifdef TIMER0_OVF_vect
|
|
prog_char gAvrInt_TIMER0_OVF[] PROGMEM = "TIMER0 OVF";
|
|
#endif
|
|
#ifdef TIMER1_CAPT_vect
|
|
prog_char gAvrInt_TIMER1_CAPT[] PROGMEM = "TIMER1 CAPT";
|
|
#endif
|
|
#ifdef TIMER1_COMPA_vect
|
|
prog_char gAvrInt_TIMER1_COMPA[] PROGMEM = "TIMER1 COMPA";
|
|
#endif
|
|
#ifdef TIMER1_COMPB_vect
|
|
prog_char gAvrInt_TIMER1_COMPB[] PROGMEM = "TIMER1 COMPB";
|
|
#endif
|
|
#ifdef TIMER1_COMPC_vect
|
|
prog_char gAvrInt_TIMER1_COMPC[] PROGMEM = "TIMER1 COMPC";
|
|
#endif
|
|
#ifdef TIMER1_OVF_vect
|
|
prog_char gAvrInt_TIMER1_OVF[] PROGMEM = "TIMER1 OVF";
|
|
#endif
|
|
#ifdef TIMER2_COMP_vect
|
|
prog_char gAvrInt_TIMER2_COMP[] PROGMEM = "TIMER2 COMP";
|
|
#endif
|
|
#ifdef TIMER2_COMPA_vect
|
|
prog_char gAvrInt_TIMER2_COMPA[] PROGMEM = "TIMER2 COMPA";
|
|
#endif
|
|
#ifdef TIMER2_COMPB_vect
|
|
prog_char gAvrInt_TIMER2_COMPB[] PROGMEM = "TIMER2 COMPB";
|
|
#endif
|
|
#ifdef TIMER2_OVF_vect
|
|
prog_char gAvrInt_TIMER2_OVF[] PROGMEM = "TIMER2 OVF";
|
|
#endif
|
|
#ifdef TIMER3_CAPT_vect
|
|
prog_char gAvrInt_TIMER3_CAPT[] PROGMEM = "TIMER3 CAPT";
|
|
#endif
|
|
#ifdef TIMER3_COMPA_vect
|
|
prog_char gAvrInt_TIMER3_COMPA[] PROGMEM = "TIMER3 COMPA";
|
|
#endif
|
|
#ifdef TIMER3_COMPB_vect
|
|
prog_char gAvrInt_TIMER3_COMPB[] PROGMEM = "TIMER3 COMPB";
|
|
#endif
|
|
#ifdef TIMER3_COMPC_vect
|
|
prog_char gAvrInt_TIMER3_COMPC[] PROGMEM = "TIMER3 COMPC";
|
|
#endif
|
|
#ifdef TIMER3_OVF_vect
|
|
prog_char gAvrInt_TIMER3_OVF[] PROGMEM = "TIMER3 OVF";
|
|
#endif
|
|
#ifdef TIMER4_CAPT_vect
|
|
prog_char gAvrInt_TIMER4_CAPT[] PROGMEM = "TIMER4 CAPT";
|
|
#endif
|
|
#ifdef TIMER4_COMPA_vect
|
|
prog_char gAvrInt_TIMER4_COMPA[] PROGMEM = "TIMER4 COMPA";
|
|
#endif
|
|
#ifdef TIMER4_COMPB_vect
|
|
prog_char gAvrInt_TIMER4_COMPB[] PROGMEM = "TIMER4 COMPB";
|
|
#endif
|
|
#ifdef TIMER4_COMPC_vect
|
|
prog_char gAvrInt_TIMER4_COMPC[] PROGMEM = "TIMER4 COMPC";
|
|
#endif
|
|
#ifdef TIMER4_COMPD_vect
|
|
prog_char gAvrInt_TIMER4_COMPD[] PROGMEM = "TIMER4 COMPD";
|
|
#endif
|
|
#ifdef TIMER4_OVF_vect
|
|
prog_char gAvrInt_TIMER4_OVF[] PROGMEM = "TIMER4 OVF";
|
|
#endif
|
|
#ifdef TIMER4_FPF_vect
|
|
prog_char gAvrInt_TIMER4_FPF[] PROGMEM = "TIMER4 Fault Protection";
|
|
#endif
|
|
#ifdef TIMER5_CAPT_vect
|
|
prog_char gAvrInt_TIMER5_CAPT[] PROGMEM = "TIMER5 CAPT";
|
|
#endif
|
|
#ifdef TIMER5_COMPA_vect
|
|
prog_char gAvrInt_TIMER5_COMPA[] PROGMEM = "TIMER5 COMPA";
|
|
#endif
|
|
#ifdef TIMER5_COMPB_vect
|
|
prog_char gAvrInt_TIMER5_COMPB[] PROGMEM = "TIMER5 COMPB";
|
|
#endif
|
|
#ifdef TIMER5_COMPC_vect
|
|
prog_char gAvrInt_TIMER5_COMPC[] PROGMEM = "TIMER5 COMPC";
|
|
#endif
|
|
#ifdef TIMER5_OVF_vect
|
|
prog_char gAvrInt_TIMER5_OVF[] PROGMEM = "TIMER5 OVF";
|
|
#endif
|
|
|
|
//* when there is only 1 usart
|
|
#if defined(USART_RX_vect) || defined(USART_RXC_vect)
|
|
prog_char gAvrInt_USART_RX[] PROGMEM = "USART RX";
|
|
#endif
|
|
#if defined(USART_UDRE_vect)
|
|
prog_char gAvrInt_USART_UDRE[] PROGMEM = "USART UDRE";
|
|
#endif
|
|
#if defined(USART_TX_vect) || defined(USART_TXC_vect)
|
|
prog_char gAvrInt_USART_TX[] PROGMEM = "USART TX";
|
|
#endif
|
|
|
|
|
|
//* usart 0
|
|
#if defined(USART0_RX_vect)
|
|
prog_char gAvrInt_USART0_RX[] PROGMEM = "USART0 RX";
|
|
#endif
|
|
#if defined(USART0_UDRE_vect)
|
|
prog_char gAvrInt_USART0_UDRE[] PROGMEM = "USART0 UDRE";
|
|
#endif
|
|
#if defined(USART0_TX_vect)
|
|
prog_char gAvrInt_USART0_TX[] PROGMEM = "USART0 TX";
|
|
#endif
|
|
|
|
|
|
//* usart 1
|
|
#ifdef USART1_RX_vect
|
|
prog_char gAvrInt_USART1_RX[] PROGMEM = "USART1 RX";
|
|
#endif
|
|
#ifdef USART1_UDRE_vect
|
|
prog_char gAvrInt_USART1_UDRE[] PROGMEM = "USART1 UDRE";
|
|
#endif
|
|
#ifdef USART1_TX_vect
|
|
prog_char gAvrInt_USART1_TX[] PROGMEM = "USART1 TX";
|
|
#endif
|
|
|
|
//* usart 2
|
|
#ifdef USART2_RX_vect
|
|
prog_char gAvrInt_USART2_RX[] PROGMEM = "USART2 RX";
|
|
#endif
|
|
#ifdef USART2_UDRE_vect
|
|
prog_char gAvrInt_USART2_UDRE[] PROGMEM = "USART2 UDRE";
|
|
#endif
|
|
#ifdef USART2_TX_vect
|
|
prog_char gAvrInt_USART2_TX[] PROGMEM = "USART2 TX";
|
|
#endif
|
|
|
|
//* usart 3
|
|
#ifdef USART3_RX_vect
|
|
prog_char gAvrInt_USART3_RX[] PROGMEM = "USART3 RX";
|
|
#endif
|
|
#ifdef USART3_UDRE_vect
|
|
prog_char gAvrInt_USART3_UDRE[] PROGMEM = "USART3 UDRE";
|
|
#endif
|
|
#ifdef USART3_TX_vect
|
|
prog_char gAvrInt_USART3_TX[] PROGMEM = "USART3 TX";
|
|
#endif
|
|
#ifdef SPI_STC_vect
|
|
prog_char gAvrInt_SPI_STC[] PROGMEM = "SPI STC";
|
|
#endif
|
|
#ifdef ADC_vect
|
|
prog_char gAvrInt_ADC[] PROGMEM = "ADC";
|
|
#endif
|
|
#if defined(ANALOG_COMP_vect) || defined(ANA_COMP_vect)
|
|
prog_char gAvrInt_ANALOG_COMP[] PROGMEM = "ANALOG COMP";
|
|
#endif
|
|
#if defined(EE_READY_vect) || defined(EE_RDY_vect)
|
|
prog_char gAvrInt_EE_READY[] PROGMEM = "EE READY";
|
|
#endif
|
|
#ifdef TWI_vect
|
|
prog_char gAvrInt_TWI[] PROGMEM = "TWI";
|
|
#endif
|
|
#if defined(SPM_READY_vect) || defined(SPM_RDY_vect)
|
|
prog_char gAvrInt_SPM_READY[] PROGMEM = "SPM READY";
|
|
#endif
|
|
#ifdef USI_START_vect
|
|
prog_char gAvrInt_USI_START[] PROGMEM = "USI START";
|
|
#endif
|
|
#ifdef USI_OVERFLOW_vect
|
|
prog_char gAvrInt_USI_OVERFLOW[] PROGMEM = "USI OVERFLOW";
|
|
#endif
|
|
#ifdef USB_GEN_vect
|
|
prog_char gAvrInt_USB_General[] PROGMEM = "USB General";
|
|
#endif
|
|
#ifdef USB_COM_vect
|
|
prog_char gAvrInt_USB_Endpoint[] PROGMEM = "USB Endpoint";
|
|
#endif
|
|
|
|
#ifdef LCD_vect
|
|
prog_char gAvrInt_LCD_StartFrame[] PROGMEM = "LCD Start of Frame";
|
|
#endif
|
|
|
|
|
|
//**************************************************************************************************
|
|
//* these do not have vector defs and have to be done by CPU type
|
|
#if defined(__AVR_ATmega645__ ) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2561__)
|
|
prog_char gAvrInt_NOT_USED[] PROGMEM = "NOT_USED";
|
|
#endif
|
|
#if defined(__AVR_ATmega32U4__)
|
|
prog_char gAvrInt_RESERVED[] PROGMEM = "Reserved";
|
|
#endif
|
|
|
|
prog_char gAvrInt_END[] PROGMEM = "*";
|
|
|
|
|
|
|
|
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
|
|
#pragma mark __AVR_ATmega168__ / __AVR_ATmega328P__
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_PCINT0, // 4
|
|
gAvrInt_PCINT1, // 5
|
|
gAvrInt_PCINT2, // 6
|
|
gAvrInt_WDT, // 7
|
|
gAvrInt_TIMER2_COMPA, // 8
|
|
gAvrInt_TIMER2_COMPB, // 9
|
|
gAvrInt_TIMER2_OVF, // 10
|
|
gAvrInt_TIMER1_CAPT, // 11
|
|
gAvrInt_TIMER1_COMPA, // 12
|
|
gAvrInt_TIMER1_COMPB, // 13
|
|
gAvrInt_TIMER1_OVF, // 14
|
|
gAvrInt_TIMER0_COMPA, // 15
|
|
gAvrInt_TIMER0_COMPB, // 16
|
|
gAvrInt_TIMER0_OVF, // 17
|
|
gAvrInt_SPI_STC, // 18
|
|
gAvrInt_USART_RX, // 19
|
|
gAvrInt_USART_UDRE, // 20
|
|
gAvrInt_USART_TX, // 21
|
|
gAvrInt_ADC, // 22
|
|
gAvrInt_EE_READY, // 23
|
|
gAvrInt_ANALOG_COMP, // 24
|
|
gAvrInt_TWI, // 25
|
|
gAvrInt_SPM_READY, // 26
|
|
};
|
|
|
|
#endif
|
|
|
|
//**************************************************************************************************
|
|
#pragma mark __AVR_ATmega169__
|
|
#if defined(__AVR_ATmega169__)
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_PCINT0, // 3
|
|
gAvrInt_PCINT1, // 4
|
|
gAvrInt_TIMER2_COMP, // 5
|
|
gAvrInt_TIMER2_OVF, // 6
|
|
gAvrInt_TIMER1_CAPT, // 7
|
|
gAvrInt_TIMER1_COMPA, // 8
|
|
gAvrInt_TIMER1_COMPB, // 9
|
|
gAvrInt_TIMER1_OVF, // 10
|
|
gAvrInt_TIMER0_COMP, // 11
|
|
gAvrInt_TIMER0_OVF, // 12
|
|
gAvrInt_SPI_STC, // 13
|
|
gAvrInt_USART0_RX, // 14
|
|
gAvrInt_USART0_UDRE, // 15
|
|
gAvrInt_USART0_TX, // 16
|
|
gAvrInt_USI_START, // 17
|
|
gAvrInt_USI_OVERFLOW, // 18
|
|
gAvrInt_ANALOG_COMP, // 19
|
|
gAvrInt_ADC, // 20
|
|
gAvrInt_EE_READY, // 21
|
|
gAvrInt_SPM_READY, // 22
|
|
gAvrInt_LCD_StartFrame, // 23
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__)
|
|
#pragma mark __AVR_ATmega640__ __AVR_ATmega1280__ __AVR_ATmega1281__ __AVR_ATmega2560__ __AVR_ATmega2561__
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_INT3, // 5
|
|
gAvrInt_INT4, // 6
|
|
gAvrInt_INT5, // 7
|
|
gAvrInt_INT6, // 8
|
|
gAvrInt_INT7, // 9
|
|
gAvrInt_PCINT0, // 10
|
|
gAvrInt_PCINT1, // 11
|
|
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
|
gAvrInt_PCINT2, // 12
|
|
#else
|
|
gAvrInt_NOT_USED, // 12
|
|
#endif
|
|
gAvrInt_WDT, // 13
|
|
gAvrInt_TIMER2_COMPA, // 14
|
|
gAvrInt_TIMER2_COMPB, // 15
|
|
gAvrInt_TIMER2_OVF, // 16
|
|
gAvrInt_TIMER1_CAPT, // 17
|
|
gAvrInt_TIMER1_COMPA, // 18
|
|
gAvrInt_TIMER1_COMPB, // 19
|
|
gAvrInt_TIMER1_COMPC, // 20
|
|
gAvrInt_TIMER1_OVF, // 21
|
|
gAvrInt_TIMER0_COMPA, // 22
|
|
gAvrInt_TIMER0_COMPB, // 23
|
|
gAvrInt_TIMER0_OVF, // 24
|
|
gAvrInt_SPI_STC, // 25
|
|
|
|
gAvrInt_USART0_RX, // 26
|
|
gAvrInt_USART0_UDRE, // 27
|
|
gAvrInt_USART0_TX, // 28
|
|
gAvrInt_ANALOG_COMP, // 29
|
|
gAvrInt_ADC, // 30
|
|
gAvrInt_EE_READY, // 31
|
|
|
|
gAvrInt_TIMER3_CAPT, // 32
|
|
gAvrInt_TIMER3_COMPA, // 33
|
|
gAvrInt_TIMER3_COMPB, // 34
|
|
gAvrInt_TIMER3_COMPC, // 35
|
|
gAvrInt_TIMER3_OVF, // 36
|
|
|
|
gAvrInt_USART1_RX, // 37
|
|
gAvrInt_USART1_UDRE, // 38
|
|
gAvrInt_USART1_TX, // 39
|
|
gAvrInt_TWI, // 40
|
|
gAvrInt_SPM_READY, // 41
|
|
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
|
gAvrInt_TIMER4_CAPT, // 42
|
|
#else
|
|
gAvrInt_NOT_USED, // 42
|
|
#endif
|
|
gAvrInt_TIMER4_COMPA, // 43
|
|
gAvrInt_TIMER4_COMPB, // 44
|
|
gAvrInt_TIMER4_COMPC, // 45
|
|
gAvrInt_TIMER4_OVF, // 46
|
|
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
|
gAvrInt_TIMER5_CAPT, // 47
|
|
#else
|
|
gAvrInt_NOT_USED, // 47
|
|
#endif
|
|
gAvrInt_TIMER5_COMPA, // 48
|
|
gAvrInt_TIMER5_COMPB, // 49
|
|
gAvrInt_TIMER5_COMPC, // 50
|
|
gAvrInt_TIMER5_OVF, // 51
|
|
|
|
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
|
gAvrInt_USART2_RX, // 52
|
|
gAvrInt_USART2_UDRE, // 53
|
|
gAvrInt_USART2_TX, // 54
|
|
|
|
gAvrInt_USART3_RX, // 55
|
|
gAvrInt_USART3_UDRE, // 56
|
|
gAvrInt_USART3_TX, // 57
|
|
#endif
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega324P__ ) || defined(__AVR_ATmega644__ ) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
|
|
#pragma mark __AVR_ATmega324P__ __AVR_ATmega644__ __AVR_ATmega644P__ __AVR_ATmega1284P__
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_PCINT0, // 5
|
|
gAvrInt_PCINT1, // 6
|
|
gAvrInt_PCINT2, // 7
|
|
gAvrInt_PCINT3, // 8
|
|
gAvrInt_WDT, // 9
|
|
gAvrInt_TIMER2_COMPA, // 10
|
|
gAvrInt_TIMER2_COMPB, // 11
|
|
gAvrInt_TIMER2_OVF, // 12
|
|
gAvrInt_TIMER1_CAPT, // 13
|
|
gAvrInt_TIMER1_COMPA, // 14
|
|
gAvrInt_TIMER1_COMPB, // 15
|
|
gAvrInt_TIMER1_OVF, // 16
|
|
gAvrInt_TIMER0_COMPA, // 17
|
|
gAvrInt_TIMER0_COMPB, // 18
|
|
gAvrInt_TIMER0_OVF, // 19
|
|
gAvrInt_SPI_STC, // 20
|
|
gAvrInt_USART0_RX, // 21
|
|
gAvrInt_USART0_UDRE, // 22
|
|
gAvrInt_USART0_TX, // 23
|
|
gAvrInt_ANALOG_COMP, // 24
|
|
gAvrInt_ADC, // 25
|
|
gAvrInt_EE_READY, // 26
|
|
gAvrInt_TWI, // 27
|
|
gAvrInt_SPM_READY, // 28
|
|
|
|
#if defined(__AVR_ATmega324P__ ) || defined(__AVR_ATmega644P__)
|
|
gAvrInt_USART1_RX, // 29
|
|
gAvrInt_USART1_UDRE, // 30
|
|
gAvrInt_USART1_TX, // 31
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega645__ )
|
|
#pragma mark __AVR_ATmega645__
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_PCINT0, // 3
|
|
gAvrInt_PCINT1, // 4
|
|
gAvrInt_TIMER2_COMP, // 5
|
|
gAvrInt_TIMER2_OVF, // 6
|
|
gAvrInt_TIMER1_CAPT, // 7
|
|
gAvrInt_TIMER1_COMPA, // 8
|
|
gAvrInt_TIMER1_COMPB, // 9
|
|
gAvrInt_TIMER1_OVF, // 10
|
|
gAvrInt_TIMER0_COMP, // 11
|
|
gAvrInt_TIMER0_OVF, // 12
|
|
gAvrInt_SPI_STC, // 13
|
|
gAvrInt_USART0_RX, // 14
|
|
gAvrInt_USART0_UDRE, // 15
|
|
gAvrInt_USART0_TX, // 16
|
|
gAvrInt_USI_START, // 17
|
|
gAvrInt_USI_OVERFLOW, // 18
|
|
gAvrInt_ANALOG_COMP, // 19
|
|
gAvrInt_ADC, // 20
|
|
gAvrInt_EE_READY, // 21
|
|
gAvrInt_SPM_READY, // 22
|
|
gAvrInt_NOT_USED, // 23
|
|
|
|
#if defined(__AVR_ATmega3250__) || defined(__AVR_ATmega6450__)
|
|
gAvrInt_PCINT2, // 24
|
|
gAvrInt_PCINT3, // 25
|
|
#endif
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega32__ )
|
|
#pragma mark __AVR_ATmega32__
|
|
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_TIMER2_COMP, // 5
|
|
gAvrInt_TIMER2_OVF, // 6
|
|
gAvrInt_TIMER1_CAPT, // 7
|
|
gAvrInt_TIMER1_COMPA, // 8
|
|
gAvrInt_TIMER1_COMPB, // 9
|
|
gAvrInt_TIMER1_OVF, // 10
|
|
gAvrInt_TIMER0_COMP, // 11
|
|
gAvrInt_TIMER0_OVF, // 12
|
|
gAvrInt_SPI_STC, // 13
|
|
gAvrInt_USART_RX, // 14
|
|
gAvrInt_USART_UDRE, // 15
|
|
gAvrInt_USART_TX, // 16
|
|
gAvrInt_ADC, // 17
|
|
gAvrInt_EE_READY, // 18
|
|
gAvrInt_ANALOG_COMP, // 19
|
|
gAvrInt_TWI, // 20
|
|
gAvrInt_SPM_READY, // 21
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega32U4__)
|
|
#pragma mark __AVR_ATmega32U4__
|
|
//* teensy 2.0
|
|
//* http://www.pjrc.com/teensy/pinout.html
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_INT3, // 5
|
|
gAvrInt_RESERVED, // 6
|
|
gAvrInt_RESERVED, // 7
|
|
gAvrInt_INT6, // 8
|
|
gAvrInt_RESERVED, // 9
|
|
gAvrInt_PCINT0, // 10
|
|
gAvrInt_USB_General, // 11
|
|
gAvrInt_USB_Endpoint, // 12
|
|
gAvrInt_WDT, // 13
|
|
gAvrInt_RESERVED, // 14
|
|
gAvrInt_RESERVED, // 15
|
|
gAvrInt_RESERVED, // 16
|
|
gAvrInt_TIMER1_CAPT, // 17
|
|
gAvrInt_TIMER1_COMPA, // 18
|
|
gAvrInt_TIMER1_COMPB, // 19
|
|
gAvrInt_TIMER1_COMPC, // 20
|
|
gAvrInt_TIMER1_OVF, // 21
|
|
gAvrInt_TIMER0_COMPA, // 22
|
|
gAvrInt_TIMER0_COMPB, // 23
|
|
gAvrInt_TIMER0_OVF, // 24
|
|
gAvrInt_SPI_STC, // 25
|
|
|
|
gAvrInt_USART1_RX, // 26
|
|
gAvrInt_USART1_UDRE, // 27
|
|
gAvrInt_USART1_TX, // 28
|
|
gAvrInt_ANALOG_COMP, // 29
|
|
|
|
gAvrInt_ADC, // 30
|
|
gAvrInt_EE_READY, // 31
|
|
|
|
gAvrInt_TIMER3_CAPT, // 32
|
|
gAvrInt_TIMER3_COMPA, // 33
|
|
gAvrInt_TIMER3_COMPB, // 34
|
|
gAvrInt_TIMER3_COMPC, // 35
|
|
gAvrInt_TIMER3_OVF, // 36
|
|
gAvrInt_TWI, // 37
|
|
gAvrInt_SPM_READY, // 38
|
|
|
|
gAvrInt_TIMER4_COMPA, // 39
|
|
gAvrInt_TIMER4_COMPB, // 40
|
|
gAvrInt_TIMER4_COMPD, // 41
|
|
gAvrInt_TIMER4_OVF, // 42
|
|
gAvrInt_TIMER4_FPF, // 43
|
|
};
|
|
|
|
#endif
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_AT90USB1286__)
|
|
#pragma mark __AVR_AT90USB1286__
|
|
//* teensy++ 2.0
|
|
//* http://www.pjrc.com/teensy/pinout.html
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_INT3, // 5
|
|
gAvrInt_INT4, // 6
|
|
gAvrInt_INT5, // 7
|
|
gAvrInt_INT6, // 8
|
|
gAvrInt_INT7, // 9
|
|
gAvrInt_PCINT0, // 10
|
|
gAvrInt_USB_General, // 11
|
|
gAvrInt_USB_Endpoint, // 12
|
|
gAvrInt_WDT, // 13
|
|
gAvrInt_TIMER2_COMPA, // 14
|
|
gAvrInt_TIMER2_COMPB, // 15
|
|
gAvrInt_TIMER2_OVF, // 16
|
|
gAvrInt_TIMER1_CAPT, // 17
|
|
gAvrInt_TIMER1_COMPA, // 18
|
|
gAvrInt_TIMER1_COMPB, // 19
|
|
gAvrInt_TIMER1_COMPC, // 20
|
|
gAvrInt_TIMER1_OVF, // 21
|
|
gAvrInt_TIMER0_COMPA, // 22
|
|
gAvrInt_TIMER0_COMPB, // 23
|
|
gAvrInt_TIMER0_OVF, // 24
|
|
gAvrInt_SPI_STC, // 25
|
|
|
|
gAvrInt_USART1_RX, // 26
|
|
gAvrInt_USART1_UDRE, // 27
|
|
gAvrInt_USART1_TX, // 28
|
|
gAvrInt_ANALOG_COMP, // 29
|
|
|
|
gAvrInt_ADC, // 30
|
|
gAvrInt_EE_READY, // 31
|
|
|
|
gAvrInt_TIMER3_CAPT, // 32
|
|
gAvrInt_TIMER3_COMPA, // 33
|
|
gAvrInt_TIMER3_COMPB, // 34
|
|
gAvrInt_TIMER3_COMPC, // 35
|
|
gAvrInt_TIMER3_OVF, // 36
|
|
gAvrInt_TWI, // 37
|
|
gAvrInt_SPM_READY, // 38
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//**************************************************************************************************
|
|
#if defined(__AVR_ATmega128__)
|
|
#pragma mark __AVR_ATmega128__
|
|
#define _INTERRUPT_NAMES_DEFINED_
|
|
|
|
|
|
PGM_P gInterruptNameTable[] PROGMEM =
|
|
{
|
|
|
|
gAvrInt_RESET, // 1
|
|
gAvrInt_INT0, // 2
|
|
gAvrInt_INT1, // 3
|
|
gAvrInt_INT2, // 4
|
|
gAvrInt_INT3, // 5
|
|
gAvrInt_INT4, // 6
|
|
gAvrInt_INT5, // 7
|
|
gAvrInt_INT6, // 8
|
|
gAvrInt_INT7, // 9
|
|
gAvrInt_TIMER2_COMP, // 10
|
|
gAvrInt_TIMER2_OVF, // 11
|
|
gAvrInt_TIMER1_CAPT, // 12
|
|
gAvrInt_TIMER1_COMPA, // 13
|
|
gAvrInt_TIMER1_COMPB, // 14
|
|
gAvrInt_TIMER1_OVF, // 15
|
|
gAvrInt_TIMER0_COMP, // 16
|
|
gAvrInt_TIMER0_OVF, // 17
|
|
gAvrInt_SPI_STC, // 18
|
|
gAvrInt_USART0_RX, // 19
|
|
gAvrInt_USART0_UDRE, // 20
|
|
gAvrInt_USART0_TX, // 21
|
|
gAvrInt_ADC, // 22
|
|
gAvrInt_EE_READY, // 23
|
|
gAvrInt_ANALOG_COMP, // 24
|
|
gAvrInt_TIMER1_COMPC, // 25
|
|
gAvrInt_TIMER3_CAPT, // 26
|
|
gAvrInt_TIMER3_COMPA, // 27
|
|
gAvrInt_TIMER3_COMPB, // 28
|
|
gAvrInt_TIMER3_COMPC, // 29
|
|
gAvrInt_TIMER3_OVF, // 30
|
|
gAvrInt_USART1_RX, // 31
|
|
gAvrInt_USART1_UDRE, // 32
|
|
gAvrInt_USART1_TX, // 33
|
|
gAvrInt_TWI, // 34
|
|
gAvrInt_SPM_READY, // 35
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#if !defined(_INTERRUPT_NAMES_DEFINED_)
|
|
#warning No interrupt string defs for this cpu
|
|
#endif |