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: coconut.h,v $
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 /*
00068  * Coconut LEDs.
00069  */
00070 #define COCO_LED0_PORT  PORTB
00071 #define COCO_LED0_DDR   DDRB
00072 #define COCO_LED0_BIT   4
00073 
00074 #define COCO_LED1_PORT  PORTB
00075 #define COCO_LED1_DDR   DDRB
00076 #define COCO_LED1_BIT   6
00077 
00078 /*
00079  * Coconut handshake lines.
00080  */
00081 #define COCO_HSO0_PORT  PORTE
00082 #define COCO_HSO0_DDR   DDRE
00083 #define COCO_HSO0_BIT   2
00084 
00085 #define COCO_HSI0_PORT  PORTE
00086 #define COCO_HSI0_DDR   DDRE
00087 #define COCO_HSI0_BIT   6
00088 
00089 #define COCO_HSO1_PORT  PORTD
00090 #define COCO_HSO1_DDR   DDRD
00091 #define COCO_HSO1_BIT   4
00092 
00093 #define COCO_HSI1_PORT  PORTE
00094 #define COCO_HSI1_DDR   DDRE
00095 #define COCO_HSI1_BIT   7
00096 
00097 #define COCO_HS0_SIGNAL sig_INTERRUPT6
00098 #define COCO_HS1_SIGNAL sig_INTERRUPT7
00099 
00100 /*
00101  * Ethernut reset lines.
00102  */
00103 #define ENUT_RST0_PORT  PORTB
00104 #define ENUT_RST0_DDR   DDRB
00105 #define ENUT_RST0_BIT   0
00106 
00107 #define ENUT_RST1_PORT  PORTB
00108 #define ENUT_RST1_DDR   DDRB
00109 #define ENUT_RST1_BIT   1
00110 
00111 #define ENUT_RST2_PORT  PORTB
00112 #define ENUT_RST2_DDR   DDRB
00113 #define ENUT_RST2_BIT   2
00114 
00115 /*
00116  * Ethernut LEDs.
00117  * LEDA (activity) with 1k resistor to ground.
00118  * LEDL (link) moved from PE5 to PE4. PE5 is NIC IRQ.
00119  */
00120 #define ENUT_LED0_PORT  PORTB
00121 #define ENUT_LED0_DDR   DDRB
00122 #define ENUT_LED0_BIT   4
00123 
00124 #define ENUT_LED1_PORT  PORTB
00125 #define ENUT_LED1_DDR   DDRB
00126 #define ENUT_LED1_BIT   6
00127 
00128 #define ENUT_LEDL_PORT  PORTE
00129 #define ENUT_LEDL_DDR   DDRE
00130 #define ENUT_LEDL_BIT   4
00131 
00132 #define ENUT_LEDA_PORT  PORTE
00133 #define ENUT_LEDA_DDR   DDRE
00134 #define ENUT_LEDA_BIT   6
00135 
00136 /*
00137  * Ethernut SPI I/O.
00138  */
00139 #define ENUT_SOUT_PORT  PORTD
00140 #define ENUT_SOUT_DDR   DDRD
00141 #define ENUT_SOUT_BIT   6
00142 
00143 #define ENUT_SIN_PORT   PORTD
00144 #define ENUT_SIN_DDR    DDRD
00145 #define ENUT_SIN_BIT    7
00146 
00147 #define ENUT_SCLK_PORT  PORTD
00148 #define ENUT_SCLK_DDR   DDRD
00149 #define ENUT_SCLK_BIT   5
00150 
00151 #define ENUT_LDI_PORT   PORTB
00152 #define ENUT_LDI_DDR    DDRB
00153 #define ENUT_LDI_BIT    7
00154 
00155 #define ENUT_LDO_PORT   PORTB
00156 #define ENUT_LDO_DDR    DDRB
00157 #define ENUT_LDO_BIT    5
00158 
00159 /*
00160  * Ethernut handshake lines.
00161  * No interrupt on HSI0.
00162  */
00163 #define ENUT_HSO0_PORT  PORTE
00164 #define ENUT_HSO0_DDR   DDRE
00165 #define ENUT_HSO0_BIT   2
00166 
00167 #define ENUT_HSI0_PORT  PORTE
00168 #define ENUT_HSI0_DDR   DDRE
00169 #define ENUT_HSI0_BIT   3
00170 
00171 #define ENUT_HSO1_PORT  PORTD
00172 #define ENUT_HSO1_DDR   DDRD
00173 #define ENUT_HSO1_BIT   4
00174 
00175 #define ENUT_HSI1_PORT  PORTE
00176 #define ENUT_HSI1_DDR   DDRE
00177 #define ENUT_HSI1_BIT   7
00178 
00179 #define ENUT_HS1_SIGNAL sig_INTERRUPT7
00180 
00183 #endif

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