diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-22 12:30:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-22 12:30:29 +0000 |
commit | a18f77e3f4a043c17555109735b83a73da9404bc (patch) | |
tree | 3a9e7f617aad8e9d44bda3f5849d8878a6881a85 /demos | |
parent | 300fe2d558756f404fd5f740a722ff89ff97d6e3 (diff) | |
download | ChibiOS-a18f77e3f4a043c17555109735b83a73da9404bc.tar.gz ChibiOS-a18f77e3f4a043c17555109735b83a73da9404bc.tar.bz2 ChibiOS-a18f77e3f4a043c17555109735b83a73da9404bc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3852 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARM7-AT91SAM7X-UIP-GCC/web/webthread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/ARM7-AT91SAM7X-UIP-GCC/web/webthread.c b/demos/ARM7-AT91SAM7X-UIP-GCC/web/webthread.c index 04214c0d9..2c30aeb78 100644 --- a/demos/ARM7-AT91SAM7X-UIP-GCC/web/webthread.c +++ b/demos/ARM7-AT91SAM7X-UIP-GCC/web/webthread.c @@ -40,6 +40,8 @@ static const struct uip_eth_addr macaddr = { {0xC2, 0xAF, 0x51, 0x03, 0xCF, 0x46}
};
+static const MACConfig mac_config = {macaddr.addr};
+
#define BUF ((struct uip_eth_hdr *)&uip_buf[0])
/*
@@ -164,9 +166,9 @@ msg_t WebThread(void *p) { chEvtRegister(&evt2.et_es, &el2, ARP_TIMER_ID);
/*
- * EMAC settings.
+ * EMAC driver start.
*/
- macSetAddress(Ð1, &macaddr.addr[0]);
+ macStart(Ð1, &mac_config);
(void)macPollLinkStatus(Ð1);
/*
|