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