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