RTC auf true
features/netsocket/EthernetInterface.cpp@2:7aab896b1a3b, 2019-03-13 (annotated)
- Committer:
- kevman
- Date:
- Wed Mar 13 11:03:24 2019 +0000
- Revision:
- 2:7aab896b1a3b
- Parent:
- 0:38ceb79fef03
2019-03-13
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevman | 0:38ceb79fef03 | 1 | /* LWIP implementation of NetworkInterfaceAPI |
kevman | 0:38ceb79fef03 | 2 | * Copyright (c) 2015 ARM Limited |
kevman | 0:38ceb79fef03 | 3 | * |
kevman | 0:38ceb79fef03 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
kevman | 0:38ceb79fef03 | 5 | * you may not use this file except in compliance with the License. |
kevman | 0:38ceb79fef03 | 6 | * You may obtain a copy of the License at |
kevman | 0:38ceb79fef03 | 7 | * |
kevman | 0:38ceb79fef03 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
kevman | 0:38ceb79fef03 | 9 | * |
kevman | 0:38ceb79fef03 | 10 | * Unless required by applicable law or agreed to in writing, software |
kevman | 0:38ceb79fef03 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
kevman | 0:38ceb79fef03 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kevman | 0:38ceb79fef03 | 13 | * See the License for the specific language governing permissions and |
kevman | 0:38ceb79fef03 | 14 | * limitations under the License. |
kevman | 0:38ceb79fef03 | 15 | */ |
kevman | 0:38ceb79fef03 | 16 | |
kevman | 0:38ceb79fef03 | 17 | #include "EthernetInterface.h" |
kevman | 0:38ceb79fef03 | 18 | |
kevman | 0:38ceb79fef03 | 19 | /* No actual interface implementation here, as EthernetInterface is |
kevman | 0:38ceb79fef03 | 20 | * just an EMACInterface. But we can be the default EthInterface - step up |
kevman | 0:38ceb79fef03 | 21 | * if the target has a default EMAC. |
kevman | 0:38ceb79fef03 | 22 | */ |
kevman | 0:38ceb79fef03 | 23 | #if DEVICE_EMAC |
kevman | 0:38ceb79fef03 | 24 | MBED_WEAK EthInterface *EthInterface::get_target_default_instance() |
kevman | 0:38ceb79fef03 | 25 | { |
kevman | 0:38ceb79fef03 | 26 | static EthernetInterface ethernet; |
kevman | 0:38ceb79fef03 | 27 | return ðernet; |
kevman | 0:38ceb79fef03 | 28 | } |
kevman | 0:38ceb79fef03 | 29 | #else |
kevman | 0:38ceb79fef03 | 30 | MBED_WEAK EthInterface *EthInterface::get_target_default_instance() |
kevman | 0:38ceb79fef03 | 31 | { |
kevman | 0:38ceb79fef03 | 32 | return NULL; |
kevman | 0:38ceb79fef03 | 33 | } |
kevman | 0:38ceb79fef03 | 34 | #endif |