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