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