7 * \name Project-specific configuration options
10 * uIP has a number of configuration options that can be overridden
11 * for each project. These are kept in a project-specific uip-conf.h
12 * file and all configuration names have the prefix UIP_CONF.
16 * Copyright (c) 2006, Swedish Institute of Computer Science.
17 * All rights reserved.
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 * 3. Neither the name of the Institute nor the names of its contributors
28 * may be used to endorse or promote products derived from this software
29 * without specific prior written permission.
31 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
32 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
35 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
40 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * This file is part of the uIP TCP/IP stack
45 * $Id: uip-conf.h,v 1.1 2008/08/06 23:19:30 andrewlxia Exp $
50 * An example uIP configuration file
52 * Adam Dunkels <adam@sics.se>
55 #ifndef __UIP_CONF_H__
56 #define __UIP_CONF_H__
58 #include <uip/resolv.h>
60 int uip_appcall(void){
65 #define UIP_APPCALL uip_appcall //application function
\r
66 //#define UIP_UDP_APPCALL uip_appcall
72 * This typedef defines the 8-bit type used throughout uIP.
76 typedef unsigned char u8_t;
81 * This typedef defines the 16-bit type used throughout uIP.
85 typedef unsigned short int u16_t;
90 * This typedef defines the dataype used for keeping statistics in
95 typedef unsigned short uip_stats_t;
98 * Maximum number of TCP connections.
102 #define UIP_CONF_MAX_CONNECTIONS 40
105 * Maximum number of listening TCP ports.
109 #define UIP_CONF_MAX_LISTENPORTS 40
116 #define UIP_CONF_BUFFER_SIZE 420
123 #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
130 #define UIP_CONF_LOGGING 1
133 * UDP support on or off
137 #define UIP_CONF_UDP 1
140 * UDP checksums on or off
144 #define UIP_CONF_UDP_CHECKSUMS 1
147 * uIP statistics on or off
151 #define UIP_CONF_STATISTICS 1
153 typedef int uip_tcp_appstate_t; //for temporay, should be defined by applications
154 //typedef int uip_udp_appstate_t; //for temporay, should be defined by applications
156 /* Here we include the header file for the application(s) we use in
158 /*#include "smtp.h"*/
159 /*#include "hello-world.h"*/
160 /*#include "telnetd.h"*/
161 //#include "webserver.h"
162 /*#include "dhcpc.h"*/
163 /*#include "resolv.h"*/
164 /*#include "webclient.h"*/
166 #endif /* __UIP_CONF_H__ */