git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@312 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
16e097d23e
commit
9873f0d954
|
@ -151,13 +151,11 @@ msg_t WebThread(void *p) {
|
|||
EventListener el0, el1, el2;
|
||||
uip_ipaddr_t ipaddr;
|
||||
|
||||
EMACSetAddress(&macaddr.addr[0]);
|
||||
(void)EMACGetLinkStatus();
|
||||
|
||||
/*
|
||||
* Event sources setup.
|
||||
*/
|
||||
chEvtRegister(&EMACFrameReceived, &el0, FRAME_RECEIVED_ID);
|
||||
chEvtSend(&EMACFrameReceived); /* In case some frames are already buffered */
|
||||
|
||||
evtInit(&evt1, CH_FREQUENCY / 2);
|
||||
evtStart(&evt1);
|
||||
|
@ -167,6 +165,12 @@ msg_t WebThread(void *p) {
|
|||
evtStart(&evt2);
|
||||
chEvtRegister(&evt2.et_es, &el2, ARP_TIMER_ID);
|
||||
|
||||
/*
|
||||
* EMAC settings.
|
||||
*/
|
||||
EMACSetAddress(&macaddr.addr[0]);
|
||||
(void)EMACGetLinkStatus();
|
||||
|
||||
/*
|
||||
* uIP initialization.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue