lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] dhcp - sys_timeout - safe thread


From: Juan Jose Schiavoni
Subject: [lwip-devel] dhcp - sys_timeout - safe thread
Date: Sat, 17 Sep 2011 01:11:20 +0000

Hi, 

I need to implement DHCP, and don't have enough RAM to fire a new thread to do the 
call dhcp_coarse_tmr() and dhcp_fine_tmr() in a while 1.

Is it valid to call a do_dhcp_coarse_tmr like a callback function of netifapi_netif_common?

void do_dhcp_coarse( void )
{
    dhcp_coarse_tmr();
    sys_timeout( DHCP_COARSE_TIMER_SECS, do_dhcp_coarse, NULL );
}

Best Regards
Juan

reply via email to

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