lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Kernel Implementation into a Blackfin Processor


From: Fabio Yamada
Subject: Re: [lwip-users] Kernel Implementation into a Blackfin Processor
Date: Thu, 6 Jan 2005 09:57:17 -0200

  Thanks for the replies! I will do what both of you suggested.

  I was doing fine reading about LwIP but I'd started struggling to
understand how I could design the arch modules for Blackfin (in fact
I'm using the EZ-KIT for BF533).

  Just for you have an more precise idea of what I'm doing, the
approach I choose was the follow:

  1) Download the stable version of LwIP (v 0.7.2);
  2) Configure the UART peripheral port to communicate with a PC;
  3) Design the SLIP protocol;
  4) Plug the SLIP protocol running on DSP to the netif module;
  5) Adjust all the other LwIP modules for my BF-533 processor;
  6) Develop some simple apps to see it's working (Telnet, HTTP server, etc)

  I'v started having problems in step 4. The step 5 includes all the
arch functions and the semaphores/mailboxes stuff (plus the problems I
haven't time to identify yet...:-)). Usually I start trying to do
everything at once... but I feel that with this problem it's gonna be
better to have a divide and conquer approach (like Paul described).

  If there is anybody interested in implementing the LwIP into a
Blackfin processor, just keep in touch so we can change experiences.

  Peace,

         Fabio Yamada


On Thu, 06 Jan 2005 00:41:37 +0100, Leon Woestenberg <address@hidden> wrote:
> Fabio,
> 
> Paul C wrote:
> 
> >If you read through Adam's examples, he explains how
> >to write a single threaded application by using
> >defines and function stubs for the semaphores and
> >mailboxes. If you have to change the LWIP code then
> >there is a good chance that you are doing something
> >wrong.
> >...
> >Paul
> >
> >
> >
> Fabio did not suggest to change the lwIP code, he asked if he could throw
> away the mailboxes and semaphores for a single-threaded application.
> 
> In fact, you can do this by defining null-functions for them in the
> sysarch.h
> adaptation.
> 
> Your application then simply uses the raw callback API.
> 
> An example for an empty sysarch is in the CVS contrib module ports/c16x.
> 
> Regards,
> 
> Leon.
> 
> >
> >On Wed, 5 Jan 2005 18:22:57 -0200, "Fabio Yamada"
> ><address@hidden> said:
> >
> >
> >>Happy new year for everybody! : )
> >>
> >>    I would like to implement the LwIP into a DSP from Blackfin
> >>family. I don't want to use the thread aproach, though. I read in
> >>Adam's home page (http://www.sics.se/~adam/lwip/os.html) that for a
> >>single threaded core I don't need to implement the semaphores and
> >>mailboxes.
> >>
> >>    My question is: Can I just erase all the mailboxes and semaphores
> >>from the stack? Will it keep the consistence?
> >>
> >>
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>




reply via email to

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