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