EthernetNetIf

Dependents:   XBee_WiFi_EA_LPC4088

Committer:
hmike
Date:
Wed Nov 19 12:00:42 2014 +0000
Revision:
0:62580107d20c
EthernetNetIf

Who changed what in which revision?

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