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