Trial code integration web page update with analogue data and ntp support
Dependencies: NTPClient_NetServices mbed
lpc1768/lwip/include/netif/err.h@0:8cc2035bebfc, 2010-08-06 (annotated)
- Committer:
- pmr1
- Date:
- Fri Aug 06 17:57:45 2010 +0000
- Revision:
- 0:8cc2035bebfc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pmr1 | 0:8cc2035bebfc | 1 | /* |
pmr1 | 0:8cc2035bebfc | 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. |
pmr1 | 0:8cc2035bebfc | 3 | * All rights reserved. |
pmr1 | 0:8cc2035bebfc | 4 | * |
pmr1 | 0:8cc2035bebfc | 5 | * Redistribution and use in source and binary forms, with or without modification, |
pmr1 | 0:8cc2035bebfc | 6 | * are permitted provided that the following conditions are met: |
pmr1 | 0:8cc2035bebfc | 7 | * |
pmr1 | 0:8cc2035bebfc | 8 | * 1. Redistributions of source code must retain the above copyright notice, |
pmr1 | 0:8cc2035bebfc | 9 | * this list of conditions and the following disclaimer. |
pmr1 | 0:8cc2035bebfc | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
pmr1 | 0:8cc2035bebfc | 11 | * this list of conditions and the following disclaimer in the documentation |
pmr1 | 0:8cc2035bebfc | 12 | * and/or other materials provided with the distribution. |
pmr1 | 0:8cc2035bebfc | 13 | * 3. The name of the author may not be used to endorse or promote products |
pmr1 | 0:8cc2035bebfc | 14 | * derived from this software without specific prior written permission. |
pmr1 | 0:8cc2035bebfc | 15 | * |
pmr1 | 0:8cc2035bebfc | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
pmr1 | 0:8cc2035bebfc | 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
pmr1 | 0:8cc2035bebfc | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
pmr1 | 0:8cc2035bebfc | 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
pmr1 | 0:8cc2035bebfc | 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
pmr1 | 0:8cc2035bebfc | 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
pmr1 | 0:8cc2035bebfc | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
pmr1 | 0:8cc2035bebfc | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
pmr1 | 0:8cc2035bebfc | 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
pmr1 | 0:8cc2035bebfc | 25 | * OF SUCH DAMAGE. |
pmr1 | 0:8cc2035bebfc | 26 | * |
pmr1 | 0:8cc2035bebfc | 27 | * This file is part of the lwIP TCP/IP stack. |
pmr1 | 0:8cc2035bebfc | 28 | * |
pmr1 | 0:8cc2035bebfc | 29 | * Author: Adam Dunkels <adam@sics.se> |
pmr1 | 0:8cc2035bebfc | 30 | * |
pmr1 | 0:8cc2035bebfc | 31 | */ |
pmr1 | 0:8cc2035bebfc | 32 | #ifndef __LWIP_ERR_H__ |
pmr1 | 0:8cc2035bebfc | 33 | #define __LWIP_ERR_H__ |
pmr1 | 0:8cc2035bebfc | 34 | |
pmr1 | 0:8cc2035bebfc | 35 | #include "lwip/opt.h" |
pmr1 | 0:8cc2035bebfc | 36 | #include "lwip/arch.h" |
pmr1 | 0:8cc2035bebfc | 37 | |
pmr1 | 0:8cc2035bebfc | 38 | #ifdef __cplusplus |
pmr1 | 0:8cc2035bebfc | 39 | extern "C" { |
pmr1 | 0:8cc2035bebfc | 40 | #endif |
pmr1 | 0:8cc2035bebfc | 41 | |
pmr1 | 0:8cc2035bebfc | 42 | /** Define LWIP_ERR_T in cc.h if you want to use |
pmr1 | 0:8cc2035bebfc | 43 | * a different type for your platform (must be signed). */ |
pmr1 | 0:8cc2035bebfc | 44 | #ifdef LWIP_ERR_T |
pmr1 | 0:8cc2035bebfc | 45 | typedef LWIP_ERR_T err_t; |
pmr1 | 0:8cc2035bebfc | 46 | #else /* LWIP_ERR_T */ |
pmr1 | 0:8cc2035bebfc | 47 | typedef s8_t err_t; |
pmr1 | 0:8cc2035bebfc | 48 | #endif /* LWIP_ERR_T*/ |
pmr1 | 0:8cc2035bebfc | 49 | |
pmr1 | 0:8cc2035bebfc | 50 | /* Definitions for error constants. */ |
pmr1 | 0:8cc2035bebfc | 51 | |
pmr1 | 0:8cc2035bebfc | 52 | #define ERR_OK 0 /* No error, everything OK. */ |
pmr1 | 0:8cc2035bebfc | 53 | #define ERR_MEM -1 /* Out of memory error. */ |
pmr1 | 0:8cc2035bebfc | 54 | #define ERR_BUF -2 /* Buffer error. */ |
pmr1 | 0:8cc2035bebfc | 55 | #define ERR_TIMEOUT -3 /* Timeout. */ |
pmr1 | 0:8cc2035bebfc | 56 | #define ERR_RTE -4 /* Routing problem. */ |
pmr1 | 0:8cc2035bebfc | 57 | #define ERR_INPROGRESS -5 /* Operation in progress */ |
pmr1 | 0:8cc2035bebfc | 58 | #define ERR_VAL -6 /* Illegal value. */ |
pmr1 | 0:8cc2035bebfc | 59 | #define ERR_WOULBLOCK -7 /* Operation would block. */ |
pmr1 | 0:8cc2035bebfc | 60 | |
pmr1 | 0:8cc2035bebfc | 61 | #define ERR_IS_FATAL(e) ((e) < ERR_VAL) |
pmr1 | 0:8cc2035bebfc | 62 | |
pmr1 | 0:8cc2035bebfc | 63 | #define ERR_ABRT -8 /* Connection aborted. */ |
pmr1 | 0:8cc2035bebfc | 64 | #define ERR_RST -9 /* Connection reset. */ |
pmr1 | 0:8cc2035bebfc | 65 | #define ERR_CLSD -10 /* Connection closed. */ |
pmr1 | 0:8cc2035bebfc | 66 | #define ERR_CONN -11 /* Not connected. */ |
pmr1 | 0:8cc2035bebfc | 67 | |
pmr1 | 0:8cc2035bebfc | 68 | #define ERR_ARG -12 /* Illegal argument. */ |
pmr1 | 0:8cc2035bebfc | 69 | |
pmr1 | 0:8cc2035bebfc | 70 | #define ERR_USE -13 /* Address in use. */ |
pmr1 | 0:8cc2035bebfc | 71 | |
pmr1 | 0:8cc2035bebfc | 72 | #define ERR_IF -14 /* Low-level netif error */ |
pmr1 | 0:8cc2035bebfc | 73 | #define ERR_ISCONN -15 /* Already connected. */ |
pmr1 | 0:8cc2035bebfc | 74 | |
pmr1 | 0:8cc2035bebfc | 75 | |
pmr1 | 0:8cc2035bebfc | 76 | #ifdef LWIP_DEBUG |
pmr1 | 0:8cc2035bebfc | 77 | extern const char *lwip_strerr(err_t err); |
pmr1 | 0:8cc2035bebfc | 78 | #else |
pmr1 | 0:8cc2035bebfc | 79 | #define lwip_strerr(x) "" |
pmr1 | 0:8cc2035bebfc | 80 | #endif /* LWIP_DEBUG */ |
pmr1 | 0:8cc2035bebfc | 81 | |
pmr1 | 0:8cc2035bebfc | 82 | #ifdef __cplusplus |
pmr1 | 0:8cc2035bebfc | 83 | } |
pmr1 | 0:8cc2035bebfc | 84 | #endif |
pmr1 | 0:8cc2035bebfc | 85 | |
pmr1 | 0:8cc2035bebfc | 86 | #endif /* __LWIP_ERR_H__ */ |