git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3852 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-01-22 12:30:29 +00:00
parent 300fe2d558
commit a18f77e3f4
1 changed files with 4 additions and 2 deletions

View File

@ -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(&ETH1, &macaddr.addr[0]);
macStart(&ETH1, &mac_config);
(void)macPollLinkStatus(&ETH1);
/*