lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwIP on a Microcontroller with two MACs


From: Sergio R. Caprile
Subject: Re: [lwip-users] lwIP on a Microcontroller with two MACs
Date: Fri, 3 May 2019 09:22:46 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.6.0

2- There is no need for a specific port for a specific processor. A port
of lwIP needs to handle the OS (if any), and some nice stuff on the
processor architecture that can help making things faster (and some
intricacies of the compiler). As long as there is a port for that core
and that OS (or none), you are almost done. Stay away from esoteric
compilers and you are done.
3- You won't write a driver for two MACs, you will instantiate your
driver two times. You will have two "netifs" in lwIP's jargon. Unless
your sw requirements are not "standard"
4- You can have as many netifs as you want and your hw can fit. Notice
that lwIP is not a router/forwarder, traffic on all netifs has to have
lwIP as an endpoint and netifs should (must ?) belong to different IP
networks. This is what I mean by "standard".

To write a driver you can start by looking at the provided skeleton in
the official distribution, and take advantage of similar drivers written
by vendors and other developers. As long as there is a driver for your
controller (for whatever OS or bare metal), you can use it as an example.
There are some pointers in the wiki
        https://lwip.fandom.com/wiki/LwIP_Wiki
particularly in the Platform Developers Manual
        https://lwip.fandom.com/wiki/LwIP_Platform_Developers_Manual

The wiki is not official docs, but maintained by users. If in doubt, the
official docs rule
        https://www.nongnu.org/lwip/



reply via email to

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