lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] ethernetif_input usage with Ethernet over SPI


From: Simon Goldschmidt
Subject: Re: [lwip-users] ethernetif_input usage with Ethernet over SPI
Date: Wed, 22 Aug 2012 17:10:40 +0200

Tomáš Švec <address@hidden> wrote:

> Thank you for the quick answer. By ISR you mean an interrupt routine? In that 
> case it is correct, since the event polling kind of replaces interrupts.

Yes.

> I also implemented low_level_output, but it seems to be called only from the 
> etharp.c file.

Which function you need depends on how you pass data through SPI. If you only 
want to pass IP packets (so etharp does not run over SPI), you don't need 
low_level_output.

> Is it necessary to implement a function like "ethernetif_output" as well and 
> call it somewhere?

As above, if etharp does not run per SPI, yes. That's what you'll set to 
netif->output so that it gets called instead of etharp_output. Pbuf payload 
points to the IP header in this function.

Simon


reply via email to

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