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.
Diff: global.h
- Revision:
- 2:609dd3a73f33
- Parent:
- 1:f5ac63519541
diff -r f5ac63519541 -r 609dd3a73f33 global.h --- a/global.h Wed Mar 05 06:14:02 2014 -0800 +++ b/global.h Sat Mar 08 17:55:59 2014 -0800 @@ -27,11 +27,15 @@ #include "LaosDisplay.h" #include "LaosMotion.h" +typedef char IPAddress[16]; +void IpParse(char *a, int i[]); + // Global configuration struct class GlobalConfig { public: - int ip[4], gw[4], nm[4], dns[4], port, dhcp; // network settings + IPAddress ip, gw, nm, dns; + int port, dhcp; // network settings int enable; // enable state (1 or 0) int autohome; // automatically home the axis at startup int autozhome; // automatically home the zaxis as well