Version of http://mbed.org/cookbook/NetServicesTribute with setting set the same for LPC2368

Dependents:   UDPSocketExample 24LCxx_I2CApp WeatherPlatform_pachube HvZServerLib ... more

Committer:
simon
Date:
Tue Nov 23 14:15:36 2010 +0000
Revision:
0:350011bf8be7
Experimental version for testing UDP

Who changed what in which revision?

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