Add double-IP config for [03_m1284p_WIZNET_loopback_FATFS_template]
This commit is contained in:
@@ -36,6 +36,8 @@ static FATFS Fatfs; //File system object for each logical drive. >= 2
|
|||||||
#define PRINTF(...)
|
#define PRINTF(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//#define IP_WORK
|
||||||
|
|
||||||
extern unsigned long millis(void);
|
extern unsigned long millis(void);
|
||||||
extern int freeRam (void);
|
extern int freeRam (void);
|
||||||
|
|
||||||
|
|||||||
@@ -23,14 +23,23 @@
|
|||||||
|
|
||||||
#define _MAIN_DEBUG_
|
#define _MAIN_DEBUG_
|
||||||
|
|
||||||
//NIC metrics
|
#ifdef IP_WORK
|
||||||
|
//NIC metrics for WORK PC
|
||||||
wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address
|
wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address
|
||||||
.ip = {192, 168, 0, 199}, // IP address
|
.ip = {192, 168, 0, 199}, // IP address
|
||||||
.sn = {255, 255, 255, 0}, // Subnet mask
|
.sn = {255, 255, 255, 0}, // Subnet mask
|
||||||
.dns = {8,8,8,8}, // DNS address (google dns)
|
.dns = {8,8,8,8}, // DNS address (google dns)
|
||||||
.gw = {192, 168, 0, 1}, // Gateway address
|
.gw = {192, 168, 0, 1}, // Gateway address
|
||||||
.dhcp = NETINFO_STATIC}; //Dynamic IP configuration from a DHCP sever
|
.dhcp = NETINFO_STATIC}; //Dynamic IP configuration from a DHCP sever
|
||||||
|
#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}; //Dynamic IP configuration from a DHCP sever
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* History:
|
* History:
|
||||||
|
|||||||
Reference in New Issue
Block a user