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