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