coconut.h

Go to the documentation of this file.
00001 #ifndef _CFG_COCONUT_H_
00002 #define _CFG_COCONUT_H_
00003 
00004 /*
00005  * Copyright (C) 2001-2003 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 /*
00038  * $Log$
00039  * Revision 1.4  2005/01/22 19:26:33  haraldkipp
00040  * Marked deprecated.
00041  *
00042  * Revision 1.3  2003/08/05 20:17:46  haraldkipp
00043  * Typing errors corrected
00044  *
00045  * Revision 1.2  2003/05/15 15:47:30  haraldkipp
00046  * Conflict with NIC interrupt and LEDL removed.
00047  *
00048  * Revision 1.1.1.1  2003/05/09 14:41:04  haraldkipp
00049  * Initial using 3.2.1
00050  *
00051  * Revision 1.2  2003/05/06 18:39:12  harald
00052  * Cleanup
00053  *
00054  */
00055 
00062 /*
00063  * \addtogroup xgCoconutCfg
00064  */
00067 #warning Using this file is deprecated, just include <cfg/arch/avr.h> instead
00068 
00069 /*
00070  * Coconut LEDs.
00071  */
00072 #define COCO_LED0_PORT  PORTB
00073 #define COCO_LED0_DDR   DDRB
00074 #define COCO_LED0_BIT   4
00075 
00076 #define COCO_LED1_PORT  PORTB
00077 #define COCO_LED1_DDR   DDRB
00078 #define COCO_LED1_BIT   6
00079 
00080 /*
00081  * Coconut handshake lines.
00082  */
00083 #define COCO_HSO0_PORT  PORTE
00084 #define COCO_HSO0_DDR   DDRE
00085 #define COCO_HSO0_BIT   2
00086 
00087 #define COCO_HSI0_PORT  PORTE
00088 #define COCO_HSI0_DDR   DDRE
00089 #define COCO_HSI0_BIT   6
00090 
00091 #define COCO_HSO1_PORT  PORTD
00092 #define COCO_HSO1_DDR   DDRD
00093 #define COCO_HSO1_BIT   4
00094 
00095 #define COCO_HSI1_PORT  PORTE
00096 #define COCO_HSI1_DDR   DDRE
00097 #define COCO_HSI1_BIT   7
00098 
00099 #define COCO_HS0_SIGNAL sig_INTERRUPT6
00100 #define COCO_HS1_SIGNAL sig_INTERRUPT7
00101 
00102 /*
00103  * Ethernut reset lines.
00104  */
00105 #define ENUT_RST0_PORT  PORTB
00106 #define ENUT_RST0_DDR   DDRB
00107 #define ENUT_RST0_BIT   0
00108 
00109 #define ENUT_RST1_PORT  PORTB
00110 #define ENUT_RST1_DDR   DDRB
00111 #define ENUT_RST1_BIT   1
00112 
00113 #define ENUT_RST2_PORT  PORTB
00114 #define ENUT_RST2_DDR   DDRB
00115 #define ENUT_RST2_BIT   2
00116 
00117 /*
00118  * Ethernut LEDs.
00119  * LEDA (activity) with 1k resistor to ground.
00120  * LEDL (link) moved from PE5 to PE4. PE5 is NIC IRQ.
00121  */
00122 #define ENUT_LED0_PORT  PORTB
00123 #define ENUT_LED0_DDR   DDRB
00124 #define ENUT_LED0_BIT   4
00125 
00126 #define ENUT_LED1_PORT  PORTB
00127 #define ENUT_LED1_DDR   DDRB
00128 #define ENUT_LED1_BIT   6
00129 
00130 #define ENUT_LEDL_PORT  PORTE
00131 #define ENUT_LEDL_DDR   DDRE
00132 #define ENUT_LEDL_BIT   4
00133 
00134 #define ENUT_LEDA_PORT  PORTE
00135 #define ENUT_LEDA_DDR   DDRE
00136 #define ENUT_LEDA_BIT   6
00137 
00138 /*
00139  * Ethernut SPI I/O.
00140  */
00141 #define ENUT_SOUT_PORT  PORTD
00142 #define ENUT_SOUT_DDR   DDRD
00143 #define ENUT_SOUT_BIT   6
00144 
00145 #define ENUT_SIN_PORT   PORTD
00146 #define ENUT_SIN_DDR    DDRD
00147 #define ENUT_SIN_BIT    7
00148 
00149 #define ENUT_SCLK_PORT  PORTD
00150 #define ENUT_SCLK_DDR   DDRD
00151 #define ENUT_SCLK_BIT   5
00152 
00153 #define ENUT_LDI_PORT   PORTB
00154 #define ENUT_LDI_DDR    DDRB
00155 #define ENUT_LDI_BIT    7
00156 
00157 #define ENUT_LDO_PORT   PORTB
00158 #define ENUT_LDO_DDR    DDRB
00159 #define ENUT_LDO_BIT    5
00160 
00161 /*
00162  * Ethernut handshake lines.
00163  * No interrupt on HSI0.
00164  */
00165 #define ENUT_HSO0_PORT  PORTE
00166 #define ENUT_HSO0_DDR   DDRE
00167 #define ENUT_HSO0_BIT   2
00168 
00169 #define ENUT_HSI0_PORT  PORTE
00170 #define ENUT_HSI0_DDR   DDRE
00171 #define ENUT_HSI0_BIT   3
00172 
00173 #define ENUT_HSO1_PORT  PORTD
00174 #define ENUT_HSO1_DDR   DDRD
00175 #define ENUT_HSO1_BIT   4
00176 
00177 #define ENUT_HSI1_PORT  PORTE
00178 #define ENUT_HSI1_DDR   DDRE
00179 #define ENUT_HSI1_BIT   7
00180 
00181 #define ENUT_HS1_SIGNAL sig_INTERRUPT7
00182 
00185 #endif

© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/