lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32


From: address@hidden
Subject: Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32
Date: Thu, 10 Dec 2009 15:25:00 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

patelbaroda wrote:
So instead of using

"
netif_add(&MACB_if,&xIpAddr,&xNetMask,&xGateway, NULL, ethernetif_init,
tcpip_input ); netif_set_default(&MACB_if );
netif_set_up(&MACB_if );
"

I use,

"
do_netifapi_netif_add();
You can do it that way, but netif_set_up() is then still called from the wrong thread! The simple way is (as I wrote before) to move the netif_add/netif_set_up code into the function tcpip_init_done(), which is called from tcpip_thread when it is initialized and sets the semaphore used to block the other thread (that calls tcpip_init()).

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]