Implementation of the NetworkSocketAPI for LWIP

Dependencies:   lwip-eth lwip-sys lwip

Dependents:   HelloLWIPInterface HelloLWIPInterfaceNonBlocking LWIPInterfaceTests SimpleHTTPExample ... more

Committer:
Christopher Haster
Date:
Thu Apr 21 18:23:35 2016 -0500
Revision:
21:9600bd29a088
Parent:
1:2fbcfc9c12dd
Add rudimentary support for server side

Who changed what in which revision?

UserRevisionLine numberNew contents of line
geky 1:2fbcfc9c12dd 1 /* EthernetInterface.h */
geky 1:2fbcfc9c12dd 2 /* Copyright (C) 2012 mbed.org, MIT License
geky 1:2fbcfc9c12dd 3 *
geky 1:2fbcfc9c12dd 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
geky 1:2fbcfc9c12dd 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
geky 1:2fbcfc9c12dd 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
geky 1:2fbcfc9c12dd 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
geky 1:2fbcfc9c12dd 8 * furnished to do so, subject to the following conditions:
geky 1:2fbcfc9c12dd 9 *
geky 1:2fbcfc9c12dd 10 * The above copyright notice and this permission notice shall be included in all copies or
geky 1:2fbcfc9c12dd 11 * substantial portions of the Software.
geky 1:2fbcfc9c12dd 12 *
geky 1:2fbcfc9c12dd 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
geky 1:2fbcfc9c12dd 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
geky 1:2fbcfc9c12dd 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
geky 1:2fbcfc9c12dd 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
geky 1:2fbcfc9c12dd 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
geky 1:2fbcfc9c12dd 18 */
geky 1:2fbcfc9c12dd 19
geky 1:2fbcfc9c12dd 20 // Architecture specific Ethernet interface
geky 1:2fbcfc9c12dd 21 // Must be implemented by each target
geky 1:2fbcfc9c12dd 22
geky 1:2fbcfc9c12dd 23 #ifndef ETHARCH_H_
geky 1:2fbcfc9c12dd 24 #define ETHARCH_H_
geky 1:2fbcfc9c12dd 25
geky 1:2fbcfc9c12dd 26 #include "lwip/netif.h"
geky 1:2fbcfc9c12dd 27
geky 1:2fbcfc9c12dd 28 #ifdef __cplusplus
geky 1:2fbcfc9c12dd 29 extern "C" {
geky 1:2fbcfc9c12dd 30 #endif
geky 1:2fbcfc9c12dd 31
geky 1:2fbcfc9c12dd 32 void eth_arch_enable_interrupts(void);
geky 1:2fbcfc9c12dd 33 void eth_arch_disable_interrupts(void);
geky 1:2fbcfc9c12dd 34 err_t eth_arch_enetif_init(struct netif *netif);
geky 1:2fbcfc9c12dd 35
geky 1:2fbcfc9c12dd 36 #ifdef __cplusplus
geky 1:2fbcfc9c12dd 37 }
geky 1:2fbcfc9c12dd 38 #endif
geky 1:2fbcfc9c12dd 39
geky 1:2fbcfc9c12dd 40 #endif // #ifndef ETHARCHINTERFACE_H_
geky 1:2fbcfc9c12dd 41