uIP 1.0 based webserver for LPC1114 + ENC28J60

Dependencies:   mbed TMP102

Committer:
ban4jp
Date:
Mon Jun 30 16:00:08 2014 +0000
Revision:
3:a2715e9c7737
Parent:
0:685224d2f66d
backported from Contiki 2.7

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ban4jp 0:685224d2f66d 1 /*
ban4jp 0:685224d2f66d 2 * Copyright (c) 2004-2005, Swedish Institute of Computer Science.
ban4jp 0:685224d2f66d 3 * All rights reserved.
ban4jp 0:685224d2f66d 4 *
ban4jp 0:685224d2f66d 5 * Redistribution and use in source and binary forms, with or without
ban4jp 0:685224d2f66d 6 * modification, are permitted provided that the following conditions
ban4jp 0:685224d2f66d 7 * are met:
ban4jp 0:685224d2f66d 8 * 1. Redistributions of source code must retain the above copyright
ban4jp 0:685224d2f66d 9 * notice, this list of conditions and the following disclaimer.
ban4jp 0:685224d2f66d 10 * 2. Redistributions in binary form must reproduce the above copyright
ban4jp 0:685224d2f66d 11 * notice, this list of conditions and the following disclaimer in the
ban4jp 0:685224d2f66d 12 * documentation and/or other materials provided with the distribution.
ban4jp 0:685224d2f66d 13 * 3. Neither the name of the Institute nor the names of its contributors
ban4jp 0:685224d2f66d 14 * may be used to endorse or promote products derived from this software
ban4jp 0:685224d2f66d 15 * without specific prior written permission.
ban4jp 0:685224d2f66d 16 *
ban4jp 0:685224d2f66d 17 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
ban4jp 0:685224d2f66d 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
ban4jp 0:685224d2f66d 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ban4jp 0:685224d2f66d 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
ban4jp 0:685224d2f66d 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
ban4jp 0:685224d2f66d 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
ban4jp 0:685224d2f66d 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
ban4jp 0:685224d2f66d 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
ban4jp 0:685224d2f66d 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
ban4jp 0:685224d2f66d 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
ban4jp 0:685224d2f66d 27 * SUCH DAMAGE.
ban4jp 0:685224d2f66d 28 *
ban4jp 0:685224d2f66d 29 * This file is part of the uIP TCP/IP stack
ban4jp 0:685224d2f66d 30 *
ban4jp 0:685224d2f66d 31 * Author: Adam Dunkels <adam@sics.se>
ban4jp 0:685224d2f66d 32 *
ban4jp 0:685224d2f66d 33 * $Id: lc.h,v 1.2 2006/06/12 08:00:30 adam Exp $
ban4jp 0:685224d2f66d 34 */
ban4jp 0:685224d2f66d 35
ban4jp 0:685224d2f66d 36 /**
ban4jp 0:685224d2f66d 37 * \addtogroup pt
ban4jp 0:685224d2f66d 38 * @{
ban4jp 0:685224d2f66d 39 */
ban4jp 0:685224d2f66d 40
ban4jp 0:685224d2f66d 41 /**
ban4jp 0:685224d2f66d 42 * \defgroup lc Local continuations
ban4jp 0:685224d2f66d 43 * @{
ban4jp 0:685224d2f66d 44 *
ban4jp 0:685224d2f66d 45 * Local continuations form the basis for implementing protothreads. A
ban4jp 0:685224d2f66d 46 * local continuation can be <i>set</i> in a specific function to
ban4jp 0:685224d2f66d 47 * capture the state of the function. After a local continuation has
ban4jp 0:685224d2f66d 48 * been set can be <i>resumed</i> in order to restore the state of the
ban4jp 0:685224d2f66d 49 * function at the point where the local continuation was set.
ban4jp 0:685224d2f66d 50 *
ban4jp 0:685224d2f66d 51 *
ban4jp 0:685224d2f66d 52 */
ban4jp 0:685224d2f66d 53
ban4jp 0:685224d2f66d 54 /**
ban4jp 0:685224d2f66d 55 * \file lc.h
ban4jp 0:685224d2f66d 56 * Local continuations
ban4jp 0:685224d2f66d 57 * \author
ban4jp 0:685224d2f66d 58 * Adam Dunkels <adam@sics.se>
ban4jp 0:685224d2f66d 59 *
ban4jp 0:685224d2f66d 60 */
ban4jp 0:685224d2f66d 61
ban4jp 0:685224d2f66d 62 #ifdef DOXYGEN
ban4jp 0:685224d2f66d 63 /**
ban4jp 0:685224d2f66d 64 * Initialize a local continuation.
ban4jp 0:685224d2f66d 65 *
ban4jp 0:685224d2f66d 66 * This operation initializes the local continuation, thereby
ban4jp 0:685224d2f66d 67 * unsetting any previously set continuation state.
ban4jp 0:685224d2f66d 68 *
ban4jp 0:685224d2f66d 69 * \hideinitializer
ban4jp 0:685224d2f66d 70 */
ban4jp 0:685224d2f66d 71 #define LC_INIT(lc)
ban4jp 0:685224d2f66d 72
ban4jp 0:685224d2f66d 73 /**
ban4jp 0:685224d2f66d 74 * Set a local continuation.
ban4jp 0:685224d2f66d 75 *
ban4jp 0:685224d2f66d 76 * The set operation saves the state of the function at the point
ban4jp 0:685224d2f66d 77 * where the operation is executed. As far as the set operation is
ban4jp 0:685224d2f66d 78 * concerned, the state of the function does <b>not</b> include the
ban4jp 0:685224d2f66d 79 * call-stack or local (automatic) variables, but only the program
ban4jp 0:685224d2f66d 80 * counter and such CPU registers that needs to be saved.
ban4jp 0:685224d2f66d 81 *
ban4jp 0:685224d2f66d 82 * \hideinitializer
ban4jp 0:685224d2f66d 83 */
ban4jp 0:685224d2f66d 84 #define LC_SET(lc)
ban4jp 0:685224d2f66d 85
ban4jp 0:685224d2f66d 86 /**
ban4jp 0:685224d2f66d 87 * Resume a local continuation.
ban4jp 0:685224d2f66d 88 *
ban4jp 0:685224d2f66d 89 * The resume operation resumes a previously set local continuation, thus
ban4jp 0:685224d2f66d 90 * restoring the state in which the function was when the local
ban4jp 0:685224d2f66d 91 * continuation was set. If the local continuation has not been
ban4jp 0:685224d2f66d 92 * previously set, the resume operation does nothing.
ban4jp 0:685224d2f66d 93 *
ban4jp 0:685224d2f66d 94 * \hideinitializer
ban4jp 0:685224d2f66d 95 */
ban4jp 0:685224d2f66d 96 #define LC_RESUME(lc)
ban4jp 0:685224d2f66d 97
ban4jp 0:685224d2f66d 98 /**
ban4jp 0:685224d2f66d 99 * Mark the end of local continuation usage.
ban4jp 0:685224d2f66d 100 *
ban4jp 0:685224d2f66d 101 * The end operation signifies that local continuations should not be
ban4jp 0:685224d2f66d 102 * used any more in the function. This operation is not needed for
ban4jp 0:685224d2f66d 103 * most implementations of local continuation, but is required by a
ban4jp 0:685224d2f66d 104 * few implementations.
ban4jp 0:685224d2f66d 105 *
ban4jp 0:685224d2f66d 106 * \hideinitializer
ban4jp 0:685224d2f66d 107 */
ban4jp 0:685224d2f66d 108 #define LC_END(lc)
ban4jp 0:685224d2f66d 109
ban4jp 0:685224d2f66d 110 /**
ban4jp 0:685224d2f66d 111 * \var typedef lc_t;
ban4jp 0:685224d2f66d 112 *
ban4jp 0:685224d2f66d 113 * The local continuation type.
ban4jp 0:685224d2f66d 114 *
ban4jp 0:685224d2f66d 115 * \hideinitializer
ban4jp 0:685224d2f66d 116 */
ban4jp 0:685224d2f66d 117 #endif /* DOXYGEN */
ban4jp 0:685224d2f66d 118
ban4jp 0:685224d2f66d 119 #ifndef __LC_H__
ban4jp 0:685224d2f66d 120 #define __LC_H__
ban4jp 0:685224d2f66d 121
ban4jp 0:685224d2f66d 122 #ifdef LC_CONF_INCLUDE
ban4jp 0:685224d2f66d 123 #include LC_CONF_INCLUDE
ban4jp 0:685224d2f66d 124 #else
ban4jp 0:685224d2f66d 125 #include "lc-switch.h"
ban4jp 0:685224d2f66d 126 #endif /* LC_CONF_INCLUDE */
ban4jp 0:685224d2f66d 127
ban4jp 0:685224d2f66d 128 #endif /* __LC_H__ */
ban4jp 0:685224d2f66d 129
ban4jp 0:685224d2f66d 130 /** @} */
ban4jp 0:685224d2f66d 131 /** @} */