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