00001 #ifndef _DEV_IRQREG_AVR_H_ 00002 #define _DEV_IRQREG_AVR_H_ 00003 00004 /* 00005 * Copyright (C) 2001-2005 by egnite Software GmbH. All rights reserved. 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * 1. Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 2. Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in the 00015 * documentation and/or other materials provided with the distribution. 00016 * 3. Neither the name of the copyright holders nor the names of 00017 * contributors may be used to endorse or promote products derived 00018 * from this software without specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS 00021 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00022 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00023 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE 00024 * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00025 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00026 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00027 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00028 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00029 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 00030 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00031 * SUCH DAMAGE. 00032 * 00033 * For additional information see http://www.ethernut.de/ 00034 */ 00035 00036 /* 00037 * $Log$ 00038 * Revision 1.5 2008/08/11 11:51:20 thiagocorrea 00039 * Preliminary Atmega2560 compile options, but not yet supported. 00040 * It builds, but doesn't seam to run properly at this time. 00041 * 00042 * Revision 1.4 2006/02/08 15:20:56 haraldkipp 00043 * ATmega2561 Support 00044 * 00045 * Revision 1.3 2005/10/07 21:52:31 hwmaier 00046 * Removed test for __ATmega64__ 00047 * 00048 * Revision 1.2 2005/10/04 05:24:24 hwmaier 00049 * Updated interrupt hooks to reflect new CAN interrupt names of avr-lib 1.2.3 00050 * 00051 * Revision 1.1 2005/07/26 18:35:09 haraldkipp 00052 * First check in 00053 * 00054 * Revision 1.2 2005/02/10 07:06:51 hwmaier 00055 * Changes to incorporate support for AT90CAN128 CPU 00056 * 00057 * Revision 1.1 2004/03/16 16:48:28 haraldkipp 00058 * Added Jan Dubiec's H8/300 port. 00059 * 00060 * 00061 */ 00062 00063 extern IRQ_HANDLER sig_INTERRUPT0; 00064 extern IRQ_HANDLER sig_INTERRUPT1; 00065 extern IRQ_HANDLER sig_INTERRUPT2; 00066 extern IRQ_HANDLER sig_INTERRUPT3; 00067 extern IRQ_HANDLER sig_INTERRUPT4; 00068 extern IRQ_HANDLER sig_INTERRUPT5; 00069 extern IRQ_HANDLER sig_INTERRUPT6; 00070 extern IRQ_HANDLER sig_INTERRUPT7; 00071 extern IRQ_HANDLER sig_OUTPUT_COMPARE2; 00072 extern IRQ_HANDLER sig_OVERFLOW2; 00073 extern IRQ_HANDLER sig_INPUT_CAPTURE1; 00074 extern IRQ_HANDLER sig_OUTPUT_COMPARE1A; 00075 extern IRQ_HANDLER sig_OUTPUT_COMPARE1B; 00076 extern IRQ_HANDLER sig_OVERFLOW1; 00077 extern IRQ_HANDLER sig_OUTPUT_COMPARE0; 00078 extern IRQ_HANDLER sig_OVERFLOW0; 00079 extern IRQ_HANDLER sig_SPI; 00080 extern IRQ_HANDLER sig_UART0_TRANS; 00081 extern IRQ_HANDLER sig_UART0_DATA; 00082 extern IRQ_HANDLER sig_UART0_RECV; 00083 extern IRQ_HANDLER sig_ADC; 00084 extern IRQ_HANDLER sig_EEPROM_READY; 00085 extern IRQ_HANDLER sig_COMPARATOR; 00086 00087 #if defined(__AVR_AT90CAN128__) || defined(__AVR_ATmega128__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__) 00088 #define sig_USART0_RECV sig_UART0_RECV 00089 #define sig_USART0_DATA sig_UART0_DATA 00090 #define sig_USART0_TRANS sig_UART0_TRANS 00091 extern IRQ_HANDLER sig_OUTPUT_COMPARE1C; 00092 extern IRQ_HANDLER sig_INPUT_CAPTURE3; 00093 extern IRQ_HANDLER sig_OUTPUT_COMPARE3A; 00094 extern IRQ_HANDLER sig_OUTPUT_COMPARE3B; 00095 extern IRQ_HANDLER sig_OUTPUT_COMPARE3C; 00096 extern IRQ_HANDLER sig_OVERFLOW3; 00097 extern IRQ_HANDLER sig_UART1_RECV; 00098 extern IRQ_HANDLER sig_UART1_DATA; 00099 extern IRQ_HANDLER sig_UART1_TRANS; 00100 #define sig_USART1_RECV sig_UART1_RECV 00101 #define sig_USART1_DATA sig_UART1_DATA 00102 #define sig_USART1_TRANS sig_UART1_TRANS 00103 extern IRQ_HANDLER sig_2WIRE_SERIAL; 00104 extern IRQ_HANDLER sig_SPM_READY; 00105 #endif 00106 00107 #if defined(__AVR_AT90CAN128__) 00108 extern IRQ_HANDLER sig_CAN_TRANSFER; 00109 extern IRQ_HANDLER sig_CAN_OVERRUN; 00110 #endif 00111 00112 #if defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__) 00113 extern IRQ_HANDLER sig_PIN_CHANGE0; 00114 extern IRQ_HANDLER sig_PIN_CHANGE1; 00115 extern IRQ_HANDLER sig_WATCHDOG_TIMEOUT; 00116 #define sig_OUTPUT_COMPARE2A sig_OUTPUT_COMPARE2 00117 extern IRQ_HANDLER sig_OUTPUT_COMPARE2B; 00118 #define sig_OUTPUT_COMPARE0A sig_OUTPUT_COMPARE0 00119 extern IRQ_HANDLER sig_OUTPUT_COMPARE0B; 00120 extern IRQ_HANDLER sig_OUTPUT_COMPARE4A; 00121 extern IRQ_HANDLER sig_OUTPUT_COMPARE4B; 00122 extern IRQ_HANDLER sig_OUTPUT_COMPARE4C; 00123 extern IRQ_HANDLER sig_OVERFLOW4; 00124 extern IRQ_HANDLER sig_OUTPUT_COMPARE5A; 00125 extern IRQ_HANDLER sig_OUTPUT_COMPARE5B; 00126 extern IRQ_HANDLER sig_OUTPUT_COMPARE5C; 00127 extern IRQ_HANDLER sig_OVERFLOW5; 00128 00129 #endif 00130 00131 #endif