[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Lwip 1.4.1 initialization
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] Lwip 1.4.1 initialization |
Date: |
Mon, 19 Mar 2018 09:30:13 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi,
you have three things to worry about:
- the port
- the netif driver
- the initialization sequence
For the initialization sequence, afaik the right function to call in
1.4.1+ (for NO_SYS=0) is tcpip_init(), not just tcp_init().
http://www.nongnu.org/lwip/2_0_x/group__lwip__os.html#ga1f3a88b8df6ba3b9ed1c00e0a305e3db
For the port, I can't comment on multithreaded environments nor netconn
besides setting NOSYS=0. Let's wait for Simon or one of the other
experts to jump in. Anyway, they'll tell you, and with due reason, to
use latest 2.0.x instead.
In the meantime, perhaps you could get some useful advice here:
http://lwip.wikia.com/wiki/LwIP_Platform_Developers_Manual
For the driver, follow advice given here:
http://lwip.wikia.com/wiki/Writing_a_device_driver