mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Committer:
dkato
Date:
Fri Feb 02 05:42:23 2018 +0000
Revision:
0:f782d9c66c49
mbed-os for GR-LYCHEE

Who changed what in which revision?

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