Nut/OS  4.10.3
API Reference
avrpio.h
Go to the documentation of this file.
00001 #ifndef _CFG_ARCH_AVRPIO_H_
00002 #define _CFG_ARCH_AVRPIO_H_
00003 
00004 /*
00005  * Copyright (C) 2004 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.3  2005/07/26 16:06:20  haraldkipp
00040  * Added missing SPIDIGIO registers.
00041  *
00042  * Revision 1.2  2005/02/02 20:06:37  haraldkipp
00043  * This file will now contain the AVR port definitions, which were
00044  * previously specified in avr.h. This file will be included by avr.h,
00045  * so existing code should continue to run without change.
00046  *
00047  * Revision 1.1  2004/08/25 10:58:02  haraldkipp
00048  * New include directory cfg/arch added, which is used for target specific items,
00049  * mainly port usage or MCU specific register settings.
00050  *
00051  */
00052 
00068 //#define UART0_RTS_BIT 2
00069 //#define UART0_CTS_IRQ INT7
00070 
00071 #ifdef UART0_RTS_BIT
00072 #ifndef UART0_RTS_AVRPORT
00073 #define UART0_RTS_AVRPORT AVRPORTE
00074 #endif
00075 #endif /* UART0_RTS_BIT */
00076 
00077 
00078 //#define UART1_RTS_BIT 2
00079 //#define UART1_CTS_IRQ INT7
00080 
00081 #ifdef UART1_RTS_BIT
00082 #ifndef UART1_RTS_AVRPORT
00083 #define UART1_RTS_AVRPORT AVRPORTE
00084 #endif
00085 #endif /* UART1_RTS_BIT */
00086 
00091 #ifndef RTL_BASE_ADDR
00092 
00095 #define RTL_BASE_ADDR 0x8300
00096 #endif
00097 
00098 #ifndef RTL_SIGNAL_IRQ
00099 
00102 #define RTL_SIGNAL_IRQ INT5
00103 #endif
00104 
00105 #ifndef RTL_EESK_BIT
00106 
00112 #define RTL_EESK_BIT 5
00113 #endif
00114 
00115 #ifndef RTL_EESK_AVRPORT
00116 #define RTL_EESK_AVRPORT AVRPORTC
00117 #endif
00118 
00119 #ifndef RTL_EEDO_BIT
00120 #define RTL_EEDO_BIT 6
00121 #endif
00122 
00123 #ifndef RTL_EEDO_AVRPORT
00124 #define RTL_EEDO_AVRPORT AVRPORTC
00125 #endif
00126 
00127 #ifndef RTL_EEMU_BIT
00128 #define RTL_EEMU_BIT 7
00129 #endif
00130 
00131 #ifndef RTL_EEMU_AVRPORT
00132 #define RTL_EEMU_AVRPORT AVRPORTC
00133 #endif
00134 
00138 #ifndef SPIDIGIO_SOUT_BIT
00139 #define SPIDIGIO_SOUT_BIT 5
00140 #endif
00141 
00142 #ifndef SPIDIGIO_SOUT_AVRPORT
00143 #define SPIDIGIO_SOUT_AVRPORT AVRPORTD
00144 #endif
00145 
00146 #ifndef SPIDIGIO_SIN_BIT
00147 #define SPIDIGIO_SIN_BIT 6
00148 #endif
00149 
00150 #ifndef SPIDIGIO_SIN_PIN
00151 #define SPIDIGIO_SIN_PIN PIND
00152 #endif
00153 
00154 #ifndef SPIDIGIO_SIN_PORT
00155 #define SPIDIGIO_SIN_PORT PORTD
00156 #endif
00157 
00158 #ifndef SPIDIGIO_SIN_DDR
00159 #define SPIDIGIO_SIN_DDR DDRD
00160 #endif
00161 
00162 #ifndef SPIDIGIO_SCLK_BIT
00163 #define SPIDIGIO_SCLK_BIT 7
00164 #endif
00165 
00166 #ifndef SPIDIGIO_SCLK_AVRPORT
00167 #define SPIDIGIO_SCLK_AVRPORT AVRPORTD
00168 #endif
00169 
00170 #ifndef SPIDIGIO_LDI_BIT
00171 #define SPIDIGIO_LDI_BIT 7
00172 #endif
00173 
00174 #ifndef SPIDIGIO_LDI_AVRPORT
00175 #define SPIDIGIO_LDI_AVRPORT AVRPORTB
00176 #endif
00177 
00178 #ifndef SPIDIGIO_LDO_BIT
00179 #define SPIDIGIO_LDO_BIT 5
00180 #endif
00181 
00182 #ifndef SPIDIGIO_LDO_AVRPORT
00183 #define SPIDIGIO_LDO_AVRPORT AVRPORTB
00184 #endif
00185 
00186 #endif
00187