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: Tue, 21 Aug 2012 10:14:16 +0200

"Tomáš Švec" wrote:
> The problem is, in that case, I need to call ethernetif_input
> manually when I receive the package, right?  In case it is right,
> ethernetif_input is a static function, which does not allow me to use it
> outside its translation unit. Is it safe to remove the "static" attribute,
> or is my understanding of the concept completely wrong?

It sounds correct. Instead of calling ethernetif_input() from an ISR function 
inside the same file, you can just call it from your main loop. It's just 
static in the example because it is meant to be called from a local ISR, I 
guess.


Simon



reply via email to

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