aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-03 12:35:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-03 12:35:41 +0000
commit792d85bcb5774e63100abef0125d5325312f916a (patch)
tree4f874b2123dcbaf591ccea388de3c3e09a0ddf51 /demos/ARM7-AT91SAM7X-LWIP-GCC/lwip
parent08dad7b1f54ff8eb6266e811533eecf53051249c (diff)
downloadChibiOS-792d85bcb5774e63100abef0125d5325312f916a.tar.gz
ChibiOS-792d85bcb5774e63100abef0125d5325312f916a.tar.bz2
ChibiOS-792d85bcb5774e63100abef0125d5325312f916a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3287 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/lwip')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
index 8b2fd1854..a1c281341 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
@@ -222,6 +222,7 @@ msg_t lwip_thread(void *p) {
EventListener el0, el1;
struct ip_addr ip, gateway, netmask;
static struct netif thisif;
+ static const MACConfig mac_config = {thisif.hwaddr};
/* Initializes the thing.*/
sys_init();
@@ -254,7 +255,7 @@ msg_t lwip_thread(void *p) {
LWIP_GATEWAY(&gateway);
LWIP_NETMASK(&netmask);
}
- macSetAddress(&ETH1, thisif.hwaddr);
+ macStart(&ETH1, &mac_config);
netif_add(&thisif, &ip, &netmask, &gateway, NULL, ethernetif_init, tcpip_input);
netif_set_default(&thisif);