mirror of
https://github.com/espressif/esp-lwip.git
synced 2025-08-06 18:23:42 +08:00
add function for deinit lwip timers
This commit is contained in:
@ -282,6 +282,15 @@ void sys_timeouts_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
/** Deinitialize this module */
|
||||
void sys_timeouts_deinit(void)
|
||||
{
|
||||
size_t i;
|
||||
/* tcp_tmr() at index 0 is started on demand */
|
||||
for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
|
||||
sys_untimeout(lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i]));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Create a one-shot timer (aka timeout). Timeouts are processed in the
|
||||
* following cases:
|
||||
|
@ -101,6 +101,7 @@ struct sys_timeo {
|
||||
};
|
||||
|
||||
void sys_timeouts_init(void);
|
||||
void sys_timeouts_deinit(void);
|
||||
|
||||
#if LWIP_DEBUG_TIMERNAMES
|
||||
void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_name);
|
||||
|
Reference in New Issue
Block a user