git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1219 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
85786fabbf
commit
e1eef3b015
|
@ -91,14 +91,6 @@ static void low_level_init(struct netif *netif) {
|
||||||
/* set MAC hardware address length */
|
/* set MAC hardware address length */
|
||||||
netif->hwaddr_len = ETHARP_HWADDR_LEN;
|
netif->hwaddr_len = ETHARP_HWADDR_LEN;
|
||||||
|
|
||||||
/* set MAC hardware address */
|
|
||||||
/* netif->hwaddr[0] = 0xC2;
|
|
||||||
netif->hwaddr[1] = 0xAF;
|
|
||||||
netif->hwaddr[2] = 0x51;
|
|
||||||
netif->hwaddr[3] = 0x03;
|
|
||||||
netif->hwaddr[4] = 0xCF;
|
|
||||||
netif->hwaddr[5] = 0x46;*/
|
|
||||||
|
|
||||||
/* maximum transfer unit */
|
/* maximum transfer unit */
|
||||||
netif->mtu = 1500;
|
netif->mtu = 1500;
|
||||||
|
|
||||||
|
@ -107,7 +99,6 @@ static void low_level_init(struct netif *netif) {
|
||||||
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
|
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
|
||||||
|
|
||||||
/* Do whatever else is needed to initialize interface. */
|
/* Do whatever else is needed to initialize interface. */
|
||||||
macSetAddress(Ð1, netif->hwaddr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -241,12 +232,10 @@ msg_t lwip_thread(void *p) {
|
||||||
/* TCP/IP parameters, runtime or compile time.*/
|
/* TCP/IP parameters, runtime or compile time.*/
|
||||||
if (p) {
|
if (p) {
|
||||||
struct lwipthread_opts *opts = p;
|
struct lwipthread_opts *opts = p;
|
||||||
if (opts->macaddress) {
|
unsigned i;
|
||||||
unsigned i;
|
|
||||||
|
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
thisif.hwaddr[i] = opts->macaddress[i];
|
thisif.hwaddr[i] = opts->macaddress[i];
|
||||||
}
|
|
||||||
ip.addr = opts->address;
|
ip.addr = opts->address;
|
||||||
gateway.addr = opts->gateway;
|
gateway.addr = opts->gateway;
|
||||||
netmask.addr = opts->netmask;
|
netmask.addr = opts->netmask;
|
||||||
|
|
|
@ -271,7 +271,7 @@
|
||||||
* (requires NO_SYS==0)
|
* (requires NO_SYS==0)
|
||||||
*/
|
*/
|
||||||
#ifndef MEMP_NUM_SYS_TIMEOUT
|
#ifndef MEMP_NUM_SYS_TIMEOUT
|
||||||
#define MEMP_NUM_SYS_TIMEOUT 3
|
#define MEMP_NUM_SYS_TIMEOUT (4 + LWIP_DHCP + LWIP_DNS)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue