Dirk-Willem van Gulik (NXP/mbed)
/
AmpereMeter
Example self-announcing webserver which controls a servo through a smallHTML userinterface.
lwip/include/netif/slipif.h@0:a259777c45a3, 2010-08-14 (annotated)
- Committer:
- dirkx
- Date:
- Sat Aug 14 15:56:01 2010 +0000
- Revision:
- 0:a259777c45a3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dirkx | 0:a259777c45a3 | 1 | /* |
dirkx | 0:a259777c45a3 | 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. |
dirkx | 0:a259777c45a3 | 3 | * All rights reserved. |
dirkx | 0:a259777c45a3 | 4 | * |
dirkx | 0:a259777c45a3 | 5 | * Redistribution and use in source and binary forms, with or without |
dirkx | 0:a259777c45a3 | 6 | * modification, are permitted provided that the following conditions |
dirkx | 0:a259777c45a3 | 7 | * are met: |
dirkx | 0:a259777c45a3 | 8 | * 1. Redistributions of source code must retain the above copyright |
dirkx | 0:a259777c45a3 | 9 | * notice, this list of conditions and the following disclaimer. |
dirkx | 0:a259777c45a3 | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
dirkx | 0:a259777c45a3 | 11 | * notice, this list of conditions and the following disclaimer in the |
dirkx | 0:a259777c45a3 | 12 | * documentation and/or other materials provided with the distribution. |
dirkx | 0:a259777c45a3 | 13 | * 3. Neither the name of the Institute nor the names of its contributors |
dirkx | 0:a259777c45a3 | 14 | * may be used to endorse or promote products derived from this software |
dirkx | 0:a259777c45a3 | 15 | * without specific prior written permission. |
dirkx | 0:a259777c45a3 | 16 | * |
dirkx | 0:a259777c45a3 | 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
dirkx | 0:a259777c45a3 | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
dirkx | 0:a259777c45a3 | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
dirkx | 0:a259777c45a3 | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
dirkx | 0:a259777c45a3 | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
dirkx | 0:a259777c45a3 | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
dirkx | 0:a259777c45a3 | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
dirkx | 0:a259777c45a3 | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
dirkx | 0:a259777c45a3 | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
dirkx | 0:a259777c45a3 | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
dirkx | 0:a259777c45a3 | 27 | * SUCH DAMAGE. |
dirkx | 0:a259777c45a3 | 28 | * |
dirkx | 0:a259777c45a3 | 29 | * This file is part of the lwIP TCP/IP stack. |
dirkx | 0:a259777c45a3 | 30 | * |
dirkx | 0:a259777c45a3 | 31 | * Author: Adam Dunkels <adam@sics.se> |
dirkx | 0:a259777c45a3 | 32 | * |
dirkx | 0:a259777c45a3 | 33 | */ |
dirkx | 0:a259777c45a3 | 34 | #ifndef __NETIF_SLIPIF_H__ |
dirkx | 0:a259777c45a3 | 35 | #define __NETIF_SLIPIF_H__ |
dirkx | 0:a259777c45a3 | 36 | |
dirkx | 0:a259777c45a3 | 37 | #include "lwip/netif.h" |
dirkx | 0:a259777c45a3 | 38 | |
dirkx | 0:a259777c45a3 | 39 | #ifdef __cplusplus |
dirkx | 0:a259777c45a3 | 40 | extern "C" { |
dirkx | 0:a259777c45a3 | 41 | #endif |
dirkx | 0:a259777c45a3 | 42 | |
dirkx | 0:a259777c45a3 | 43 | err_t slipif_init(struct netif * netif); |
dirkx | 0:a259777c45a3 | 44 | void slipif_poll(struct netif *netif); |
dirkx | 0:a259777c45a3 | 45 | |
dirkx | 0:a259777c45a3 | 46 | #ifdef __cplusplus |
dirkx | 0:a259777c45a3 | 47 | } |
dirkx | 0:a259777c45a3 | 48 | #endif |
dirkx | 0:a259777c45a3 | 49 | |
dirkx | 0:a259777c45a3 | 50 | #endif |
dirkx | 0:a259777c45a3 | 51 |