|
|
|
@ -23,25 +23,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
#define _MAIN_DEBUG_
|
|
|
|
#define _MAIN_DEBUG_
|
|
|
|
|
|
|
|
|
|
|
|
#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_STATIC}; //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_STATIC}; //Static IP configuration
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* (3) Trying WIZNET5500 init with using official Wiznet ioLibrary_Driver
|
|
|
|
* (3) Trying WIZNET5500 init with using official Wiznet ioLibrary_Driver
|
|
|
|
* working ping, assign static IP
|
|
|
|
* working ping, assign static IP
|
|
|
|
|