00001 #ifndef _DEV_BOARD_H_ 00002 #define _DEV_BOARD_H_ 00003 00004 /* 00005 * Copyright (C) 2001-2007 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: board.h,v $ 00038 * Revision 1.8 2007/06/03 08:51:30 haraldkipp 00039 * RTC_CHIP definition now visible for ETHERNUT3 and MMNET02 only. 00040 * 00041 * Revision 1.7 2006/10/05 17:18:49 haraldkipp 00042 * Hardware independant RTC layer added. 00043 * 00044 * Revision 1.6 2006/08/31 19:01:08 haraldkipp 00045 * Using devDebug2 for the DBGU output was a bad idea. Some AT91 chips 00046 * provide more than two UARTs. We now use devDebug to specify the DBGU 00047 * device. Baudrate calculations failed on CPUs running on a processor 00048 * clock, which differs from a futher divided main clock. This had been 00049 * fixed. 00050 * 00051 * Revision 1.5 2006/07/05 07:45:29 haraldkipp 00052 * Split on-chip interface definitions. 00053 * 00054 * Revision 1.4 2006/06/28 17:17:50 haraldkipp 00055 * Added initial support for Atmel's AT91SAM7X-EK. 00056 * 00057 * Revision 1.3 2006/02/23 15:34:00 haraldkipp 00058 * Support for Philips LPC2xxx Family and LPC-E2294 Board from Olimex added. 00059 * Many thanks to Michael Fischer for this port. 00060 * 00061 * Revision 1.2 2005/11/22 09:19:03 haraldkipp 00062 * Include condition corrected. 00063 * 00064 * Revision 1.1 2005/11/20 14:43:38 haraldkipp 00065 * First check-in 00066 * 00067 */ 00068 00069 /* 00070 * Debug device. 00071 */ 00072 #include <dev/debug.h> 00073 00074 #if defined(GBA) 00075 #define DEV_DEBUG_NAME "con" 00076 #endif 00077 00078 #if defined(OLIMEX_LPCE2294) 00079 #define DEV_DEBUG devDebug1 00080 #define DEV_DEBUG_NAME "uart1" 00081 #endif 00082 00083 #if defined(DBGU_BASE) 00084 #define DEV_DEBUG devDebug 00085 #define DEV_DEBUG_NAME "dbgu" 00086 #endif 00087 00088 #ifndef DEV_DEBUG 00089 #define DEV_DEBUG devDebug0 00090 #endif 00091 #ifndef DEV_DEBUG_NAME 00092 #define DEV_DEBUG_NAME "uart0" 00093 #endif 00094 00095 /* 00096 * UART device. 00097 */ 00098 #if defined(__AVR__) || defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) 00099 00100 #include <dev/usartavr.h> 00101 #define DEV_UART0 devUsartAvr0 00102 #define DEV_UART1 devUsartAvr1 00103 #define DEV_UART1_NAME "uart1" 00104 00105 #elif defined(ETHERNUT3) || defined(WOLF) || defined(AT91SAM7X_EK) || defined(AT91SAM9260_EK) 00106 00107 #include <dev/usartat91.h> 00108 #define DEV_UART0 devUsartAt910 00109 #define DEV_UART1 devUsartAt911 00110 #define DEV_UART1_NAME "uart1" 00111 00112 #endif 00113 00114 #ifndef DEV_UART0 00115 #define DEV_UART0 devUart0 00116 #endif 00117 #ifndef DEV_UART0_NAME 00118 #define DEV_UART0_NAME "uart0" 00119 #endif 00120 00121 #ifndef DEV_UART 00122 #define DEV_UART DEV_UART0 00123 #endif 00124 #ifndef DEV_UART_NAME 00125 #define DEV_UART_NAME DEV_UART0_NAME 00126 #endif 00127 00128 /* 00129 * Ethernet device. 00130 */ 00131 #if defined(ETHERNUT1) || defined(CHARON2) || defined(XNUT_100) || defined(XNUT_105) 00132 #include <dev/nicrtl.h> 00133 #elif defined(ETHERNUT2) 00134 #include <dev/lanc111.h> 00135 #elif defined(ETHERNUT3) 00136 #include <dev/dm9000e.h> 00137 #elif defined(WOLF) 00138 #include <dev/ax88796.h> 00139 #elif defined(OLIMEX_LPCE2294) 00140 #include <dev/cs8900a.h> 00141 #elif defined(AT91SAM7X_EK) || defined(AT91SAM9260_EK) 00142 #include <dev/at91sam7x_emac.h> 00143 #endif 00144 00145 #ifndef DEV_ETHER 00146 #define DEV_ETHER devEth0 00147 #endif 00148 #ifndef DEV_ETHER_NAME 00149 #define DEV_ETHER_NAME "eth0" 00150 #endif 00151 00152 /* 00153 * RTC chip. 00154 */ 00155 #if defined(ETHERNUT3) 00156 #define RTC_CHIP rtcX12x6 00157 #include <dev/x12rtc.h> 00158 #elif defined(MMNET02) 00159 #define RTC_CHIP rtcDs1307 00160 #endif 00161 00162 #endif 00163