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

Subversion Repositories igor

[/] [igor/] [trunk/] [avr/] [src/] [uip/] [uip-conf.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 atypic
/**
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.6 2006/06/12 08:00:31 adam 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
#include <inttypes.h>
59
 
60
#define UIP_ETHADDR0 0x42
61
#define UIP_ETHADDR1 0x2A
62
#define UIP_ETHADDR2 0x42
63
#define UIP_ETHADDR3 0x2A
64
#define UIP_ETHADDR4 0x42
65
#define UIP_ETHADDR5 0x2A
66
 
67
/**
68
 * 8 bit datatype
69
 *
70
 * This typedef defines the 8-bit type used throughout uIP.
71
 *
72
 * \hideinitializer
73
 */
74
typedef uint8_t u8_t;
75
 
76
/**
77
 * 16 bit datatype
78
 *
79
 * This typedef defines the 16-bit type used throughout uIP.
80
 *
81
 * \hideinitializer
82
 */
83
typedef uint16_t u16_t;
84
 
85
/**
86
 * Statistics datatype
87
 *
88
 * This typedef defines the dataype used for keeping statistics in
89
 * uIP.
90
 *
91
 * \hideinitializer
92
 */
93
typedef unsigned short uip_stats_t;
94
 
95
/**
96
 * Maximum number of TCP connections.
97
 *
98
 * \hideinitializer
99
 */
100
#define UIP_CONF_MAX_CONNECTIONS 10
101
 
102
/**
103
 * Maximum number of listening TCP ports.
104
 *
105
 * \hideinitializer
106
 */
107
#define UIP_CONF_MAX_LISTENPORTS 10
108
 
109
/**
110
 * uIP buffer size.
111
 *
112
 * \hideinitializer
113
 */
114
#define UIP_CONF_BUFFER_SIZE     400
115
 
116
/**
117
 * CPU byte order.
118
 *
119
 * \hideinitializer
120
 */
121
#define UIP_CONF_BYTE_ORDER      LITTLE_ENDIAN
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
 * Not implemented, so setting doesn't matter
140
 *
141
 * \hideinitializer
142
 */
143
#define UIP_CONF_UDP_CHECKSUMS   0
144
 
145
/**
146
 * uIP statistics on or off
147
 *
148
 * \hideinitializer
149
 */
150
#define UIP_CONF_STATISTICS      0
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
/** @} */

powered by: WebSVN 2.1.0

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