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.
LaosServer/EthConfig.h@1:f5ac63519541, 2014-03-05 (annotated)
- Committer:
- Michael J. Spencer
- Date:
- Wed Mar 05 06:14:02 2014 -0800
- Revision:
- 1:f5ac63519541
Initial commit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Michael J. Spencer |
1:f5ac63519541 | 1 | /* |
Michael J. Spencer |
1:f5ac63519541 | 2 | * EthSetup.cpp |
Michael J. Spencer |
1:f5ac63519541 | 3 | * Setup ethernet interface, based on config file |
Michael J. Spencer |
1:f5ac63519541 | 4 | * Read IP, Gateway, DNS and port for server. |
Michael J. Spencer |
1:f5ac63519541 | 5 | * if IP is not defined, or dhcp is set, use dhcp for Ethernet |
Michael J. Spencer |
1:f5ac63519541 | 6 | * |
Michael J. Spencer |
1:f5ac63519541 | 7 | * Copyright (c) 2011 Peter Brier |
Michael J. Spencer |
1:f5ac63519541 | 8 | * |
Michael J. Spencer |
1:f5ac63519541 | 9 | * This file is part of the LaOS project (see: http://wiki.protospace.nl/index.php/LaOS) |
Michael J. Spencer |
1:f5ac63519541 | 10 | * |
Michael J. Spencer |
1:f5ac63519541 | 11 | * LaOS is free software: you can redistribute it and/or modify |
Michael J. Spencer |
1:f5ac63519541 | 12 | * it under the terms of the GNU General Public License as published by |
Michael J. Spencer |
1:f5ac63519541 | 13 | * the Free Software Foundation, either version 3 of the License, or |
Michael J. Spencer |
1:f5ac63519541 | 14 | * (at your option) any later version. |
Michael J. Spencer |
1:f5ac63519541 | 15 | * |
Michael J. Spencer |
1:f5ac63519541 | 16 | * LaOS is distributed in the hope that it will be useful, |
Michael J. Spencer |
1:f5ac63519541 | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Michael J. Spencer |
1:f5ac63519541 | 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Michael J. Spencer |
1:f5ac63519541 | 19 | * GNU General Public License for more details. |
Michael J. Spencer |
1:f5ac63519541 | 20 | * |
Michael J. Spencer |
1:f5ac63519541 | 21 | * You should have received a copy of the GNU General Public License |
Michael J. Spencer |
1:f5ac63519541 | 22 | * along with LaOS. If not, see <http://www.gnu.org/licenses/>. |
Michael J. Spencer |
1:f5ac63519541 | 23 | * |
Michael J. Spencer |
1:f5ac63519541 | 24 | */ |
Michael J. Spencer |
1:f5ac63519541 | 25 | #ifndef _ETHCONFIG_H_ |
Michael J. Spencer |
1:f5ac63519541 | 26 | #define _ETHCONFIG_H_ |
Michael J. Spencer |
1:f5ac63519541 | 27 | #include "global.h" |
Michael J. Spencer |
1:f5ac63519541 | 28 | #include "EthernetNetIf.h" |
Michael J. Spencer |
1:f5ac63519541 | 29 | #include "TCPSocket.h" |
Michael J. Spencer |
1:f5ac63519541 | 30 | |
Michael J. Spencer |
1:f5ac63519541 | 31 | EthernetNetIf * EthConfig(); |
Michael J. Spencer |
1:f5ac63519541 | 32 | bool EthSpeed(void); |
Michael J. Spencer |
1:f5ac63519541 | 33 | bool EthLink(void); |
Michael J. Spencer |
1:f5ac63519541 | 34 | |
Michael J. Spencer |
1:f5ac63519541 | 35 | #endif |
Michael J. Spencer |
1:f5ac63519541 | 36 |