Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: lwIP: timers disabled

$
0
0

[quote user="Ramesh Dandamudi"]In the example use case LWIP_TIMERS is not used. Hence it is disabled.[/quote]

OK, but why is it disabled?

Or to ask this in a different way: since poll-function is not available and since all receive- and send-functions are running in interrupt-context, how should one send some data out of normal (main-loop) context?

lwIP is not thread-/IRQ-safe, means when RX and TX functions are running in interrupt-context, poll-function is mandatory to send such data asynchronously. This problem does not appear in StarterWare examples since sending is done out of receive-function only, but it appears in real-world-code.


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>