RTC auf true

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?

UserRevisionLine numberNew 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 #ifndef ETHERNET_INTERFACE_H
kevman 0:38ceb79fef03 18 #define ETHERNET_INTERFACE_H
kevman 0:38ceb79fef03 19
kevman 0:38ceb79fef03 20 #include "nsapi.h"
kevman 0:38ceb79fef03 21 #include "EMACInterface.h"
kevman 0:38ceb79fef03 22
kevman 0:38ceb79fef03 23
kevman 0:38ceb79fef03 24 /** Implementation of the NetworkStack for an EMAC-based Ethernet driver.
kevman 0:38ceb79fef03 25 */
kevman 0:38ceb79fef03 26 class EthernetInterface : public EMACInterface, public EthInterface {
kevman 0:38ceb79fef03 27 public:
kevman 0:38ceb79fef03 28 /** Create an EMAC-based Ethernet interface.
kevman 0:38ceb79fef03 29 *
kevman 0:38ceb79fef03 30 * The default arguments obtain the default EMAC, which will be target-
kevman 0:38ceb79fef03 31 * dependent (and the target may have some JSON option to choose which
kevman 0:38ceb79fef03 32 * is the default, if there are multiple). The default stack is configured
kevman 0:38ceb79fef03 33 * by JSON option nsapi.default-stack.
kevman 0:38ceb79fef03 34 *
kevman 0:38ceb79fef03 35 * Due to inability to return errors from the constructor, no real
kevman 0:38ceb79fef03 36 * work is done until the first call to connect().
kevman 0:38ceb79fef03 37 *
kevman 0:38ceb79fef03 38 * @param emac Reference to EMAC to use.
kevman 0:38ceb79fef03 39 * @param stack Reference to onboard-network stack to use.
kevman 0:38ceb79fef03 40 */
kevman 0:38ceb79fef03 41 EthernetInterface(EMAC &emac = EMAC::get_default_instance(),
kevman 0:38ceb79fef03 42 OnboardNetworkStack &stack = OnboardNetworkStack::get_default_instance()) : EMACInterface(emac, stack) { }
kevman 0:38ceb79fef03 43 };
kevman 0:38ceb79fef03 44
kevman 0:38ceb79fef03 45 #endif