OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [RX600_RX62N-RSK_GNURX/] [RTOSDemo/] [webserver/] [uip-conf.h] - Blame information for rev 607

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
/**
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 2 2011-07-17 20:13:17Z filepang@gmail.com $
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
#define UIP_CONF_EXTERNAL_BUFFER
59
#define UIP_CONF_PROCESS_HTTPD_FORMS 1
60
 
61
/**
62
 * 8 bit datatype
63
 *
64
 * This typedef defines the 8-bit type used throughout uIP.
65
 *
66
 * \hideinitializer
67
 */
68
typedef unsigned char u8_t;
69
 
70
/**
71
 * 16 bit datatype
72
 *
73
 * This typedef defines the 16-bit type used throughout uIP.
74
 *
75
 * \hideinitializer
76
 */
77
typedef unsigned short u16_t;
78
 
79
typedef unsigned long u32_t;
80
 
81
/**
82
 * Statistics datatype
83
 *
84
 * This typedef defines the dataype used for keeping statistics in
85
 * uIP.
86
 *
87
 * \hideinitializer
88
 */
89
typedef unsigned short uip_stats_t;
90
 
91
/**
92
 * Maximum number of TCP connections.
93
 *
94
 * \hideinitializer
95
 */
96
#define UIP_CONF_MAX_CONNECTIONS 40
97
 
98
/**
99
 * Maximum number of listening TCP ports.
100
 *
101
 * \hideinitializer
102
 */
103
#define UIP_CONF_MAX_LISTENPORTS 40
104
 
105
/**
106
 * uIP buffer size.
107
 *
108
 * \hideinitializer
109
 */
110
#define UIP_CONF_BUFFER_SIZE     1480
111
 
112
/**
113
 * CPU byte order.
114
 *
115
 * \hideinitializer
116
 */
117
#ifdef __RX_LITTLE_ENDIAN__
118
#define UIP_CONF_BYTE_ORDER      UIP_LITTLE_ENDIAN
119
#else
120
#define UIP_CONF_BYTE_ORDER      UIP_BIG_ENDIAN
121
#endif
122
 
123
/**
124
 * Logging on or off
125
 *
126
 * \hideinitializer
127
 */
128
#define UIP_CONF_LOGGING         0
129
 
130
/**
131
 * UDP support on or off
132
 *
133
 * \hideinitializer
134
 */
135
#define UIP_CONF_UDP             0
136
 
137
/**
138
 * UDP checksums on or off
139
 *
140
 * \hideinitializer
141
 */
142
#define UIP_CONF_UDP_CHECKSUMS   1
143
 
144
/**
145
 * uIP statistics on or off
146
 *
147
 * \hideinitializer
148
 */
149
#define UIP_CONF_STATISTICS      1
150
 
151
/* Here we include the header file for the application(s) we use in
152
   our project. */
153
/*#include "smtp.h"*/
154
/*#include "hello-world.h"*/
155
/*#include "telnetd.h"*/
156
#include "webserver.h"
157
/*#include "dhcpc.h"*/
158
/*#include "resolv.h"*/
159
/*#include "webclient.h"*/
160
 
161
#define CCIF
162
#define CC_REGISTER_ARG
163
 
164
#endif /* __UIP_CONF_H__ */
165
 
166
/** @} */
167
/** @} */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.