]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A2F200_IAR_and_Keil/WebServer/uip-conf.h
commit 9f316c246baafa15c542a5aea81a94f26e3d6507
[freertos] / FreeRTOS / Demo / CORTEX_A2F200_IAR_and_Keil / WebServer / uip-conf.h
1 /**\r
2  * \addtogroup uipopt\r
3  * @{\r
4  */\r
5 \r
6 /**\r
7  * \name Project-specific configuration options\r
8  * @{\r
9  *\r
10  * uIP has a number of configuration options that can be overridden\r
11  * for each project. These are kept in a project-specific uip-conf.h\r
12  * file and all configuration names have the prefix UIP_CONF.\r
13  */\r
14 \r
15 /*\r
16  * Copyright (c) 2006, Swedish Institute of Computer Science.\r
17  * All rights reserved.\r
18  *\r
19  * Redistribution and use in source and binary forms, with or without\r
20  * modification, are permitted provided that the following conditions\r
21  * are met:\r
22  * 1. Redistributions of source code must retain the above copyright\r
23  *    notice, this list of conditions and the following disclaimer.\r
24  * 2. Redistributions in binary form must reproduce the above copyright\r
25  *    notice, this list of conditions and the following disclaimer in the\r
26  *    documentation and/or other materials provided with the distribution.\r
27  * 3. Neither the name of the Institute nor the names of its contributors\r
28  *    may be used to endorse or promote products derived from this software\r
29  *    without specific prior written permission.\r
30  *\r
31  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND\r
32  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
33  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
34  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE\r
35  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
36  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
37  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
38  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
39  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
40  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
41  * SUCH DAMAGE.\r
42  *\r
43  * This file is part of the uIP TCP/IP stack\r
44  *\r
45  * $Id: uip-conf.h,v 1.6 2006/06/12 08:00:31 adam Exp $\r
46  */\r
47 \r
48 /**\r
49  * \file\r
50  *         An example uIP configuration file\r
51  * \author\r
52  *         Adam Dunkels <adam@sics.se>\r
53  */\r
54 \r
55 #ifndef __UIP_CONF_H__\r
56 #define __UIP_CONF_H__\r
57 \r
58 #define UIP_CONF_EXTERNAL_BUFFER\r
59 #define UIP_CONF_PROCESS_HTTPD_FORMS 1\r
60 \r
61 /**\r
62  * 8 bit datatype\r
63  *\r
64  * This typedef defines the 8-bit type used throughout uIP.\r
65  *\r
66  * \hideinitializer\r
67  */\r
68 typedef unsigned char u8_t;\r
69 \r
70 /**\r
71  * 16 bit datatype\r
72  *\r
73  * This typedef defines the 16-bit type used throughout uIP.\r
74  *\r
75  * \hideinitializer\r
76  */\r
77 typedef unsigned short u16_t;\r
78 \r
79 typedef unsigned long u32_t;\r
80 \r
81 /**\r
82  * Statistics datatype\r
83  *\r
84  * This typedef defines the dataype used for keeping statistics in\r
85  * uIP.\r
86  *\r
87  * \hideinitializer\r
88  */\r
89 typedef unsigned short uip_stats_t;\r
90 \r
91 /**\r
92  * Maximum number of TCP connections.\r
93  *\r
94  * \hideinitializer\r
95  */\r
96 #define UIP_CONF_MAX_CONNECTIONS 40\r
97 \r
98 /**\r
99  * Maximum number of listening TCP ports.\r
100  *\r
101  * \hideinitializer\r
102  */\r
103 #define UIP_CONF_MAX_LISTENPORTS 40\r
104 \r
105 /**\r
106  * uIP buffer size.\r
107  *\r
108  * \hideinitializer\r
109  */\r
110 #define UIP_CONF_BUFFER_SIZE     1480\r
111 \r
112 /**\r
113  * CPU byte order.\r
114  *\r
115  * \hideinitializer\r
116  */\r
117 #define UIP_CONF_BYTE_ORDER      LITTLE_ENDIAN\r
118 \r
119 /**\r
120  * Logging on or off\r
121  *\r
122  * \hideinitializer\r
123  */\r
124 #define UIP_CONF_LOGGING         0\r
125 \r
126 /**\r
127  * UDP support on or off\r
128  *\r
129  * \hideinitializer\r
130  */\r
131 #define UIP_CONF_UDP             0\r
132 \r
133 /**\r
134  * UDP checksums on or off\r
135  *\r
136  * \hideinitializer\r
137  */\r
138 #define UIP_CONF_UDP_CHECKSUMS   1\r
139 \r
140 /**\r
141  * uIP statistics on or off\r
142  *\r
143  * \hideinitializer\r
144  */\r
145 #define UIP_CONF_STATISTICS      1\r
146 \r
147 /* Here we include the header file for the application(s) we use in\r
148    our project. */\r
149 /*#include "smtp.h"*/\r
150 /*#include "hello-world.h"*/\r
151 /*#include "telnetd.h"*/\r
152 #include "webserver.h"\r
153 /*#include "dhcpc.h"*/\r
154 /*#include "resolv.h"*/\r
155 /*#include "webclient.h"*/\r
156 \r
157 #define CCIF\r
158 #endif /* __UIP_CONF_H__ */\r
159 \r
160 /** @} */\r
161 /** @} */\r