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 #include <inttypes.h> 00059 00060 /** 00061 * 8 bit datatype 00062 * 00063 * This typedef defines the 8-bit type used throughout uIP. 00064 * 00065 * \hideinitializer 00066 */ 00067 typedef uint8_t u8_t; 00068 00069 /** 00070 * 16 bit datatype 00071 * 00072 * This typedef defines the 16-bit type used throughout uIP. 00073 * 00074 * \hideinitializer 00075 */ 00076 typedef uint16_t u16_t; 00077 00078 /** 00079 * Statistics datatype 00080 * 00081 * This typedef defines the dataype used for keeping statistics in 00082 * uIP. 00083 * 00084 * \hideinitializer 00085 */ 00086 typedef unsigned short uip_stats_t; 00087 00088 /** 00089 * Maximum number of TCP connections. 00090 * 00091 * \hideinitializer 00092 */ 00093 #define UIP_CONF_MAX_CONNECTIONS 40 00094 00095 /** 00096 * Maximum number of listening TCP ports. 00097 * 00098 * \hideinitializer 00099 */ 00100 #define UIP_CONF_MAX_LISTENPORTS 40 00101 00102 /** 00103 * uIP buffer size. 00104 * 00105 * \hideinitializer 00106 */ 00107 #define UIP_CONF_BUFFER_SIZE 420 00108 00109 /** 00110 * CPU byte order. 00111 * 00112 * \hideinitializer 00113 */ 00114 #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN 00115 00116 /** 00117 * Logging on or off 00118 * 00119 * \hideinitializer 00120 */ 00121 #define UIP_CONF_LOGGING 1 00122 00123 /** 00124 * UDP support on or off 00125 * 00126 * \hideinitializer 00127 */ 00128 #define UIP_CONF_UDP 0 00129 00130 /** 00131 * UDP checksums on or off 00132 * 00133 * \hideinitializer 00134 */ 00135 #define UIP_CONF_UDP_CHECKSUMS 1 00136 00137 /** 00138 * uIP statistics on or off 00139 * 00140 * \hideinitializer 00141 */ 00142 #define UIP_CONF_STATISTICS 1 00143 00144 /* Here we include the header file for the application(s) we use in 00145 our project. */ 00146 /*#include "smtp.h"*/ 00147 /*#include "hello-world.h"*/ 00148 /*#include "telnetd.h"*/ 00149 #include "webserver.h" 00150 /*#include "dhcpc.h"*/ 00151 /*#include "resolv.h"*/ 00152 /*#include "webclient.h"*/ 00153 00154 #endif /* __UIP_CONF_H__ */ 00155 00156 /** @} */ 00157 /** @} */