|
From: | Frédéric BERNON |
Subject: | Re: [lwip-devel] New LWIP user - NXP lpc236x microcontroller |
Date: | Wed, 17 Oct 2007 23:01:29 +0200 |
There is several way to create a port. One I can
suggest is :
- select the API you want to use
- prepare your lwipopts.h file
- if you decide to use sequential API, start to
create your sys_arch port (http://lwip.scribblewiki.com/Porting_for_an_OS)
- next, create your initialization framework, and
use loopif interface in a first time (look http://lwip.scribblewiki.com/Initialization_using_tcpip.c if
you use one of the sequential api, current HEAD "contrib/ports/msvc6" port you
also help you, since it's updated)
- now, you can create any simple application to
check the stack between two local "process" (a client and a server, by example,
look the "contrib/apps/httpserver" or "contrib/apps/httpserver_raw". Since the
loopif is "only software", you can check if the stack is working without start
to develop your device driver.
- last, implement your device driver (look http://lwip.scribblewiki.com/Writing_a_device_driver).
You can also look some "old" ports to see how are design there driver. But I'm
not sure there is lot of them updated.
Once again, this is a way to create your port. The
advantage of this one is you can do most of the job without any real hardware
reference...
I hope it help you...
----- Original Message -----
|
[Prev in Thread] | Current Thread | [Next in Thread] |