lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] [lwip] lwIP ported to C166


From: Jason Morgan
Subject: [lwip-users] [lwip] lwIP ported to C166
Date: Wed, 08 Jan 2003 21:50:45 -0000

Hi to all other members of this list!!

As you know (Adam) I mentioned some time ago that I was going to do a low
level Ethernet interface driver and ARP for lwIP.
Well, I've finally got round to it.....

The platform is an Infineon C166 (aka ST10) and the Ethernet MAC/PHY is a
SMsC LAN91C96 (or LAN91C94)
in porting the code into the Keil compiler, I've tried to keep changes to
lwIP to a minimum, anyway so far
its going well.

I've come across some porting issues, I'll cover those later when I've fully
understood their implications.

Are you gong to put lwIP on CVS, that way we can keep track of changes to
it?



Here are a list of 'bugs' or porting issues that I know of so
far....(V0.4.1)

--
In ip_addr.h and ip.c the macro ip_addr_isbroadcast has unbalanced brackets
- delete one off the end.
Its inference in ip.c in ip_input() is missing a corresponding bracket.

--
Keil does not like array sizes of 0, this is used in icmp_echo_hdr.data and
tcp_hdr.options if I recall late array sizing
is a C++ extension to C, C166 is not C++ :(  For now, I've put a suitable
value in, but perhaps it should be a globaldef?

--
in loop_if.c loopif_init() a cast is needed when the address of the function
is got.

--
in generic/cc.h the globaldef HAVE_BITFIELDS has an extra I between the T
and the F.



J.


Jason Morgan - Development Engineer
CITEL Technologies Ltd.
Wheatcroft Business Park
Landmere Lane, Edwalton
NOTTINGHAM, NG12 4DG, UK
Tel: +44 (0) 115 940 5444  Ext 204
Direct: +44 (0) 115 931 5104
Fax: +44 (0) 115 940 5664
mailto:address@hidden
WebSite http://www.citel.com

[This message was sent through the lwip discussion list.]




reply via email to

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