Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added new copyright and license
[palacios.git] / palacios / include / uip / uip-conf.h
1 /**
2  * \addtogroup uipopt
3  * @{
4  */
5
6 /**
7  * \name Project-specific configuration options
8  * @{
9  *
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.
13  */
14
15 /*
16  * Copyright (c) 2006, Swedish Institute of Computer Science.
17  * All rights reserved.
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions
21  * are met:
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.
30  *
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
41  * SUCH DAMAGE.
42  *
43  * This file is part of the uIP TCP/IP stack
44  *
45  * $Id: uip-conf.h,v 1.3 2008/08/13 20:12:18 andrewlxia Exp $
46  */
47
48 /**
49  * \file
50  *         An example uIP configuration file
51  * \author
52  *         Adam Dunkels <adam@sics.se>
53  */
54
55 #ifndef __UIP_CONF_H__
56 #define __UIP_CONF_H__
57
58
59 extern int appcall(void);
60
61 #define UIP_APPCALL  appcall    //application function
62 //#define UIP_UDP_APPCALL  uip_appcall 
63
64
65 /**
66  * 8 bit datatype
67  *
68  * This typedef defines the 8-bit type used throughout uIP.
69  *
70  * \hideinitializer
71  */
72 typedef unsigned char u8_t;
73
74 /**
75  * 16 bit datatype
76  *
77  * This typedef defines the 16-bit type used throughout uIP.
78  *
79  * \hideinitializer
80  */
81 typedef unsigned short int u16_t;
82
83 /**
84  * Statistics datatype
85  *
86  * This typedef defines the dataype used for keeping statistics in
87  * uIP.
88  *
89  * \hideinitializer
90  */
91 typedef unsigned short uip_stats_t;
92
93 /**
94  * Maximum number of TCP connections.
95  *
96  * \hideinitializer
97  */
98 #define UIP_CONF_MAX_CONNECTIONS 40
99
100 /**
101  * Maximum number of listening TCP ports.
102  *
103  * \hideinitializer
104  */
105 #define UIP_CONF_MAX_LISTENPORTS 40
106
107 /**
108  * uIP buffer size.
109  *
110  * \hideinitializer
111  */
112 #define UIP_CONF_BUFFER_SIZE     420
113
114 /**
115  * CPU byte order.
116  *
117  * \hideinitializer
118  */
119 #define UIP_CONF_BYTE_ORDER      LITTLE_ENDIAN
120
121 /**
122  * Logging on or off
123  *
124  * \hideinitializer
125  */
126 #define UIP_CONF_LOGGING         1
127
128 /**
129  * UDP support on or off
130  *
131  * \hideinitializer
132  */
133 #define UIP_CONF_UDP             1
134
135 /**
136  * UDP checksums on or off
137  *
138  * \hideinitializer
139  */
140 #define UIP_CONF_UDP_CHECKSUMS   1
141
142 /**
143  * uIP statistics on or off
144  *
145  * \hideinitializer
146  */
147 #define UIP_CONF_STATISTICS      1
148
149 typedef int uip_tcp_appstate_t; //for temporay, should be defined by applications
150 //typedef int uip_udp_appstate_t; //for temporay, should be defined by applications
151
152 /* Here we include the header file for the application(s) we use in
153    our project. */
154 /*#include "smtp.h"*/
155 /*#include "hello-world.h"*/
156 /*#include "telnetd.h"*/
157 //#include "webserver.h"
158 /*#include "dhcpc.h"*/
159 /*#include "resolv.h"*/
160 /*#include "webclient.h"*/
161
162 #endif /* __UIP_CONF_H__ */
163
164 /** @} */
165 /** @} */