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: Adib Taraben
Subject: Re: [lwip-users] etharp_tmr(), ip_reass_tmr()...
Date: Wed, 27 May 2009 16:24:04 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

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;
}

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




reply via email to

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