Looks like this is a good way to go. Can you explain it in more detail? I am
very new to lwip. Thanks.
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Timmy Brolin
Sent: Thursday, July 08, 2004 5:05 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] OS-less Active Web Server with RAW API.
Leon Woestenberg wrote:
Hello,
Why not simply set up a timer interrupts to call tcp_fasttmr() and
tcp_slowtmr() ?
That's how I do it.
You could do that, but the interrupt should not pre-empt the running
program while it is inside the lwIP functions, as this will lead to
race conditions and/or concurrency induced crashes.
Leon.
Of course.
You just disable the timer interrupts during incomming/outgoing packet
processing, and you disable transmit/recieve interrupts during tcp_tmr
processing. Or you can just disable interrupts globally during lwip
processing, unless you have other high-priority interrupts that cannot be
delayed.
The advantage of using interrupts it that you are free to do whatever you
want in the main loop while lwip runs happily in the background.
Timmy
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users