lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] etharp_tmr(), ip_reass_tmr()...


From: Bill Auerbach
Subject: RE: [lwip-users] etharp_tmr(), ip_reass_tmr()...
Date: Wed, 27 May 2009 13:29:43 -0400

>-----Original Message-----
>From: address@hidden
>[mailto:address@hidden On
>Behalf Of Adib Taraben
>Sent: Wednesday, May 27, 2009 10:24 AM
>To: Mailing list for lwIP users
>Subject: Re: [lwip-users] etharp_tmr(), ip_reass_tmr()...
>
>Hello Mats,
>
>those functions might be called indirectly. All what I need is in the
>main-loop:
>
>// poll ethernet
>cs8900if_service(&myethif);                // AX88796 driver (polling mode)
>
>// poll ethernet slow timer every 250ms
>if(core_get_tick() > (eth_tick + 2500))
>{
>       tcp_tmr();
>       eth_tick += 2500;
>}

When core_get_tick rolls over (wraps to 0) the tcp_tmr function will no
longer be called.

>
>This code polls the Ethernet chip and handles accordingly via call-back
>functions.
>Periodically tcp_tmr() is called to clean unused blocks etc.. You might
>look where this function is called ....
>
>Adib.
>---
>
>
>Mats Randgaard wrote:
>> In our project we use lwIP to send UDP packets, and lwIP also handle
>> ARP, ICMP, IP fragmentation... All example code and documentation I
>have
>> read include a timer in the projects, but I have tested our design
>> without timer, and it works fine. Do I have to include a timer in the
>> project?
>>
>> I have read that etharp_tmr() and ip_reass_tmr() must be called. Our
>> system is working fine without, but will it crash later because we
>don't
>> call the timer functions? Do we have to call them or do the Xilinx
>> adapter functions call them? I have tried to read the source code for
>> lwIP, and it seems like the timer functions are called only if NO_SYS
>=
>> 0. Am I right? Are there other timer functions we have to call?
>>
>> We use lwIP 1.3.0 on a MicroBlaze processor without OS on a Spartan 3A
>> DSP 1800 FPGA.
>>
>>
>> ----------------------------------------------------------------------
>--
>>
>> _______________________________________________
>> 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





reply via email to

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