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