added LWIP_TIMERS_CUSTOM to override the default implementation of timeouts

This commit is contained in:
sg
2016-07-27 21:46:16 +02:00
parent a326b057b3
commit 53dc94d570
5 changed files with 32 additions and 20 deletions

View File

@@ -106,7 +106,7 @@ const struct lwip_cyclic_timer lwip_cyclic_timers[] = {
#endif /* LWIP_IPV6 */
};
#if LWIP_TIMERS
#if LWIP_TIMERS && LWIP_TIMERS_CUSTOM
/** The one and only timeout list */
static struct sys_timeo *next_timeout;
@@ -426,10 +426,10 @@ again:
#endif /* NO_SYS */
#else /* LWIP_TIMERS */
#else /* LWIP_TIMERS && LWIP_TIMERS_CUSTOM */
/* Satisfy the TCP code which calls this function */
void
tcp_timer_needed(void)
{
}
#endif /* LWIP_TIMERS */
#endif /* LWIP_TIMERS && LWIP_TIMERS_CUSTOM */