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: Tomáš Švec
Subject: Re: [lwip-users] ethernetif_input usage with Ethernet over SPI
Date: Wed, 22 Aug 2012 15:37:07 +0200

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. I also implemented low_level_output, but it seems to be called only from the etharp.c file. Is it necessary to implement a function like "ethernetif_output" as well and call it somewhere? I am sorry for possible asking of wrong questions, I just have to implement the stack without OS, so just RAW API.

Tomas

2012/8/21 Simon Goldschmidt <address@hidden>
"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

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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