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