mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Minor change (define DHCP_COARSE_TIMER_MSECS - using DHCP_COARSE_TIMER_SECS - to use milliseconds like all others timers)
This commit is contained in:
parent
6d9b44e243
commit
649d43c2c5
@ -152,7 +152,7 @@ dhcp_timer_coarse(void *arg)
|
|||||||
LWIP_UNUSED_ARG(arg);
|
LWIP_UNUSED_ARG(arg);
|
||||||
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_coarse_tmr()\n"));
|
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_coarse_tmr()\n"));
|
||||||
dhcp_coarse_tmr();
|
dhcp_coarse_tmr();
|
||||||
sys_timeout(DHCP_COARSE_TIMER_SECS*1000, dhcp_timer_coarse, NULL);
|
sys_timeout(DHCP_COARSE_TIMER_MSECS, dhcp_timer_coarse, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,7 +225,7 @@ tcpip_thread(void *arg)
|
|||||||
sys_timeout(ARP_TMR_INTERVAL, arp_timer, NULL);
|
sys_timeout(ARP_TMR_INTERVAL, arp_timer, NULL);
|
||||||
#endif /* LWIP_ARP */
|
#endif /* LWIP_ARP */
|
||||||
#if LWIP_DHCP
|
#if LWIP_DHCP
|
||||||
sys_timeout(DHCP_COARSE_TIMER_SECS*1000, dhcp_timer_coarse, NULL);
|
sys_timeout(DHCP_COARSE_TIMER_MSECS, dhcp_timer_coarse, NULL);
|
||||||
sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL);
|
sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL);
|
||||||
#endif /* LWIP_DHCP */
|
#endif /* LWIP_DHCP */
|
||||||
#if LWIP_AUTOIP
|
#if LWIP_AUTOIP
|
||||||
|
@ -17,6 +17,8 @@ extern "C" {
|
|||||||
|
|
||||||
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
|
/** period (in seconds) of the application calling dhcp_coarse_tmr() */
|
||||||
#define DHCP_COARSE_TIMER_SECS 60
|
#define DHCP_COARSE_TIMER_SECS 60
|
||||||
|
/** period (in milliseconds) of the application calling dhcp_coarse_tmr() */
|
||||||
|
#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS*1000)
|
||||||
/** period (in milliseconds) of the application calling dhcp_fine_tmr() */
|
/** period (in milliseconds) of the application calling dhcp_fine_tmr() */
|
||||||
#define DHCP_FINE_TIMER_MSECS 500
|
#define DHCP_FINE_TIMER_MSECS 500
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user