Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed-os/features/FEATURE_LWIP/lwip-interface/eth_arch.h@1:b36bbc1c6d27, 2020-04-11 (annotated)
- Committer:
- demayer
- Date:
- Sat Apr 11 08:15:48 2020 +0000
- Revision:
- 1:b36bbc1c6d27
- Parent:
- 0:6bf0743ece18
IMU-library in .h und .cpp file aufgeteilt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
demayer | 0:6bf0743ece18 | 1 | /* EthernetInterface.h */ |
demayer | 0:6bf0743ece18 | 2 | /* Copyright (C) 2012 mbed.org, MIT License |
demayer | 0:6bf0743ece18 | 3 | * |
demayer | 0:6bf0743ece18 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
demayer | 0:6bf0743ece18 | 5 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
demayer | 0:6bf0743ece18 | 6 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
demayer | 0:6bf0743ece18 | 7 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
demayer | 0:6bf0743ece18 | 8 | * furnished to do so, subject to the following conditions: |
demayer | 0:6bf0743ece18 | 9 | * |
demayer | 0:6bf0743ece18 | 10 | * The above copyright notice and this permission notice shall be included in all copies or |
demayer | 0:6bf0743ece18 | 11 | * substantial portions of the Software. |
demayer | 0:6bf0743ece18 | 12 | * |
demayer | 0:6bf0743ece18 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
demayer | 0:6bf0743ece18 | 14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
demayer | 0:6bf0743ece18 | 15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
demayer | 0:6bf0743ece18 | 16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
demayer | 0:6bf0743ece18 | 17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
demayer | 0:6bf0743ece18 | 18 | */ |
demayer | 0:6bf0743ece18 | 19 | |
demayer | 0:6bf0743ece18 | 20 | // Architecture specific Ethernet interface |
demayer | 0:6bf0743ece18 | 21 | // Must be implemented by each target |
demayer | 0:6bf0743ece18 | 22 | |
demayer | 0:6bf0743ece18 | 23 | #ifndef ETHARCH_H_ |
demayer | 0:6bf0743ece18 | 24 | #define ETHARCH_H_ |
demayer | 0:6bf0743ece18 | 25 | |
demayer | 0:6bf0743ece18 | 26 | #include "lwip/netif.h" |
demayer | 0:6bf0743ece18 | 27 | |
demayer | 0:6bf0743ece18 | 28 | #ifdef __cplusplus |
demayer | 0:6bf0743ece18 | 29 | extern "C" { |
demayer | 0:6bf0743ece18 | 30 | #endif |
demayer | 0:6bf0743ece18 | 31 | |
demayer | 0:6bf0743ece18 | 32 | #if DEVICE_EMAC |
demayer | 0:6bf0743ece18 | 33 | err_t emac_lwip_if_init(struct netif *netif); |
demayer | 0:6bf0743ece18 | 34 | |
demayer | 0:6bf0743ece18 | 35 | #else /* DEVICE_EMAC */ |
demayer | 0:6bf0743ece18 | 36 | void eth_arch_enable_interrupts(void); |
demayer | 0:6bf0743ece18 | 37 | void eth_arch_disable_interrupts(void); |
demayer | 0:6bf0743ece18 | 38 | err_t eth_arch_enetif_init(struct netif *netif); |
demayer | 0:6bf0743ece18 | 39 | #endif |
demayer | 0:6bf0743ece18 | 40 | |
demayer | 0:6bf0743ece18 | 41 | #ifdef __cplusplus |
demayer | 0:6bf0743ece18 | 42 | } |
demayer | 0:6bf0743ece18 | 43 | #endif |
demayer | 0:6bf0743ece18 | 44 | |
demayer | 0:6bf0743ece18 | 45 | #endif // #ifndef ETHARCHINTERFACE_H_ |