Control of mbed using OSC. Based on code from the Make Controller. Right now you can turn the onboard LEDs on/off and toggle 8 digital out pins. More I/O will be done in the future.
lwip/lwIP/include/netif/loopif.h@0:439354122597, 2010-03-17 (annotated)
- Committer:
- pehrhovey
- Date:
- Wed Mar 17 03:17:38 2010 +0000
- Revision:
- 0:439354122597
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pehrhovey | 0:439354122597 | 1 | /* |
pehrhovey | 0:439354122597 | 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. |
pehrhovey | 0:439354122597 | 3 | * All rights reserved. |
pehrhovey | 0:439354122597 | 4 | * |
pehrhovey | 0:439354122597 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
pehrhovey | 0:439354122597 | 6 | * are permitted provided that the following conditions are met: |
pehrhovey | 0:439354122597 | 7 | * |
pehrhovey | 0:439354122597 | 8 | * 1. Redistributions of source code must retain the above copyright notice, |
pehrhovey | 0:439354122597 | 9 | * this list of conditions and the following disclaimer. |
pehrhovey | 0:439354122597 | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
pehrhovey | 0:439354122597 | 11 | * this list of conditions and the following disclaimer in the documentation |
pehrhovey | 0:439354122597 | 12 | * and/or other materials provided with the distribution. |
pehrhovey | 0:439354122597 | 13 | * 3. The name of the author may not be used to endorse or promote products |
pehrhovey | 0:439354122597 | 14 | * derived from this software without specific prior written permission. |
pehrhovey | 0:439354122597 | 15 | * |
pehrhovey | 0:439354122597 | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
pehrhovey | 0:439354122597 | 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
pehrhovey | 0:439354122597 | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
pehrhovey | 0:439354122597 | 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
pehrhovey | 0:439354122597 | 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
pehrhovey | 0:439354122597 | 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
pehrhovey | 0:439354122597 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
pehrhovey | 0:439354122597 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
pehrhovey | 0:439354122597 | 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
pehrhovey | 0:439354122597 | 25 | * OF SUCH DAMAGE. |
pehrhovey | 0:439354122597 | 26 | * |
pehrhovey | 0:439354122597 | 27 | * This file is part of the lwIP TCP/IP stack. |
pehrhovey | 0:439354122597 | 28 | * |
pehrhovey | 0:439354122597 | 29 | * Author: Adam Dunkels <adam@sics.se> |
pehrhovey | 0:439354122597 | 30 | * |
pehrhovey | 0:439354122597 | 31 | */ |
pehrhovey | 0:439354122597 | 32 | #ifndef __NETIF_LOOPIF_H__ |
pehrhovey | 0:439354122597 | 33 | #define __NETIF_LOOPIF_H__ |
pehrhovey | 0:439354122597 | 34 | |
pehrhovey | 0:439354122597 | 35 | #include "lwip/opt.h" |
pehrhovey | 0:439354122597 | 36 | #include "lwip/netif.h" |
pehrhovey | 0:439354122597 | 37 | #include "lwip/err.h" |
pehrhovey | 0:439354122597 | 38 | |
pehrhovey | 0:439354122597 | 39 | #ifdef __cplusplus |
pehrhovey | 0:439354122597 | 40 | extern "C" { |
pehrhovey | 0:439354122597 | 41 | #endif |
pehrhovey | 0:439354122597 | 42 | |
pehrhovey | 0:439354122597 | 43 | #if !LWIP_NETIF_LOOPBACK_MULTITHREADING |
pehrhovey | 0:439354122597 | 44 | #define loopif_poll netif_poll |
pehrhovey | 0:439354122597 | 45 | #endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */ |
pehrhovey | 0:439354122597 | 46 | |
pehrhovey | 0:439354122597 | 47 | err_t loopif_init(struct netif *netif); |
pehrhovey | 0:439354122597 | 48 | |
pehrhovey | 0:439354122597 | 49 | #ifdef __cplusplus |
pehrhovey | 0:439354122597 | 50 | } |
pehrhovey | 0:439354122597 | 51 | #endif |
pehrhovey | 0:439354122597 | 52 | |
pehrhovey | 0:439354122597 | 53 | #endif /* __NETIF_LOOPIF_H__ */ |