mbed client on ethernet with LWIP

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of mbed-client-classic-example-lwip by sandbox

Committer:
mbedAustin
Date:
Thu Jun 09 17:08:36 2016 +0000
Revision:
11:cada08fc8a70
Commit for public Consumption

Who changed what in which revision?

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