code that uses Watchdog to reset Mbed every 30seconds. After 30-60mins, the ethernet interface fails to setup() after WatchDog reset.

Dependencies:   mbed

Committer:
eqon
Date:
Thu Jun 07 05:44:29 2012 +0000
Revision:
0:0ce833f21e63

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
eqon 0:0ce833f21e63 1 /*****************************************************************************
eqon 0:0ce833f21e63 2 * pppdebug.h - System debugging utilities.
eqon 0:0ce833f21e63 3 *
eqon 0:0ce833f21e63 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
eqon 0:0ce833f21e63 5 * portions Copyright (c) 1998 Global Election Systems Inc.
eqon 0:0ce833f21e63 6 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
eqon 0:0ce833f21e63 7 *
eqon 0:0ce833f21e63 8 * The authors hereby grant permission to use, copy, modify, distribute,
eqon 0:0ce833f21e63 9 * and license this software and its documentation for any purpose, provided
eqon 0:0ce833f21e63 10 * that existing copyright notices are retained in all copies and that this
eqon 0:0ce833f21e63 11 * notice and the following disclaimer are included verbatim in any
eqon 0:0ce833f21e63 12 * distributions. No written agreement, license, or royalty fee is required
eqon 0:0ce833f21e63 13 * for any of the authorized uses.
eqon 0:0ce833f21e63 14 *
eqon 0:0ce833f21e63 15 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
eqon 0:0ce833f21e63 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
eqon 0:0ce833f21e63 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
eqon 0:0ce833f21e63 18 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
eqon 0:0ce833f21e63 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
eqon 0:0ce833f21e63 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
eqon 0:0ce833f21e63 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
eqon 0:0ce833f21e63 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
eqon 0:0ce833f21e63 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
eqon 0:0ce833f21e63 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
eqon 0:0ce833f21e63 25 *
eqon 0:0ce833f21e63 26 ******************************************************************************
eqon 0:0ce833f21e63 27 * REVISION HISTORY (please don't use tabs!)
eqon 0:0ce833f21e63 28 *
eqon 0:0ce833f21e63 29 * 03-01-01 Marc Boucher <marc@mbsi.ca>
eqon 0:0ce833f21e63 30 * Ported to lwIP.
eqon 0:0ce833f21e63 31 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
eqon 0:0ce833f21e63 32 * Original.
eqon 0:0ce833f21e63 33 *
eqon 0:0ce833f21e63 34 *****************************************************************************
eqon 0:0ce833f21e63 35 */
eqon 0:0ce833f21e63 36 #ifndef PPPDEBUG_H
eqon 0:0ce833f21e63 37 #define PPPDEBUG_H
eqon 0:0ce833f21e63 38
eqon 0:0ce833f21e63 39 /* Trace levels. */
eqon 0:0ce833f21e63 40 #define LOG_CRITICAL (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
eqon 0:0ce833f21e63 41 #define LOG_ERR (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
eqon 0:0ce833f21e63 42 #define LOG_NOTICE (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
eqon 0:0ce833f21e63 43 #define LOG_WARNING (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
eqon 0:0ce833f21e63 44 #define LOG_INFO (PPP_DEBUG)
eqon 0:0ce833f21e63 45 #define LOG_DETAIL (PPP_DEBUG)
eqon 0:0ce833f21e63 46 #define LOG_DEBUG (PPP_DEBUG)
eqon 0:0ce833f21e63 47
eqon 0:0ce833f21e63 48
eqon 0:0ce833f21e63 49 #define TRACELCP PPP_DEBUG
eqon 0:0ce833f21e63 50
eqon 0:0ce833f21e63 51 #if PPP_DEBUG
eqon 0:0ce833f21e63 52
eqon 0:0ce833f21e63 53 #define AUTHDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 54 #define IPCPDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 55 #define UPAPDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 56 #define LCPDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 57 #define FSMDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 58 #define CHAPDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 59 #define PPPDEBUG(a, b) LWIP_DEBUGF(a, b)
eqon 0:0ce833f21e63 60
eqon 0:0ce833f21e63 61 #else /* PPP_DEBUG */
eqon 0:0ce833f21e63 62
eqon 0:0ce833f21e63 63 #define AUTHDEBUG(a, b)
eqon 0:0ce833f21e63 64 #define IPCPDEBUG(a, b)
eqon 0:0ce833f21e63 65 #define UPAPDEBUG(a, b)
eqon 0:0ce833f21e63 66 #define LCPDEBUG(a, b)
eqon 0:0ce833f21e63 67 #define FSMDEBUG(a, b)
eqon 0:0ce833f21e63 68 #define CHAPDEBUG(a, b)
eqon 0:0ce833f21e63 69 #define PPPDEBUG(a, b)
eqon 0:0ce833f21e63 70
eqon 0:0ce833f21e63 71 #endif /* PPP_DEBUG */
eqon 0:0ce833f21e63 72
eqon 0:0ce833f21e63 73 #endif /* PPPDEBUG_H */