Xbee test 2

Dependencies:   XBee mbed

Committer:
takashiyamanoue
Date:
Sat Jul 21 04:08:27 2012 +0000
Revision:
0:ffac63d6a7f0
xbee test 2

Who changed what in which revision?

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