forked from xpgdk/stellaris-enc28j60-booster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uip-conf.h
149 lines (126 loc) · 3.32 KB
/
uip-conf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
//*****************************************************************************
//
// uip-conf.h - uIP Project Specific Configuration File
//
// Copyright (c) 2009-2011 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 8049 of the EK-LM3S9D90 Firmware Package.
//
//*****************************************************************************
#ifndef __UIP_CONF_H__
#define __UIP_CONF_H__
//
// 8 bit datatype
// This typedef defines the 8-bit type used throughout uIP.
//
typedef unsigned char u8_t;
//
// 16 bit datatype
// This typedef defines the 16-bit type used throughout uIP.
//
typedef unsigned short u16_t;
//
// Statistics datatype
// This typedef defines the dataype used for keeping statistics in
// uIP.
//
typedef unsigned short uip_stats_t;
//
// Ping IP address assignment
// Use first incoming "ping" packet to derive host IP address
//
#define UIP_CONF_PINGADDRCONF 0
//
// UDP support on or off
//
#define UIP_CONF_UDP 1
//
// UDP checksums on or off
// (not currently supported ... should be 0)
//
#define UIP_CONF_UDP_CHECKSUMS 0
//
// UDP Maximum Connections
//
#define UIP_CONF_UDP_CONNS 4
//
// Maximum number of TCP connections.
//
#define UIP_CONF_MAX_CONNECTIONS 2
//
// Maximum number of listening TCP ports.
//
#define UIP_CONF_MAX_LISTENPORTS 4
//
// Size of advertised receiver's window
//
//#define UIP_CONF_RECEIVE_WINDOW 400
//
// Size of ARP table
//
#define UIP_CONF_ARPTAB_SIZE 8
//
// uIP buffer size.
//
#define UIP_CONF_BUFFER_SIZE 1600
//
// uIP buffer is defined in the application.
//
#undef UIP_CONF_EXTERNAL_BUFFER
//
// uIP statistics on or off
//
#define UIP_CONF_STATISTICS 1
//
// Logging on or off
//
#define UIP_CONF_LOGGING 1
//
// Broadcast Support
//
#define UIP_CONF_BROADCAST 1
//
// Link-Level Header length
//
#define UIP_CONF_LLH_LEN 14
//
// CPU byte order.
//
#define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
//
// Here we include the header file for the application we are using in
// this example
//
#include "httpd.h"
//
// Define the uIP Application State type, based on the httpd.h state variable.
//
typedef struct httpd_state uip_tcp_appstate_t;
//
// UIP_APPCALL: the name of the application function. This function
// must return void and take no arguments (i.e., C type "void
// appfunc(void)").
//
#ifndef UIP_APPCALL
#define UIP_APPCALL httpd_appcall
#endif
//
// Here we include the header file for the DPCP client we are using in
// this example
//
#include "apps/dhcpc/dhcpc.h"
#endif // __UIP_CONF_H_