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