Greg Steiert / pegasus_dev

Dependents:   blinky_max32630fthr

Committer:
switches
Date:
Fri Nov 11 20:59:50 2016 +0000
Revision:
0:5c4d7b2438d3
Initial commit

Who changed what in which revision?

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