Committer:
Simon Cooksey
Date:
Thu Nov 17 16:43:53 2016 +0000
Revision:
0:fb7af294d5d9
Initial commit

Who changed what in which revision?

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