From e451a9b2e16c2607a6f84eef015ce4afc2ebdb8f Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Tue, 24 Aug 2021 14:46:33 +0800 Subject: [PATCH] add function for deinit lwip timers --- components/lwip/lwip | 2 +- docs/en/api-guides/lwip.rst | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/lwip/lwip b/components/lwip/lwip index 2195f7416f..2749568fe1 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit 2195f7416fb3136831babf3e96c027a73075bd4f +Subproject commit 2749568fe15df2003f6c3f37f0dfd44f8f01fcd6 diff --git a/docs/en/api-guides/lwip.rst b/docs/en/api-guides/lwip.rst index b3b5df9a1b..ecae070395 100644 --- a/docs/en/api-guides/lwip.rst +++ b/docs/en/api-guides/lwip.rst @@ -358,6 +358,16 @@ The default lwIP implementation is to have these timers enabled all the time, ev To return to the default lwIP behaviour (always-on timers), disable :ref:`CONFIG_LWIP_TIMERS_ONDEMAND`. +Lwip timers API ++++++++++++++++ + +When users are not using WiFi, these APIs provide users with the ability to turn off LwIP timer to reduce power consumption. + +The following API functions are supported. For full details see :component_file:`lwip/lwip/src/include/lwip/timeouts.h`. + +- ``sys_timeouts_init()`` +- ``sys_timeouts_deinit()`` + Abort TCP connections when IP changes +++++++++++++++++++++++++++++++++++++