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