Added globals.h/globals.c and made some minor modifications.
This commit is contained in:
26
04_m1284p_WIZNET_loopback_DHCP/globals.c
Normal file
26
04_m1284p_WIZNET_loopback_DHCP/globals.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* globals.c
|
||||
*
|
||||
* Created on: 07 февр. 2019 г.
|
||||
* Author: maxx
|
||||
*/
|
||||
#include "globals.h"
|
||||
|
||||
#ifdef IP_WORK
|
||||
//NIC metrics for WORK PC
|
||||
wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address
|
||||
.ip = {192, 168, 0, 199}, // IP address
|
||||
.sn = {255, 255, 255, 0}, // Subnet mask
|
||||
.dns = {8,8,8,8}, // DNS address (google dns)
|
||||
.gw = {192, 168, 0, 1}, // Gateway address
|
||||
.dhcp = NETINFO_DHCP}; //Static IP configuration
|
||||
#else
|
||||
//NIC metrics for another PC (second IP configuration)
|
||||
wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address
|
||||
.ip = {192, 168, 1, 199}, // IP address
|
||||
.sn = {255, 255, 255, 0}, // Subnet mask
|
||||
.dns = {8,8,8,8}, // DNS address (google dns)
|
||||
.gw = {192, 168, 1, 1}, // Gateway address
|
||||
.dhcp = NETINFO_DHCP}; //Static IP configuration
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user