SAMV71 Xplained Ultra Software Package 1.3

uip-conf.h

Go to the documentation of this file.
00001 /**
00002  * \addtogroup uipopt
00003  * @{
00004  */
00005 
00006 /**
00007  * \name Project-specific configuration options
00008  * @{
00009  *
00010  * uIP has a number of configuration options that can be overridden
00011  * for each project. These are kept in a project-specific uip-conf.h
00012  * file and all configuration names have the prefix UIP_CONF.
00013  */
00014 
00015 /*
00016  * Copyright (c) 2006, Swedish Institute of Computer Science.
00017  * All rights reserved.
00018  *
00019  * Redistribution and use in source and binary forms, with or without
00020  * modification, are permitted provided that the following conditions
00021  * are met:
00022  * 1. Redistributions of source code must retain the above copyright
00023  *    notice, this list of conditions and the following disclaimer.
00024  * 2. Redistributions in binary form must reproduce the above copyright
00025  *    notice, this list of conditions and the following disclaimer in the
00026  *    documentation and/or other materials provided with the distribution.
00027  * 3. Neither the name of the Institute nor the names of its contributors
00028  *    may be used to endorse or promote products derived from this software
00029  *    without specific prior written permission.
00030  *
00031  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
00032  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00033  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00034  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
00035  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00036  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00037  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00038  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00039  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00040  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00041  * SUCH DAMAGE.
00042  *
00043  * This file is part of the uIP TCP/IP stack
00044  *
00045  * $Id: uip-conf.h,v 1.6 2006/06/12 08:00:31 adam Exp $
00046  */
00047 
00048 /**
00049  * \file
00050  *         An example uIP configuration file
00051  * \author
00052  *         Adam Dunkels <adam@sics.se>
00053  */
00054 
00055 #ifndef __UIP_CONF_H__
00056 #define __UIP_CONF_H__
00057 
00058 
00059 /**
00060  * 8 bit datatype
00061  *
00062  * This typedef defines the 8-bit type used throughout uIP.
00063  *
00064  * \hideinitializer
00065  */
00066 typedef unsigned char u8_t;
00067 
00068 /**
00069  * 16 bit datatype
00070  *
00071  * This typedef defines the 16-bit type used throughout uIP.
00072  *
00073  * \hideinitializer
00074  */
00075 typedef unsigned short u16_t;
00076 
00077 /**
00078  * Statistics datatype
00079  *
00080  * This typedef defines the datatype used for keeping statistics in
00081  * uIP.
00082  *
00083  * \hideinitializer
00084  */
00085 typedef unsigned short uip_stats_t;
00086 
00087 /**
00088  * Maximum number of TCP connections.
00089  *
00090  * \hideinitializer
00091  */
00092 #define UIP_CONF_MAX_CONNECTIONS 40
00093 
00094 /**
00095  * Maximum number of listening TCP ports.
00096  *
00097  * \hideinitializer
00098  */
00099 #define UIP_CONF_MAX_LISTENPORTS 40
00100 
00101 /**
00102  * uIP buffer size.
00103  *
00104  * \hideinitializer
00105  */
00106 #define UIP_CONF_BUFFER_SIZE     1500
00107 /**
00108  * CPU byte order.
00109  *
00110  * \hideinitializer
00111  */
00112 #define UIP_CONF_BYTE_ORDER      UIP_LITTLE_ENDIAN
00113 
00114 /**
00115  * Logging on or off
00116  *
00117  * \hideinitializer
00118  */
00119 #define UIP_CONF_LOGGING         1
00120 
00121 /**
00122  * UDP support on or off
00123  *
00124  * \hideinitializer
00125  */
00126 #define UIP_CONF_UDP             0
00127 
00128 /**
00129  * UDP checksums on or off
00130  *
00131  * \hideinitializer
00132  */
00133 #define UIP_CONF_UDP_CHECKSUMS   0
00134 
00135 /**
00136  * uIP statistics on or off
00137  *
00138  * \hideinitializer
00139  */
00140 #define UIP_CONF_STATISTICS      1
00141 
00142 /**
00143  * The link level header length.
00144  *
00145  * \hideinitializer
00146  */
00147 #define UIP_CONF_LLH_LEN         14
00148 
00149 /**
00150  * Broadcast support.
00151  *
00152  * \hideinitializer
00153  *
00154  */
00155 #define UIP_CONF_BROADCAST       0
00156 
00157 /**
00158  * IPV6 support or not.
00159  *
00160  * \hideinitializer
00161  *
00162  */
00163 #define UIP_CONF_IPV6            0
00164 
00165 /**
00166  * DHCP support.
00167  * Comment it out if no DHCP support.
00168  *
00169  */
00170 //#define UIP_DHCP_on
00171 
00172 #ifdef UIP_DHCP_on
00173  #if !UIP_CONF_UDP
00174   #undef UIP_CONF_UDP
00175   #define UIP_CONF_UDP 1
00176  #endif
00177  #if !UIP_CONF_BROADCAST
00178   #undef UIP_CONF_BROADCAST
00179   #define UIP_CONF_BROADCAST 1
00180  #endif
00181 #include "dhcpc.h"
00182 #endif
00183 
00184 /* Here we include the header file for the application(s) we use in
00185    our project. */
00186 
00187 #include "hello-world.h"
00188 
00189 #endif /* __UIP_CONF_H__ */
00190 
00191 /** @} */
00192 /** @} */
00193 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines