User | Revision | Line number | New contents of line |
mbed714 |
0:d616ece2d859
|
1
|
/*
|
mbed714 |
0:d616ece2d859
|
2
|
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
|
mbed714 |
0:d616ece2d859
|
3
|
* All rights reserved.
|
mbed714 |
0:d616ece2d859
|
4
|
*
|
mbed714 |
0:d616ece2d859
|
5
|
* Redistribution and use in source and binary forms, with or without modification,
|
mbed714 |
0:d616ece2d859
|
6
|
* are permitted provided that the following conditions are met:
|
mbed714 |
0:d616ece2d859
|
7
|
*
|
mbed714 |
0:d616ece2d859
|
8
|
* 1. Redistributions of source code must retain the above copyright notice,
|
mbed714 |
0:d616ece2d859
|
9
|
* this list of conditions and the following disclaimer.
|
mbed714 |
0:d616ece2d859
|
10
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
mbed714 |
0:d616ece2d859
|
11
|
* this list of conditions and the following disclaimer in the documentation
|
mbed714 |
0:d616ece2d859
|
12
|
* and/or other materials provided with the distribution.
|
mbed714 |
0:d616ece2d859
|
13
|
* 3. The name of the author may not be used to endorse or promote products
|
mbed714 |
0:d616ece2d859
|
14
|
* derived from this software without specific prior written permission.
|
mbed714 |
0:d616ece2d859
|
15
|
*
|
mbed714 |
0:d616ece2d859
|
16
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
mbed714 |
0:d616ece2d859
|
17
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
mbed714 |
0:d616ece2d859
|
18
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
mbed714 |
0:d616ece2d859
|
19
|
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
mbed714 |
0:d616ece2d859
|
20
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
mbed714 |
0:d616ece2d859
|
21
|
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
mbed714 |
0:d616ece2d859
|
22
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
mbed714 |
0:d616ece2d859
|
23
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
mbed714 |
0:d616ece2d859
|
24
|
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
mbed714 |
0:d616ece2d859
|
25
|
* OF SUCH DAMAGE.
|
mbed714 |
0:d616ece2d859
|
26
|
*
|
mbed714 |
0:d616ece2d859
|
27
|
* This file is part of the lwIP TCP/IP stack.
|
mbed714 |
0:d616ece2d859
|
28
|
*
|
mbed714 |
0:d616ece2d859
|
29
|
* Author: Adam Dunkels <adam@sics.se>
|
mbed714 |
0:d616ece2d859
|
30
|
*
|
mbed714 |
0:d616ece2d859
|
31
|
*/
|
mbed714 |
0:d616ece2d859
|
32
|
#ifndef __LWIP_INIT_H__
|
mbed714 |
0:d616ece2d859
|
33
|
#define __LWIP_INIT_H__
|
mbed714 |
0:d616ece2d859
|
34
|
|
mbed714 |
0:d616ece2d859
|
35
|
#include "lwip/opt.h"
|
mbed714 |
0:d616ece2d859
|
36
|
|
mbed714 |
0:d616ece2d859
|
37
|
#ifdef __cplusplus
|
mbed714 |
0:d616ece2d859
|
38
|
extern "C" {
|
mbed714 |
0:d616ece2d859
|
39
|
#endif
|
mbed714 |
0:d616ece2d859
|
40
|
|
mbed714 |
0:d616ece2d859
|
41
|
/** X.x.x: Major version of the stack */
|
mbed714 |
0:d616ece2d859
|
42
|
#define LWIP_VERSION_MAJOR 1U
|
mbed714 |
0:d616ece2d859
|
43
|
/** x.X.x: Minor version of the stack */
|
mbed714 |
0:d616ece2d859
|
44
|
#define LWIP_VERSION_MINOR 4U
|
mbed714 |
0:d616ece2d859
|
45
|
/** x.x.X: Revision of the stack */
|
mbed714 |
0:d616ece2d859
|
46
|
#define LWIP_VERSION_REVISION 0U
|
mbed714 |
0:d616ece2d859
|
47
|
/** For release candidates, this is set to 1..254
|
mbed714 |
0:d616ece2d859
|
48
|
* For official releases, this is set to 255 (LWIP_RC_RELEASE)
|
mbed714 |
0:d616ece2d859
|
49
|
* For development versions (CVS), this is set to 0 (LWIP_RC_DEVELOPMENT) */
|
mbed714 |
0:d616ece2d859
|
50
|
#define LWIP_VERSION_RC 1U
|
mbed714 |
0:d616ece2d859
|
51
|
|
mbed714 |
0:d616ece2d859
|
52
|
/** LWIP_VERSION_RC is set to LWIP_RC_RELEASE for official releases */
|
mbed714 |
0:d616ece2d859
|
53
|
#define LWIP_RC_RELEASE 255U
|
mbed714 |
0:d616ece2d859
|
54
|
/** LWIP_VERSION_RC is set to LWIP_RC_DEVELOPMENT for CVS versions */
|
mbed714 |
0:d616ece2d859
|
55
|
#define LWIP_RC_DEVELOPMENT 0U
|
mbed714 |
0:d616ece2d859
|
56
|
|
mbed714 |
0:d616ece2d859
|
57
|
#define LWIP_VERSION_IS_RELEASE (LWIP_VERSION_RC == LWIP_RC_RELEASE)
|
mbed714 |
0:d616ece2d859
|
58
|
#define LWIP_VERSION_IS_DEVELOPMENT (LWIP_VERSION_RC == LWIP_RC_DEVELOPMENT)
|
mbed714 |
0:d616ece2d859
|
59
|
#define LWIP_VERSION_IS_RC ((LWIP_VERSION_RC != LWIP_RC_RELEASE) && (LWIP_VERSION_RC != LWIP_RC_DEVELOPMENT))
|
mbed714 |
0:d616ece2d859
|
60
|
|
mbed714 |
0:d616ece2d859
|
61
|
/** Provides the version of the stack */
|
mbed714 |
0:d616ece2d859
|
62
|
#define LWIP_VERSION (LWIP_VERSION_MAJOR << 24 | LWIP_VERSION_MINOR << 16 | \
|
mbed714 |
0:d616ece2d859
|
63
|
LWIP_VERSION_REVISION << 8 | LWIP_VERSION_RC)
|
mbed714 |
0:d616ece2d859
|
64
|
|
mbed714 |
0:d616ece2d859
|
65
|
/* Modules initialization */
|
mbed714 |
0:d616ece2d859
|
66
|
void lwip_init(void);
|
mbed714 |
0:d616ece2d859
|
67
|
|
mbed714 |
0:d616ece2d859
|
68
|
#ifdef __cplusplus
|
mbed714 |
0:d616ece2d859
|
69
|
}
|
mbed714 |
0:d616ece2d859
|
70
|
#endif
|
mbed714 |
0:d616ece2d859
|
71
|
|
mbed714 |
0:d616ece2d859
|
72
|
#endif /* __LWIP_INIT_H__ */
|