cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
2,618 Views
Registered: ‎10-25-2012

What is mean of these commands in LwIP application?

In LwIP application  main() function, I don't understand the usage of the following code:

 

while (1) {

 

if (TcpFastTmrFlag) {
tcp_fasttmr();
TcpFastTmrFlag = 0;
}
if (TcpSlowTmrFlag) {
tcp_slowtmr();
TcpSlowTmrFlag = 0;
}

 

}

 

I checked the xapp1026 pdf file, the explanation is pretty simple:

 

The TcpFastTmrFlag and TcpSlowTmrFlag are required for TCP TX handling and are set in the
Timer handler for every 250 milliseconds and 500 milliseconds respectively.

 

Anybody can help me understand the mean of these codes?

 

Thanks very much.

 

 

0 Kudos
2 Replies
Highlighted
Voyager
Voyager
2,589 Views
Registered: ‎10-25-2012

Re: What is mean of these commands in LwIP application?

Anybody can help? Thx!
0 Kudos
Highlighted
Voyager
Voyager
2,575 Views
Registered: ‎10-25-2012

Re: What is mean of these commands in LwIP application?

Is the TcpFastTmrFlag flipped every 250 milliseconds (period is 500 milliseconds)?
0 Kudos